Skip to content
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

It takes ~50 minutes to build kubernetes from source for Windows presubmits #1955

Open
mauriciopoppe opened this issue Feb 26, 2025 · 0 comments

Comments

@mauriciopoppe
Copy link
Member

mauriciopoppe commented Feb 26, 2025

Example: https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_gcp-compute-persistent-disk-csi-driver/1951/pull-gcp-compute-persistent-disk-csi-driver-e2e-windows-2019/1894527667919654912

The integration script is called with

+ /home/prow/go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/k8s-integration-test ... --kube-version=master ...

Which together with the flag flag.Bool("do-k8s-build", true, "building the driver from source. If false, will fetch precompiled artifacts")

Forces to build k8s from scratch

if *doK8sBuild {
klog.Info("Building Kubernetes source")
if err := buildKubernetes(testParams.k8sSourceDir, "quick-release"); err != nil {
return fmt.Errorf("failed to build Kubernetes: %v", err.Error())
}
} else {

Which takes ~50 minutes:

I0225 23:48:36.829509   17242 main.go:331] Building Kubernetes source
...
I0226 00:35:01.275869   17242 utils.go:15] Starting E2E Cluster on GCE

Do we need to build k/k from source or just take the latest CI builds? I think we should take the k/k CI builds, I forgot the reason we build from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant