-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Kops - Don't publish the latest-ci marker from periodics #33718
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman, rifelpet 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 |
@rifelpet: Updated the
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-sigs/prow repository. |
Context
The sequence of Kops version markers is:
latest-ci.txt
and if creating and tearing down a cluster is successful, writes the same marker tolatest-ci-updown-green.txt
test-infra/config/jobs/kubernetes/kops/kops-periodics-pipeline.yaml
Lines 36 to 37 in 5bc25c3
latest-ci-updown-green.txt
:test-infra/config/jobs/kubernetes/kops/build_jobs.py
Lines 81 to 82 in 5bc25c3
Problem
The e2e-kops-aws-k8s-latest periodic job has been reading from
latest-ci-updown-green.txt
and writing tolatest-ci.txt
:test-infra/config/jobs/kubernetes/kops/kops-periodics-versions.yaml
Lines 36 to 38 in 5749033
This means there is a race condition with the updown-kopsmaster periodic job, reading
latest-ci.txt
from either the postsubmit-push-to-staging job or the kops-aws-k8s-latest periodic job. It also means that all of our other e2e jobs can be using outdated artifacts from kops' master branch until a kops PR merge wins the race.Solution
This PR updates the e2e-kops-aws-k8s-latest job to stop writing to the latest-ci.txt version marker, breaking the race condition. The
This version marker is only used by the k/k presubmit job
comment is not true because we see the marker is used by the pipeline job that write to latest-ci-updown-green.txt.I'm also adding a storage class setting to build_jobs.py that was added directly to yaml in #33704