Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

[WIP] Split job queueing and job checking #109

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

major
Copy link
Contributor

@major major commented Jul 13, 2018

This PR aims to split the job queueing and job checking functionality in sktm. The goal is to allow sktm to 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:

  • Check baselines every 7 days
  • Enqueue patches every 30 minutes
  • Check on pending jobs every 5 minutes

This is still an early WIP. Please don't consider merging it yet.

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>
@major major added the enhancement New feature or request label Jul 13, 2018
@major major self-assigned this Jul 13, 2018
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>
@major major force-pushed the exit-dont-sleep branch 2 times, most recently from 820d8ef to 2736fb5 Compare July 13, 2018 17:23
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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant