-
Notifications
You must be signed in to change notification settings - Fork 505
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
CI builds are breaking after we stopped immediately building rc.0 #2972
Comments
We could change the regex, but I think it's not expected that version string format would change. |
/kind bug |
It's not the format which changes, it's just a case which we have not considered yet. I think we should fix the regex, because it looks like that it matches now incorrectly group 4 of the release/pkg/release/release.go Line 61 in cbd865f
The last matching group (group 4) is wrongly matched in the regex, because it should be part of the release/pkg/release/release.go Line 62 in cbd865f
The assembling of the regular expressions make them fail, because in case of release/pkg/release/release.go Line 244 in cbd865f
|
I'm +1 for changing the regex, it seems wrong. I see two options here:
|
I agree having a tag without artifacts seems not correct. |
is this also blocking presubmit e2e runs on release branches? seeing
in presubmits as well |
I'm not awake enough to vet version formats but please be careful with that, we have other packages (including one exported for external use) that know how to parse and compare / order Kubernetes versions and some tools take action based on this |
@xmudrii are you planning to work on this or should I take a stab on the regex? |
@saschagrunert Can you please take care of it? I need to take care of jobs generation ahead of today's rc.0. |
In addition to the regex in the release repo, there's regexes in CI setup scripts that change where to pull artifacts from based on whether it is looking at a CI build or a release build. Currently, blocking e2e presubmits on all release branches are failing because it doesn't recognize CI builds as CI builds:
Edit: actually, I think the fix is needed in https://github.com/kubernetes/kubernetes/blob/c9ff2866682432075da1a961bc5c3f681b34c8ea/cluster/get-kube.sh/#L75 on all release branches :-/ Edit: or maybe at https://github.com/kubernetes/kubernetes/blob/c9ff2866682432075da1a961bc5c3f681b34c8ea/cluster/common.sh#L45-L46 Edit: or maybe at https://github.com/kubernetes/kubernetes/blob/c9ff2866682432075da1a961bc5c3f681b34c8ea/build/lib/release.sh#L52 |
This changes the version regex to allow matching non alpha, beta or rc tags together with the version build regex. Part of kubernetes/release#2972 Signed-off-by: Sascha Grunert <[email protected]>
@liggitt proposed the regex changes in kubernetes/kubernetes#116807 Another grep through k/k gave me no further results. |
ha, I just opened kubernetes/kubernetes#116808 against release-1.26 to test |
Alright, free to close mine depending on your preference. |
kubernetes/kubernetes#116809 (comment) is ready for review and picked cleanly to all release branches, CI is running now. I made very incremental changes commit by commit so it is easier to review |
we either need to reopen this or create a new issue, because blocking presubmits are still failing on all release branches |
KUBE_CI_VERSION_REGEX in kube-up needs updating, kubernetes/kubernetes#116809 is open to do that, but the script used in presubmits is apparently not the one in the PR... see kubernetes/kubernetes#116808 (comment) |
Reopening until we fixed the issues. |
kubernetes/test-infra#29102 open to trigger kubekins build to pick up kubernetes/kubernetes#116809 |
kubekins images rebuilt, kubernetes/test-infra#28975 open to update CI jobs to use them |
release branch presubmit e2e jobs passing again 😌 |
for completeness, should probably merge the picks of the kube-up regex change (https://github.com/kubernetes/kubernetes/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+116809+-base%3Amaster), but AFAICT the presubmit breakages are resolved at this point |
Alright, closing this one now. |
A issue was reported which is related: kubernetes/kubernetes#117115 |
Immediately after cutting the March patch releases, the ci builds started failing:
The error as shown in the build log shows its related to the version string:
Upon further investigation, the builds are failing because the regular expressions that check the version string don't catch the gitCommt string without the
rc.0
:👉 This is matched:
v1.25.8-rc.0.31+36b707f892c523
👉 This is not matched:
v1.25.8-1+3a14fe1af239a0
We only started seeing this as these are the first releases we cut after we stopped building the rc.0 immediately after tagging the repo.
More details on this slack thread in #release-ci-signal.
Thanks to @BenTheElder for reporting.
/cc @saschagrunert @kubernetes/release-engineering
The text was updated successfully, but these errors were encountered: