Commit Graph

411 Commits

Author SHA1 Message Date
Trevor Gamblin
97823c88e5 Set hashserv to correct IP
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-07-29 10:36:18 -04:00
Trevor Gamblin
f2f8ec9aa5 config.json: track system load with PARALLEL_MAKE
Backport for dunfell since we have been running for ~1 week with this
patch in master and the same load limiting may help reduce build
failures for dunfell itself as well as when its builds are running
alongside other branches.

This adds the "-l" option to PARALLEL_MAKE in config.json with an
initial testing value of 50 (the previous iteration of this patch both
had it set to 100 and mistakenly stated that this was a percentage,
rather than an absolute representation of system load ala top/htop).
This option is supported by both Make and Ninja. However, we also
require the "--debug=j" option to be passed to Make in order for the
latter to report perceived system load in the do_compile logs, (which we
need in order to track test values), and since this option is not
supported by Ninja, also add EXTRA_OEMAKE to the EXTRAVARS so that we
can determine if the target load percentage needs to be adjusted.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-07-29 10:21:58 -04:00
Richard Purdie
03324adbe8 config.json: Switch to newer buildtools-extended-tarball
This adds locale information which should fix reproducibility issues with vim.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 345475b99a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-06-24 07:16:33 -10:00
Richard Purdie
1e5c23dea6 config.json: Add check-layer-nightly with only meta-intel at this point
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-06-02 12:33:34 +01:00
Richard Purdie
f155919b40 config.json: Set XZ limits to more reasonable values on autobuilder
The autobuilders have 128GB memory, we don't want them using 50% which is
the default, 5% should be enough. Also limit the number of threads down
from 48 to something reasonable. This may be partly causing some of our
performance issues?

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-05-20 16:50:56 +01:00
Ross Burton
c52be4c547 config: build and test SDKs when using package_deb
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b38664d2db)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
c5846cbff0 config.json: Split reproduciblity tests into their own target
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 97e0979d6e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
c4868e1ba5 scripts/run-config: Disable output buffering
Line buffering (bufsize=1) is unavailable with binary mode so use unbuffered
mode instead. This fixes python runtime warnings.

[YOCTO #14093]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c21732937c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
11e82a3d7f config.json: Add further descriptions
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 19b7456b92)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
715fcfdf29 config.json: Unbreak qa-extras locked sigs test
qa-extras and qa-extras2 were split incorrectly, fix this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 80fe0ab069)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
685ad1855a config.json/run-config: Add support for shortnames and descriptions
Learn from the previous experiments and add meaninful shortnames and
descriptions to work around the 50 char name limit.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bceb63fb79)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
42db0efd1b scripts/shared-repo-unpack: Add flush call to update the output more regularly before buildtools
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6e2825564c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
96a3c8abe3 scripts/run-config: Remove redundant boilerplate json
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2bb4804243)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
2a4a2dd123 config.json/run-config: Add human readable descriptions of steps
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ce63e8f024)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
43628b7edf scripts/run-config: Ensure logging to both logfile and stdout
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b1bc4d64c2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
b21aabbf2a scripts/run-config: Improve logfile naming
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4a4c888f66)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
365ff2a1f5 run-config: Adapt to two pass execution
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 23d65680f8)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
95f21ce671 scripts/run-config: If target is present default to 1 step
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e183db413f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
b519518f4c scripts/run-config: Ensure stepnum has a value when there are no steps
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit afb6c5a887)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Richard Purdie
af1c690ed1 scripts/run-config: Don't execute steps that don't exist!
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 290e1bc2ee)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2021-03-25 05:17:39 -10:00
Michael Halstead
ef52b284e8 send-qa-email: Save the QA email in case it doesn't reach the mailing lists.
Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-02-23 10:24:14 +00:00
Tim Orling
a4e7590909 config.json: QAMAIL_CC => qa-build-notification
Replace the hard-coded individual email addresses with
the mailing list created for this purpose:

qa-build-notification@lists.yoctoproject.org

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-13 21:11:18 +00:00
Richard Purdie
ec3e4f483e scripts: Add target present check script
Add a script which from the exit code determines if a build target is present
in the configuration. The autobuilder can use this to determine whether to
execute the target at all or whether to skip it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-20 17:29:15 +00:00
Richard Purdie
b051420634 scripts/send-qa-email: Fix buildtools handling
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-24 12:28:04 +01:00
Richard Purdie
258bfb1606 config.json: Switch to dunfell buildtools with jinja2 added
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-23 15:09:57 +01:00
Richard Purdie
2c3ee5b5a9 utils: Teach buildtools script handling about unset
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-23 09:57:07 +01:00
Richard Purdie
8e85f37767 scripts/send-qa-email,utils: Use buildtools if present
resulttool has python version requirements so use buildtools if present.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-23 09:57:02 +01:00
Richard Purdie
3706254f0a config.json: Update to buildtools with selftest fixes
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-23 09:56:16 +01:00
Richard Purdie
2f44bd6a3d config.json: Update to buildtools tarball with jinja2
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-23 09:56:13 +01:00
Richard Purdie
9935c66fd0 scripts/utils: Ensure buildtools tarball hash matches any supplied value
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-07 16:46:55 +01:00
Richard Purdie
6bb95a4b60 scripts/utils: Ensuring new logging is flushed from buffers
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-07 16:44:47 +01:00
Richard Purdie
b28159763a scripts/utils: Add more logging for fetchgitrepo
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-07 16:44:44 +01:00
Michael Halstead
12355e6c3c scripts/send-qa-email: Update to dedicated push capable domain
Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-01 18:14:38 +01:00
Vineela
9d03270212 scripts/utils.py: Convert md5sum to sha256sum for layer tarballs
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3aefa5a763)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-07-02 08:40:34 -10:00
Tummalapalli, Vineela
6b6d272e48 publish-artefacts: Improve sha256 checksum handling
The existing checksum files were encoding full paths. This patch changes
this to use just the filename which allows relocation of the directories
and is more appropriate for sharing over http.

Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 835ac325a4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-07-02 08:39:30 -10:00
Richard Purdie
32f8a69dc0 scripts/publish-artefacts: Convert md5sum to sha256sum
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 80c53d03ea)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-07-02 08:39:01 -10:00
Richard Purdie
895ac749b0 config.json: Use buildtools from 3.2 M1 to fix bugs in openssl reporting
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 385fdf2295)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-07-02 06:27:43 -10:00
Ross Burton
51669c9fe2 config.json: generate the buildtools tarballs for aarch64
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6876a5536c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-07-02 06:27:16 -10:00
Richard Purdie
9727b983d9 config.json: Ensure trigger-build and trigger-build-posttrigger match layer setup
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d1d56776fa)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-07-02 06:25:39 -10:00
Steve Sakoman
2e8b103c4f config.json: add steve@sakoman.com to QA email list
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-10 18:23:06 +01:00
Richard Purdie
2a658f1d15 send-qa-email: Fix stable branch test result history issues
On stable release branch builds, it will clone "master" since comparebranch
is None. It will then fail to push since there is already a dunfell
branch upstream with changes on which it needs to rebase on top of.
The change to use shallow clones significantly increases this problem.

To fix this, fall back to cloning basebranch by name, then master
if it doesn't exist.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-09 16:58:10 +01:00
Richard Purdie
0b2a1e6a22 config.json: ltp QB_MEM parameter was being lost, fix this
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-03 16:11:55 +01:00
Richard Purdie
2e34999164 config.json: Move dunfell sstate to its own directory
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-05 22:38:17 +01:00
Richard Purdie
b584166cb0 config.json: Update to new buildtools tarball
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-30 21:43:07 +01:00
Richard Purdie
e29b34a2b2 config.json: Use new buildtools tarball
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-30 21:42:52 +01:00
Richard Purdie
b2300288fe scripts/run-config: Share buildtools setup code with shared-repo-unpack
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-30 21:42:52 +01:00
Richard Purdie
9de8ab669f scripts/run-config: Add extra debug about buildtools to show when active
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-30 21:42:52 +01:00
Steve Sakoman
8f1c83e0d3 scripts/send-qa-email: fix bug in git push logic for yocto-testresults
We were mistakenly doing a force push if the branch was in either
BUILD_HISTORY_FORKPUSH or BUILD_HISTORY_DIRECTPUSH.

Now we force push for branches in BUILD_HISTORY_FORKPUSH, regular push
for branches in BUILD_HISTORY_DIRECTPUSH, and no push if the branch is
in neither list.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-30 21:42:52 +01:00
Steve Sakoman
82dc61ce83 scripts/utils.py: Fix confusing naming of getcomparisonbranch() return value
This code was copy/pasted but in this case the variables should
be called "compare", not base.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-30 21:42:52 +01:00
Richard Purdie
66b92f9692 scripts/shared-repo-unpack: Accept workername parameter
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-27 17:09:41 +01:00