-
Notifications
You must be signed in to change notification settings - Fork 397
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
Assess version markers used in release-branch job configs #850
Comments
/cc |
To respond to @spiffxp's comment on the Branch Management issue:
Agreed. Now codified in the Branch Management handbook.
I liked this idea and actually mentioned this to @tpepper after bumping into kubernetes/test-infra#15514. My thought here is that creating the new release branch jobs immediately after the final patch release would result in turning down CI on the last-supported branch way sooner and giving time to watch the new release branch jobs stability. This comes at the cost of more branch fast-forwards and more cherry picks. Do we think that's worth it?
I'm not a fan of this nomenclature, especially because it has consistently caused confusion and inconsistency around what's under test at one period in the release cycle. Are there any glaring things that we'd need to look out for going down this route? |
I don't think it would cause more cherry-picks? Those don't start happening until after code freeze. I was envisioning that alpha's would get cut off of the release-1.y branch with this approach, and that master's version wouldn't bump until after code freeze. This is different than today, where master's version bumps as soon as the release branch is cut.
We'll "lose" historical data for jobs on our dashboards (testgrid, triage, velodrome, etc), since none of them comprehend job renames or moves. Early in the release cycle is probably the best time to induce such a gap. Outside of that I suspect it's not glaring things, just lots of tiny renames. @Katharine might be able to better explain what prevented us from moving ahead with the rename in kubernetes/test-infra#12516. |
@spiffxp -- Good point. This was mushy brain from triaging other stuff.
I think I'm fine with losing some historical data if it leads to ease of management for the team over time. @kubernetes/release-engineering -- What are your thoughts on this? |
Some discussion in Slack here: https://kubernetes.slack.com/archives/C09QZ4DQB/p1576104279099300 |
Here's another instance of wrestling with version markers being a general nightmare: kubernetes/test-infra#15875 That PR should've been at most a few commits. This cycle I'm going to be looking at renaming the release-branch jobs that reference From there, we'll need to look at refactoring |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. 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. |
/reopen |
@justaugustus: Reopened this issue. 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. |
@xmudrii is on the right track by opening this issue for I'm happy for someone else to attempt closing this, but it may just as well make sense for me to tackle given the context. |
This plan in the description may be still the right path forward, but take caution and ask questions as it's been a while since I've updated it. Plan of record
|
@justaugustus -- I'd be happy to help with this! Let me take a look into the current situation and then we can sync about this if needed. |
I would be happy to help with this work. Please let me know if help is needed :) |
I'm not working on this at the moment. |
Version markers are text files stored in the root of various GCS buckets:
They represent the results of different types of Kubernetes build jobs and act as sort of a public API for accessing builds. One can see them leveraged in extraction strategies for e2e tests, release engineering tooling, and user-created scripts.
Unfortunately, the way certain version markers are generated and utilized can at best be confusing, and at worst, disruptive.
There are a variety of problems, some of which are symptoms of the other ones...
Generic version markers are not explicit
We publish a set of additional generic version markers:
k8s-master
k8s-beta
k8s-stable1
k8s-stable2
k8s-stable3
Depending on the point in the release cycle, the meaning of these markers can
change.
k8s-master
always points to the version onmaster
.k8s-beta
may represent:master
s build version (pre-branch cut)Knowing what these markers mean at any one time presumes knowledge of the
build/release process or a correct interpretation of the
Kubernetes versions doc,
which has frequently been out of date and lives in a low-visibility location.
Manually created jobs using generic version markers can be inaccurate
Non-generated jobs using generic version markers do not get the same level of
scrutiny as ones that are generated via
releng/test_config.yaml
.This leads to inaccuracies between the versions presumed to be used in test
and the versions that may be displayed in testgrid.
ci-kubernetes-e2e-gce-beta-stable1-gci-kubectl-skew
is a great example:https://github.com/kubernetes/test-infra/blob/96e08f4be2a86189f59c72055785f817ac346d30/config/jobs/kubernetes/sig-cli/sig-cli-config.yaml#L85-L112
All variants of that prowjob have landed on the
sig-release-job-config-errors
dashboard for various misconfiguration issues that are the result of generic
version markers.
I'd like to establish a rough plan of record to continue iteratively fixing some of these issues.
Plan of record
latest-x.y
) version markers in generated jobsstable4
field to the kubernetes version lists inreleng/test_config.yaml
to remove confusion around jobs withbeta
in their namefork-per-release-generic-suffix: "true"
annotationsfork-per-release-generic-suffix: "true"
annotationsreleng/test_config.yaml
to remove references to generic versions (e.g., preferci-kubernetes-e2enode-ubuntu1-latest-1-19-gkespec
overci-kubernetes-e2enode-ubuntu1-k8sbeta-gkespec
)Previous Issues
linux/amd64 version markers are colliding with cross builds
(Fixed in kubernetes/test-infra#18290.)
"Fast" (linux/amd64-only) builds run every 5 minutes, while cross builds run
every hour.
They also write to the same version markers (
latest.txt
,latest-<major>.txt
,latest-<major>.<minor>.txt
).The Kubernetes build jobs have a mechanism for checking if a build already
exists and will exit early to save on test cycles.
What this means is if a "fast" build has already happened for a commit, then
the corresponding cross build will exit without building.
This has been happening pretty consistently lately, so cross build consumers
are using much older versions of Kubernetes than intended.
(Note that this condition only happens on
master
.)Cross builds are stored in a separate GCS bucket
(Fixed in kubernetes/test-infra#14030.)
This makes long-term usage of cross builds a little more difficult, since
scripts utilizing version markers tend to consider only the version marker
filename, while the GCS bucket name remains unparameterized.
Generated jobs may not represent intention
(Fixed in kubernetes/test-infra#15564.)
As the generic version markers can shift throughout the release cycle, every
time we regenerate jobs, they may not represent what we intend to test.
The best examples of this are pretty much every job using the
k8s-beta
version marker, and more specifically, skew and upgrade jobs.
bazel version markers appear to be unused
(Fixed in kubernetes/test-infra#15612.)
ref: kubernetes/test-infra#15106
/assign
/area release-eng
/priority important-longterm
/milestone v1.17
The text was updated successfully, but these errors were encountered: