Giter Club home page Giter Club logo

Comments (15)

dims avatar dims commented on September 26, 2024

cc @jsturtevant @marosset

/sig windows

from kubernetes.

dims avatar dims commented on September 26, 2024

xref: #125067

from kubernetes.

neolit123 avatar neolit123 commented on September 26, 2024

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go

i can't repro locally with go 1.22.
it seems workspace related.

from kubernetes.

dims avatar dims commented on September 26, 2024

@neolit123 possibly kubernetes/test-infra#32647 ?

from kubernetes.

BenTheElder avatar BenTheElder commented on September 26, 2024

/triage accepted

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go

This probably means we're building without setting up the go environment, which makes sense because our scripts support linux primarily.

We should teach the windows builds to respect toolchain / .go-version / make sure they're using a go version new enough to bootstrap that.

from kubernetes.

BenTheElder avatar BenTheElder commented on September 26, 2024

I don't think kubernetes/test-infra#32647 is related, because that's the go version for the tool launching cloudbuilds, but we're seeing is the go version where the wincat build happens.

from kubernetes.

BenTheElder avatar BenTheElder commented on September 26, 2024

/assign

from kubernetes.

dims avatar dims commented on September 26, 2024

@BenTheElder Ack, took the opportunity to fix it anyway even if it was not the real culprit.... i am trying make OUTPUT_TYPE=registry OS=windows ARCH=amd64 OSVERSION=1809 container which seems to work fine locally as well (gets past the stage where wincat failed to build)

from kubernetes.

BenTheElder avatar BenTheElder commented on September 26, 2024

The strange part is we should already be running this step inside kube-cross with the expected version, so ...

We can even see in the logs:

docker run --rm -u $(id -u):$(id -g) -v $(pwd):/build \
	registry.k8s.io/build-image/kube-cross:v1.31.0-go1.22.3-bullseye.0 \
	/bin/bash -c "\
		cd /build && \
		x86_64-w64-mingw32-gcc -Os -Wall -Werror -static -DVERSION=v3.10- -o bin/pause-windows-amd64 windows/pause.c && \
		x86_64-w64-mingw32-strip  bin/pause-windows-amd64.exe"
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go
reading go.work: /workspace/go.work:3: invalid go version '1.22.0': must match format 1.23

from kubernetes.

BenTheElder avatar BenTheElder commented on September 26, 2024

Oh, I see, we're not containerizing all of it.

from kubernetes.

dims avatar dims commented on September 26, 2024

@BenTheElder if you start docker run -it --entrypoint bash gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20230623-56e06d7c18 and git clone k8s, you can see the problem

23a99242e41f:/workspace/kubernetes/build/pause# CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go
reading go.work: /workspace/kubernetes/go.work:3: invalid go version '1.22.0': must match format 1.23

unfortunately the newest version gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240210-bcb4e42f96 also does not work and fails with a slightly different reason (better reason!)

721fc0a9976c:/workspace/kubernetes/build/pause# CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go
go: ../../go.work requires go >= 1.22.0 (running go 1.21.6; GOTOOLCHAIN=local)

from kubernetes.

dims avatar dims commented on September 26, 2024

@BenTheElder kubernetes/test-infra#32652 PTAL

from kubernetes.

BenTheElder avatar BenTheElder commented on September 26, 2024

filed #125105 PTAL, this should avoid us depending on the GCB image specifics

from kubernetes.

BenTheElder avatar BenTheElder commented on September 26, 2024

This is fixed by #125105. https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/post-kubernetes-push-image-pause/1793743356572995584

from kubernetes.

BenTheElder avatar BenTheElder commented on September 26, 2024

#125108 will also go ahead and pickup the current gcb-gcloud-docker while we're at it

from kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.