-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugins: Introduce phased plugin #3103
Conversation
github/ci/prow-deploy/files/jobs/kubevirt/project-infra/project-infra-postsubmits.yaml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @oshoval for this - it could be very useful. I just have a couple of questions inline.
github/ci/prow-deploy/files/jobs/kubevirt/project-infra/project-infra-postsubmits.yaml
Outdated
Show resolved
Hide resolved
github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-presubmits.yaml
Show resolved
Hide resolved
github/ci/prow-deploy/kustom/overlays/ibmcloud-production/kustomization.yaml
Outdated
Show resolved
Hide resolved
...w-deploy/kustom/overlays/ibmcloud-production/patches/JsonRFC6902/prow-phased-deployment.yaml
Outdated
Show resolved
Hide resolved
github/ci/prow-deploy/kustom/base/manifests/local/prow-phased-deployment.yaml
Outdated
Show resolved
Hide resolved
github/ci/prow-deploy/files/jobs/kubevirt/project-infra/project-infra-postsubmits.yaml
Outdated
Show resolved
Hide resolved
github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-presubmits.yaml
Show resolved
Hide resolved
Rebased only |
77b285e
to
08df60d
Compare
Addressed comments, post submit is as bot-review now |
Removed branch support on a follow PR we should update new branch forking to change phase 2 to be phase 1 for branches |
pull-project-infra-prow-deploy-test fails |
/retest |
worked now, there was a flake twice today |
d623253
to
5a8b17c
Compare
first push - cosmetics: remove unused code |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhiller The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I missed: you need to enable this plugin in the external_plugins config like here:
project-infra/github/ci/prow-deploy/kustom/base/configs/current/plugins/plugins.yaml
Line 522 in 0653b9d
- name: rehearse |
It is here isn't it ? |
8794293
to
0883ae5
Compare
Pushed (separated):
Thanks /hold cancel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I overlooked the external plugin misconfiguration in first pass. That needs to get fixed.
Other than than just a spelling mistake.
Signed-off-by: Or Shoval <[email protected]>
b04789a
to
f5b1287
Compare
Thanks fixed comments |
Signed-off-by: Or Shoval <[email protected]>
Signed-off-by: Or Shoval <[email protected]>
… main Signed-off-by: Or Shoval <[email protected]>
Signed-off-by: Or Shoval <[email protected]>
created kubevirt/kubevirt for the plugin |
@oshoval: Updated the following 3 configmaps:
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Phased plugin allows running jobs that will be considered as "phase 2"
only once both lgtm / approve are presented.
We are running 3 k8s versions for each sig on kubevirt, for each PR.
With this plugin we can declare the non latest one as "phase 2"
and run it only when the PR is entering the merge queue,
This will save CI resources.
A job will be declared as "phase 2", if it has
always_run=false
,optional=false
,without additional conditions such as
run_if_changed
,skip_if_only_changed
.Since the jobs are
always_run=false
it means that a potential race condition might happenbetween running the job and merging.
For this we use
require_manually_triggered_jobs
which will block the PR enteringthe merge queue / being merge by tide before all "phase 2" jobs finish.
It will also cause tide to auto run phase 2 when rerunning batches.
Notes:
A follow-up PR will update the job forking to update phase 2 to be considered phase 1 on new branches.
kubevirt/kubevirt
.pull-kubevirt-e2e-k8s-1.27-ipv6-sig-network
was chosen as phase 2 candid.in once undrafted).