Commit Graph

81 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
38af6b0f6c run-config: Add missing parameter documentation
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 16:38:39 +00:00
Richard Purdie
297219ecc0 run-config: Clean up stepnum a bit
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 16:36:56 +00:00
Richard Purdie
f66abd6270 run-config: Print step x of y headers and summary of the number of failures
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 16:34:51 +00:00
Richard Purdie
4239708b85 Add error reporting server handling
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 13:16:41 +00:00
Richard Purdie
2808a9bc72 run-config: Add publish artefact support
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-31 10:12:52 +00:00
Richard Purdie
376ad36d4d Move buildhistory init to run-config (and factor common functionality to utils)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-23 13:49:38 +00:00
Richard Purdie
806957b392 scripts: Fix help text and program name
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-23 13:09:53 +00:00
Richard Purdie
45b14f6c80 utils: Create helper for loading config.json
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-22 15:20:00 +00:00
Richard Purdie
b47ea0eaa6 run-config: Also use templating support (move to utils)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-20 13:41:33 +00:00
Richard Purdie
40eb3f0820 run-config: Fix return value handling
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-20 13:40:01 +00:00
Richard Purdie
db8cf29820 run-config: Add support for adding/removing layers and extra commands in steps
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-20 11:14:58 +00:00
Richard Purdie
9996fff768 run-config: Ensure stdout/stderr is flushed and fix DISPLAY
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-19 12:26:00 +00:00
Richard Purdie
0fbdf0c27f run-config: Fix typo
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-18 23:02:48 +00:00
Richard Purdie
4ceb9e49d4 run-config: Fix off by one error
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-18 22:29:46 +00:00
Richard Purdie
307ce0c502 run-config: Print error message/exit code upon failure
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-18 18:30:34 +00:00
Richard Purdie
8cd1d0ccb8 Handle build-appliance srcrev
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-18 18:14:06 +00:00
Richard Purdie
0a045ed92d run-config: Cleanup/fix commands
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-18 17:52:30 +00:00
Richard Purdie
94460edf3b run-config: Use subprocess directly so we see the output
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-18 17:10:02 +00:00
Richard Purdie
a18dd64923 run-config: Complete the code
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-18 15:27:14 +00:00
Richard Purdie
1a5e7e1cb8 add run-config script to execute targets
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-18 15:09:20 +00:00