-
Notifications
You must be signed in to change notification settings - Fork 431
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
Should build the CNM for both linux and Windows if image is not present #3270
Comments
/assign @jackfrancis |
@lzhecheng FYI this would essentially revert #2171 Since the jobs reuse images built and pushed by other jobs, we are concerned about potential race conditions when one job builds Linux only and a future job then retags the image to be multi-arch |
Once we do this we can also revert kubernetes/test-infra#28991 |
@CecileRobertMichon hello, first, I think it is CNM (cloud-node-manager) right? CCM is on control plane node and they should be linux. |
yes, CNM. Do you use the script in this repo for the pre-submits on cloud-provider-azure? |
@lzhecheng that surprises me, how do we validate functional changes against Windows scenarios? |
Yes, all cloud-provider-azure jobs are using |
We use postsubmit, daily jobs to check Windows, like this one: |
@lzhecheng thanks for all that information Is this an example of a presubmit job? The above successful job run took 2 hours 47 mins. Here's a sample postsubmit job w/ Windows: That job took 2 hours 46 mins. Is it possible that adding Windows builds will not actually add a noticable time duration cost to the average test run? |
Oh, I didn't expect that. It took quite some time building windows image locally before. |
@lzhecheng Thanks for confirming, will do! |
@lzhecheng out of curiosity, why are the windows jobs not included in pre-submit? Is build times? flakiness? something else? |
When these windows jobs were deployed, they were indeed flaky. In addition, I think for most cases, a PR won't just break windows scenario, it will also be detected in a linux job. |
Which jobs are flaky:
We found that our Windows jobs weren't building the windows image for CCM: kubernetes/kubernetes#116474
Which tests are flaky:
Testgrid link:
Reason for failure (if possible):
We were missing the ENV variable and have added this to fix the issue temporarily but we should be building the image for all architectures if missing.
If we don't then we might create a tag for linux only and then later publich a multi-arch image under the same tag.
Remove this check:
https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/0f497f833a710ad2ad720124f2dd3003da9326e8/scripts/ci-build-azure-ccm.sh#L64C3-L68
Anything else we need to know:
/kind flake
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: