Commit Graph

24 Commits

Author SHA1 Message Date
Mathieu Dubois-Briand
421dd04863 builders: Fix configuration for buildbot 4
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
2025-02-10 18:22:57 +01:00
Richard Purdie
a16d3ff825 steps/runconfig: Allow usepty to be specified
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 16:14:06 +00:00
Richard Purdie
3d960690e4 steps/observer: Update to work with new buildbot versions
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-02 09:59:14 +01:00
Richard Purdie
d7c17203e0 Fix TargetPresent to work as a new style step
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-25 09:01:28 +00:00
Jate Sujjavanich
0137545c0b observer.py, runconfig.py: Remove NewStyle classes
These classes were removed in buildbot 3.2.x because migration is
complete.

Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
2023-03-22 23:20:09 +00:00
Jate Sujjavanich
de07ef9045 builders.py, observery.py: Convert to *NewStyle
ShellCommandNewStyle

For buildbot 2.9.x migration

Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
2023-03-22 16:49:15 +00:00
Jate Sujjavanich
c18365d92f runconfig.py: Update to ShellCommandNewStyle
In RunConfigCheckSteps, inherit ShellCommandNewStyle and
implement run function. Add finish to close log.
Remove call to super().evaluateCommand() as it no longer exists.
Remove code converting logLines because it's no longer a list
Convert TargetPresent to ShellCommandNewStyle

For Buildbot 2.9.x NewStyle migration

Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
2023-03-22 16:49:14 +00:00
Richard Purdie
83f6475915 steps/writelayerinfo: Always rewrite the file as concat doesn't make sense
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-08-01 22:13:20 +01:00
Richard Purdie
64b67aa878 Add SPDX License Identifiers
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-18 23:49:01 +00:00
Richard Purdie
730f5ea304 steps/runconfig: Ensure build is marked as skipped
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-23 18:24:21 +00:00
Richard Purdie
863ed82b2a steps/runconfig: Attempt a different way to terminate the build
It seems the previous approach was confusing buildbot about the task status
so try and be more specific and use better APIs to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-23 14:48:45 +00:00
Richard Purdie
c8db821860 builders/runconfig: Add ability to skip targets if the don't exist in the branch configuration
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-20 23:36:40 +00:00
Richard Purdie
2b497317d2 steps/runconfig: Avoid storing jsonconfig as a property
We already have a log, don't duplicate the data as a property as it will
cause excess database growth.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-12 10:29:32 +00:00
Richard Purdie
7898d68ccc runconfig/observer: Simplify log handling for new format tasks
For new tasks, hide errors/warnings if not present, don't monitor steyXY
logfiles as they're no longer needed and ensure description is provided
by our code as shellCommand doesn't handle it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-12 10:29:32 +00:00
Richard Purdie
2c17ca10da runconfig: Allow more control of buildbot step name/desc
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-11 18:18:33 +00:00
Richard Purdie
25d5a7d0ae builders/runconfig: Allow execution of run-config steps individually
Rather than running all the work in a single run-config command, split this into
multiple steps. This allows for separate result code reporting, timestamps
for indvidual steps and is generally much cleaner. The naming and so on will need
further work but this is a start.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-11 18:07:11 +00:00
Richard Purdie
b15a81375f steps/runconfig: Fix datetime module reference
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-10 21:44:59 +00:00
Richard Purdie
97104f0a69 builders: Move run-config handling to its own module
Also abstract the calls into a function to allow for easier further
development.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-10 16:47:16 +00:00
Richard Purdie
bb9b3ff95e steps/observer: Try and use correct logname for warnings/errors
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-26 15:15:59 +01:00
Richard Purdie
20f4bbc93f steps/observer: Mention which log contains an error/warning
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-25 15:10:26 +01:00
Richard Purdie
24085f2a34 builders: Improve log handling to match run-config step numbering
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-05 14:30:27 +01:00
Richard Purdie
40fe66b97f Add custom log observer
We want seperate log files in the UI for each of the build steps. This
changes buildbot to monitor the command.log.X files which run-config
generates. It also searches the log output for errors and warnings and
summarises these neatly in the UI.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-30 14:41:44 +01:00
Joshua Lock
20dcfb7159 Fix module name after rename
The repository was renamed yoctoabb from yoctoab, fix up module references
2018-02-22 14:05:19 +00:00
Joshua Lock
4fd189ab38 Initial prototype of using yocto-autobuilder-helper scripts
Initial prototype of using yocto-autobuilder-helper scripts from vanilla
buildbot to replicate yocto-autobuilder configuration.

* README.md is updated to describe goals and approach
* TODO contains known issues and work items, TODO: comments in the code
  point to specific locations of work

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
2018-02-22 10:38:19 +00:00