Commit Graph

14 Commits

Author SHA1 Message Date
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
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
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
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