Skip to content

Conversation

gctucker
Copy link
Contributor

Update the YAML config to have event attributes in the scheduler entries rather than Job.run_on as discussed on the mailing list and GitHub.

Fixes kernelci/kernelci-pipeline#221

gctucker added 3 commits June 23, 2023 09:24
Remove the Job.run_on list of conditions and replace it with a single
event attribute in the scheduler entries since we can already define
multiple entries for a same job.  This is as discussed on the mailing
list and GitHub.

Update unit tests accordingly.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guillaume Tucker <[email protected]>
Update the Scheduler.get_configs() implementation to rely on the event
attribute in scheduler config entries to work out which jobs to run
rather than on the Job.run_on attribute which has now been removed.
This simplifies the logic and makes it more flexible.

Signed-off-by: Guillaume Tucker <[email protected]>
Remove the `kci sched list_jobs` command as event criteria for running
jobs is now specified in the scheduler config entries rather than in
the job configs.

Signed-off-by: Guillaume Tucker <[email protected]>
@gctucker
Copy link
Contributor Author

Tested OK on staging:

Listening for events... 
Press Ctrl-C to stop.
Time                        Commit        Node Id                   State      Result    Name
2023-06-23 07:37:47.960624  a14daf572d52  64954bcb5b4805a68b17a068  Running    -         checkout
2023-06-23 07:38:42.454629  a14daf572d52  64954bcb5b4805a68b17a068  Available  -         checkout
2023-06-23 07:38:42.567721  a14daf572d52  64954c025b4805a68b17a069  Running    -         kver
2023-06-23 07:38:42.610653  a14daf572d52  64954c025b4805a68b17a06a  Running    -         kbuild-gcc-10-x86
2023-06-23 07:38:42.634080  a14daf572d52  64954c025b4805a68b17a06b  Running    -         kunit
2023-06-23 07:38:44.730092  a14daf572d52  64954c045b4805a68b17a06c  Running    -         kunit-x86_64
2023-06-23 07:38:59.195247  a14daf572d52  64954c025b4805a68b17a069  Done       Pass      kver
2023-06-23 07:40:21.207364  a14daf572d52  64954c025b4805a68b17a06b  Done       Pass      kunit
2023-06-23 07:42:54.582110  a14daf572d52  64954c045b4805a68b17a06c  Done       Pass      kunit-x86_64
2023-06-23 07:44:14.831739  a14daf572d52  64954c025b4805a68b17a06a  Done       Pass      kbuild-gcc-10-x86
2023-06-23 07:44:14.954052  a14daf572d52  64954d4e5b4805a68b17a19d  Running    -         baseline-x86
2023-06-23 07:45:00.400240  a14daf572d52  64954d4e5b4805a68b17a19d  Done       Pass      baseline-x86
2023-06-23 07:48:48.643089  a14daf572d52  64954bcb5b4805a68b17a068  Done       -         checkout

@gctucker gctucker added this pull request to the merge queue Jun 30, 2023
Merged via the queue into kernelci:main with commit 40eb863 Jun 30, 2023
@gctucker gctucker deleted the scheduler-event-config branch June 30, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Job configuration implementation
1 participant