Commit Graph

129 Commits

Author SHA1 Message Date
Richard Purdie
dabf9d6e20 scripts/utils: Fix variable name conflict
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-09 14:14:34 +00:00
Richard Purdie
8ce219dda5 run-config/utils: Allow headers to show the difference in time since the previous header
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-09 14:06:52 +00:00
Richard Purdie
df2e005030 scripts/setup-config: Allow SSTATEDIR to unset
The SSTATEDIR was accidentally using getconfiglist instead of getconfigvar which
meant it couldn't be unset. Fix to use var so the values in config.json work
as intended.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-08 21:22:01 +00:00
Richard Purdie
478eb6d78c scripts/run-config: Export SCRIPTSDIR to avoid scripts having to mess with paths
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-08 20:45:56 +00:00
Richard Purdie
5fe0e21b8a scripts/send-qa-email: Handle systems with sendmail in sbin
Many of the distros we use have sendmail in /sbin or /usr/sbin
which may not be in the path for non-interactive users. Handle
this in the script to avoid failures where tests work but the
real QA email fails.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-05 16:57:37 +00:00
Richard Purdie
e23d0b3ab2 scripts/setup-config: Ensure PACKAGE_CLASSES is set
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-10 11:40:41 +01:00
Richard Purdie
b27ef9a53d run-config: Renumber the log files to match step numbers
Also print a summary of the logfiles which contain failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-05 14:11:33 +01:00
Aaron Chan
842def0599 publish-artefacts: Add deployment BSP support on x86_64
Add in the support to publish images into the designated path.
BSP packages of the previous build will be cleaned up before
new BSP packages are copied over. This ensures the previous
image will not be retained and causes conflicts before image
is loaded into x86_64 (MTURBOT64) hardware.

Signed-off-by: Aaron Chan <aaron.chun.yew.chan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-30 16:21:51 +01:00
Paul Eggleton
d7d1a2b345 scripts: use argparse for command line parsing
[RP: Minor tweaks made to adpat to buildbot and option naming

Fixed shared-repo-unpack for publishing when no cache-dir supplied]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-30 14:36:07 +01:00
Richard Purdie
c41c2e0a5a run-config: Add a new option to control echoing of log output
The new buildbot code can directly monitor the logfiles itself so
we need to be able to optionally stop echoing onto the console.

Add missing flush() calls and print the command being used and logfile
so its clear what is happening on stdout too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-30 13:25:05 +01:00
Richard Purdie
1cb54ada86 scripts/checkvnc: Add checkvnc script from old autobuilder codebase
Update the scripts to correctly reference the new script.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-30 13:22:16 +01:00
Aaron Chan
0be30e2b54 run-config: Reverse the oder of remove layers
This patch fixes the "Collection Error during parsing layer conf"
when a parent layer is accidentally added before depend layers.
When removing layers from bblayers, we should not be following
the same sequence of adding the layers, it should be done in a
reversed order. This is an assumption that the layers have their
dependent layers added before the parent layers are added.
In general, the parent layer require to be remove first before
its child dependencies layers.

Signed-off-by: Aaron Chan <aaron.chun.yew.chan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-08 11:15:20 +01:00
Richard Purdie
a49b11979e run-config: Add a test mode using an enviornmental variable
Testing this code is becoming increasingly problematic. This allows
ABHELPERTEST to be set from the environment and means the script will
still create directories and configuration files but it will not execute
anything, just print what would be executed.

This allows faster validation of changes to the configurations/code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-06 16:01:24 +01:00
Richard Purdie
89b5f50dd2 utils: Fix previous commit
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-06 15:55:02 +01:00
Richard Purdie
579b732755 utils: Filter reponame to only use base repository name, not a full url
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-06 15:48:30 +01:00
Richard Purdie
621143cee4 scripts: Various buildhistory code fixes/improvements
* Remove the code disabling it
* Move to a non-shared directory by default (but still support absolute pathnames
  if wanted)
* Use shallow clones by default for speed
* Allow force pushing 'fork' mode branches

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-06 15:17:41 +01:00
Richard Purdie
004d403b6a upload-error-reports: Shorted name since server has a 50 char limit
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-04 10:45:29 +01:00
Richard Purdie
696eacc94a utils: Ensure unspecified variables aren't expanded badly
We want ${BUILDDIR} to stay as ${BUILDDIR}, not become BUILDDIR
for example.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-03 14:57:56 +01:00
Richard Purdie
42416bdc9c utils: Ensure we don't infinitely recurse for variable expansion
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-03 14:08:40 +01:00
Richard Purdie
94cc0afb1c utils: Enhance loadconfig to better merge dicts
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-21 00:04:11 +01:00
Richard Purdie
b7cf6d8209 utils: Allow customisation using ABHELPER_JSON from the environment
Usage is documented in README and an example, local-example.json is
included.

Also clean up the parameter to loadconfig() as its actually not needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-20 23:16:10 +01:00
Richard Purdie
0ccbfc0e05 utils: Ensure list entries also are expanded
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-20 23:07:09 +01:00
Richard Purdie
547a3793fc utils: Fix for python 3.5 and before, remove debug
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-20 22:14:46 +01:00
Richard Purdie
d6253df2bc scripts: Convert to use data expansion pretty much everywhere
We want to be able to use data expansion/variable substitution
in most variables so convert to use the utils API for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-20 16:21:16 +01:00
Richard Purdie
d2c0dcd1d9 utils: Add data expansion handling/API
The code clearly won't scale without some kind of variable substitution/
variable expansion mechanism, so add one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-20 16:20:08 +01:00
Richard Purdie
fcd4a3891f scripts/send-qa-email: Handle form enable/disable of email
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-10 23:17:51 +01:00
Richard Purdie
001353ea6f send-qa-email: Ensure we don't run when not publishing
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-10 14:10:29 +01:00
Richard Purdie
51054804fc send-qa-email: Resolve revisions into full hashes
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-05-16 16:03:42 +01:00
Richard Purdie
477d511aa0 send-qa-email: Allow execution (chmod)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-05-14 17:00:42 +01:00
Richard Purdie
25d574946a config.json: Add QA/publish info and script to mail QA
Add a script which allows QA to be emailed upon build completion
for QA test runs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-05-14 13:04:50 +01:00
Ross Burton
b3eb077391 pre-commit-hook: add a pre-commit hook to verify the JSON
Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-05-11 11:36:06 +01:00
Richard Purdie
74de885ad7 scripts/run-config: Add more detail when running EXTRA*CMDS
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-05-09 15:44:38 +01:00
Richard Purdie
7175195f7a publish-artefacts: Fix eclipse artefact publish dir
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-03-10 05:38:20 -08:00
Richard Purdie
fde1417b5d utils: Ensure updates on the remote branch are applied for revison==HEAD
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-03-09 11:19:01 -08:00
Richard Purdie
c8e4cc8483 utils: Ensure fetchgitrepo fetches revisions as well as tags
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-03-01 23:29:59 +00:00
Richard Purdie
ef9b1c8d47 run-config: Add eclipe build support
This means making the configuration generation conditional, the error
reporting conditional and allowing non bitbake commands.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-03-01 21:41:30 +00:00
Richard Purdie
59607f3a19 Add gplv3 check from existing AB code
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-28 17:37:04 +00:00
Richard Purdie
a37a62a15c utils: Fix typo
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-07 11:29:38 +00:00
Richard Purdie
0a6549a913 utils: Add timestamp to log headers
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-07 10:59:18 +00:00
Richard Purdie
53618a59cb utils: Handle oe-selftest in error reports
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-07 10:39:43 +00:00
Richard Purdie
a979873199 run-config: Remove layers after EXTRACMDS to fix oe-selftest
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-07 10:35:22 +00:00
Richard Purdie
d8f1e3ec27 run-config: Replace tee usage
tee hides the exit code of the pipeline. Instead use subprocess to write out the logfile.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-06 12:58:41 +00:00
Richard Purdie
eb0f56cece utils: Need to flush *after* the header, not before
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 23:25:12 +00:00
Richard Purdie
a7ca61715d upload-error-reports: Fix parameter contamination problem
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 22:45:08 +00:00
Richard Purdie
9948821070 utils: Ensure header flushes stdout/stderr first to order output correctly
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 22:33:21 +00:00
Richard Purdie
7d31d6cb84 run-config: Handle build directory being removed/recreated
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 22:32:57 +00:00
Richard Purdie
cf9cfd5f3a publish-artefacts: Fix another typo
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 22:29:48 +00:00
Richard Purdie
08410f5257 run-config: Fix step numbering printed
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 22:20:42 +00:00
Richard Purdie
cece09f2cf publish-artefacts: Fix recursive function reference and typos
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 22:20:27 +00:00
Richard Purdie
193ea5a9fe utils: Ensure revision has no whitespace
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 18:00:06 +00:00