This repository was archived by the owner on Sep 23, 2024. It is now read-only.
[WIP] Split job queueing and job checking#109
Open
major wants to merge 6 commits intocki-project:masterfrom
Open
[WIP] Split job queueing and job checking#109major wants to merge 6 commits intocki-project:masterfrom
major wants to merge 6 commits intocki-project:masterfrom
Conversation
Create a pendingjobs table to hold information about the Jenkins job and build that are associated with patches. Signed-off-by: Major Hayden <major@redhat.com>
Signed-off-by: Major Hayden <major@redhat.com>
Allow sktm to run in a mode where it checks the previous jobs it submitted during a previous run. Signed-off-by: Major Hayden <major@redhat.com>
Signed-off-by: Major Hayden <major@redhat.com>
Allow sktm to retrieve just the build status from a Jenkins job. Signed-off-by: Major Hayden <major@redhat.com>
820d8ef to
2736fb5
Compare
Alter the pendingpatches table so that it only contains a timestamp and a patch_id that links to the id field of the patch table. All of the relevant data about a patch is in the patch table already and there is no need to replicate it in pendingpatches. Change check_pending() so that it searches the pendingjobs table and takes action on completed baselines and patchwork tests. Handle any aborted jobs properly without throwing exceptions. Signed-off-by: Major Hayden <major@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to split the job queueing and job checking functionality in
sktm. The goal is to allowsktmto check for patches, send those jobs to Jenkins, and exit. It should be able to check on a list of pending jobs the next time it runs and handle those appropriately.It also allows a user to set different intervals for various activities without waiting on any results. For example, this PR allows a schedule like this:
This is still an early WIP. Please don't consider merging it yet.