Skip to content

Conversation

joestringer
Copy link
Member

@joestringer joestringer commented Sep 7, 2021

Recently, upstream gomega moved to Go 1.16 which is apparently not
available in the workflow environment here. This causes problems like:

# github.com/onsi/gomega/matchers                                           
go/src/github.com/onsi/gomega/matchers/have_http_body_matcher.go:84:30: undefined: io.ReadAll
go/src/github.com/onsi/gomega/matchers/have_http_status_matcher.go:81:16: undefined: io.ReadAll
# github.com/onsi/gomega/gmeasure                                           
go/src/github.com/onsi/gomega/gmeasure/cache.go:69:18: undefined: os.ReadDir
go/src/github.com/onsi/gomega/gmeasure/cache.go:90:18: undefined: os.ReadDir

We already run the K8sConformance one-node test as part of the regular
jenkins runs, so this run in the GitHub workflow is duplicate. Newer
releases don't run this test as part of the linting since it's not
linting anyway, so we can just drop these steps to resolve the issue and
rely on Jenkins to provide feedback on this particular test.

For what it's worth, I did briefly try pinning to ginkgo@v1.15.2 and
gomega@v1.15.0 to resolve this but Go would complain about not wanting
to pull a specific version into the $GOPATH, or otherwise complain about
the vendor dependencies conflicting if I tried to use GO111MODULE.
Seemed simpler in the end to just drop this logic from the GitHub action.

Fixes: #17263

@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Sep 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added backport/1.8 kind/backports This PR provides functionality previously merged into master. labels Sep 7, 2021
@joestringer joestringer changed the title .github: Pin ginkgo/gomega versions in lint v1.8: .github: Pin ginkgo/gomega versions in lint Sep 7, 2021
@joestringer joestringer force-pushed the submit/fix-v1.8-conformance branch from e36816d to 06d5e3c Compare September 7, 2021 18:43
@joestringer joestringer marked this pull request as draft September 7, 2021 18:44
Recently, upstream gomega moved to Go 1.16 which is apparently not
available in the workflow environment here. This causes problems like:

    # github.com/onsi/gomega/matchers
    go/src/github.com/onsi/gomega/matchers/have_http_body_matcher.go:84:30: undefined: io.ReadAll
    go/src/github.com/onsi/gomega/matchers/have_http_status_matcher.go:81:16: undefined: io.ReadAll
    # github.com/onsi/gomega/gmeasure
    go/src/github.com/onsi/gomega/gmeasure/cache.go:69:18: undefined: os.ReadDir
    go/src/github.com/onsi/gomega/gmeasure/cache.go:90:18: undefined: os.ReadDir

We already run the K8sConformance one-node test as part of the regular
jenkins runs, so this run in the GitHub workflow is duplicate. Newer
releases don't run this test as part of the linting since it's not
linting anyway, so we can just drop these steps to resolve the issue and
rely on Jenkins to provide feedback on this particular test.

For what it's worth, I did briefly try pinning to ginkgo@v1.15.2 and
gomega@v1.15.0 to resolve this but Go would complain about not wanting
to pull a specific version into the $GOPATH, or otherwise complain about
the vendor dependencies conflicting if I tried to use GO111MODULE.
Seemed simpler in the end to just drop this logic from the GitHub action.

Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer joestringer force-pushed the submit/fix-v1.8-conformance branch from 06d5e3c to e3db2a6 Compare September 7, 2021 19:21
@joestringer joestringer changed the title v1.8: .github: Pin ginkgo/gomega versions in lint v1.8: .github: Remove conformance test from lint workflow Sep 7, 2021
@joestringer joestringer requested a review from aanm September 7, 2021 19:21
@joestringer joestringer marked this pull request as ready for review September 7, 2021 20:13
@aanm
Copy link
Member

aanm commented Sep 15, 2021

@joestringer both ginkgo and gomega are binaries used in a git repository. We could use git clone ... && git checkout v1.5.3 && go install ./... to pin a specific version. Just something to keep in mind so that we don't start removing conformance tests in the future.

@joestringer
Copy link
Member Author

test-backport-1.8

@joestringer
Copy link
Member Author

Oh, I forgot the reason why I didn't run full CI in the first place - This only changes Smoke test / lint-test (pull_request) which passed. Good to merge.

@joestringer joestringer merged commit da56ab9 into cilium:v1.8 Sep 15, 2021
@joestringer joestringer deleted the submit/fix-v1.8-conformance branch September 15, 2021 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backports This PR provides functionality previously merged into master. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants