Coder Social home page Coder Social logo

Comments (8)

sk593 avatar sk593 commented on September 26, 2024 1

@sk593 Should be done. Can you try again?

(xref: https://github.com/kubernetes-sigs/controller-tools/releases/tag/envtest-v1.23.5)

Just confirmed that the fix works. We'll look into using a newer Kubernetes version to avoid similar issues in the future. Thanks for the quick turnaround!

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024

Can you share the exact setup-envtest command your running?

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024

Context: we merged this PR yesterday: #2811 (comment)

But all envtest binaries in controller tools are available for the same OS/ARCH permutations.

from controller-runtime.

sk593 avatar sk593 commented on September 26, 2024

Sure, we're running into issues with the makefile. This code in test.mk where we try to download the setup-envtest package is causing the error: https://github.com/radius-project/radius/blob/66aad2c07b0793a1c59088b4868a83596ca3e448/build/test.mk#L50. Because the setup-envtest package doesnt get installed correctly, the tests that use the package fail.

This is how we use the setup-envtest package in our code: https://github.com/radius-project/radius/blob/main/test/ucp/kubeenv/testenv.go. And this is the test it gets used in: https://github.com/radius-project/radius/blob/4cacb5872861e0fcce74a9109f0cdecd361d80ed/pkg/ucp/queue/apiserver/client_test.go#L100

This started happening after #2811 was merged and only for linux which is interesting. Previous versions of the package are working as expected and I tested on a darwin machine that downloaded the binary completely fine.

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024

@sk593 will be fixed by: kubernetes-sigs/controller-tools#979

Basically setup-envtest@latest now gets the binaries from controller-tools releases instead of GCS. We only published v1.23+.

Might be worth considering using a newer Kubernetes version than 1.23 for your tests. I have absolutely no idea why this woul only happen on linux, we published the same versions for all OS/architecture combinations.

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024

@sk593 Should be done. Can you try again?

(xref: https://github.com/kubernetes-sigs/controller-tools/releases/tag/envtest-v1.23.5)

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024

No problem. We basically just created envtest binaries for relatively recent versions at the new location (controller-tools). We stopped at 1.24 :)

/close

from controller-runtime.

k8s-ci-robot avatar k8s-ci-robot commented on September 26, 2024

@sbueringer: Closing this issue.

In response to this:

No problem. We basically just created envtest binaries for relatively recent versions at the new location (controller-tools). We stopped at 1.24 :)

/close

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-sigs/prow repository.

from controller-runtime.

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.