Allow users to generate periodic jobs#60
Allow users to generate periodic jobs#60openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Conversation
d6f3bac to
2cdbf14
Compare
2cdbf14 to
1ec8316
Compare
|
@stevekuznetsov I'll look tomorrow, but one thing that is surprising to me is that |
|
Very interesting. I'll look again. |
|
|
|
From a quick skim, the determinizer does re-write the periodics, so I think Nikos is right here. |
|
/lgtm @petr-muller If you wanna take a look. |
I don't think so - the determinizer only does See e.g. here, the keys are not sorted. @droslean Please read what I wrote - I'm not expecting new jobs to be generated, but existing, non-generated periodics to be "determinized". |
|
Ah, pruning: ci-tools/cmd/ci-operator-prowgen/main.go Line 609 in 3b3d772 This explains why A good test would also be trying to generate a periodic for a component which already has some handcrafted periodics (like openshift/release) and checking if these handcrafted jobs are kept, determinized, and new ones correctly added.
|
There was a problem hiding this comment.
Places that should taught about periodics:
- main.go:prune()
- main.go:pruneStaleJobs()
- possibly pkg/jobconfig/files.go: we are currently placing all
*-periodics.yamlinto thejob-config-miscshard because they weren't previously tied to any branch, but now they will. This could be fixed for consistency, I believe nothing would break if we keep it that way. - pkg/jobconfig/files.go:mergeConfigs currently only merges presubmits and postsubmits. Fixing this should make determinizer process periodics.
1ec8316 to
4ba611a
Compare
324801d to
0d62df3
Compare
0d62df3 to
725a64b
Compare
In addition to generating presubmits and postsubmits, a new field on the test type allows users to generate periodic jobs. In order to support generating periodic jobs that require the `src-build` step, we add the repo under test as the first `extra_ref`. Jobs that do not need to clone anything will no-op. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
725a64b to
907faf8
Compare
|
/test breaking-changes |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: droslean, hongkailiu, stevekuznetsov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
In addition to generating presubmits and postsubmits, a new field on the
test type allows users to generate periodic jobs. In order to support
generating periodic jobs that require the
src-buildstep, we add therepo under test as the first
extra_ref. Jobs that do not need to cloneanything will no-op.
Signed-off-by: Steve Kuznetsov skuznets@redhat.com