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

TestMatchLabels Is Consistently Failing #10159

Closed
danehans opened this issue Oct 3, 2024 · 3 comments
Closed

TestMatchLabels Is Consistently Failing #10159

danehans opened this issue Oct 3, 2024 · 3 comments
Assignees
Labels
Prioritized Indicating issue prioritized to be worked on in RFE stream Type: Bug Something isn't working Type: CI Test Flake A non-deterministic test that slows down development

Comments

@danehans
Copy link
Contributor

danehans commented Oct 3, 2024

Which tests failed?

TestWatchNamespaceSelector/WatchNamespaceSelector/TestMatchLabels

Initial Investigation

This test has repeatedly failed for solo-io#10140 even though the PR does not appear to effect the codepath associated with this test. I have reproduced the same test failure locally using the main branch:

$ GOLANG_PROTOBUF_REGISTRATION_CONFLICT=ignore go test -v -timeout 600s ./test/kubernetes/e2e/tests -run ^TestWatchNamespaceSelector$
...
stderr:*   Trying 10.96.94.168:80...
* Connected to gateway-proxy.namespace-selector.svc.cluster.local (10.96.94.168) port 80 (#0)
> GET / HTTP/1.1
> Host: random
> User-Agent: curl/7.83.1-DEV
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< content-length: 13
< content-type: text/plain
< date: Wed, 02 Oct 2024 22:49:09 GMT
< server: envoy
<
{ [13 bytes data]
* Connection #0 to host gateway-proxy.namespace-selector.svc.cluster.local left intact


=== NAME  TestWatchNamespaceSelector
    curl.go:140:
        Failed after 0.334s.
        The function passed to Consistently failed at /Users/solo-system-dhansen/go/src/github.com/solo-io/gloo/test/kubernetes/testutils/assertions/curl.go:134 with:
        Expected
            <*http.Response>: {
                Status:     <string>: ""
                StatusCode: <int>: 200
                Body:       <string>: "Hello, world!"
            }
        to have HTTP status
            <int>: 404

        expected: {
          "StatusCode": 404,
          "Body": null,
          "Headers": null,
          "Custom": null
        }
virtualservice.gateway.solo.io "vs-random" deleted
namespace "random" deleted
=== NAME  TestWatchNamespaceSelector/WatchNamespaceSelector/TestMatchLabels
    testing.go:1577: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
virtualservice.gateway.solo.io "vs-install-ns" deleted
namespace "curl" deleted
pod "curl" deleted
=== NAME  TestWatchNamespaceSelector/WatchNamespaceSelector
    testing.go:1577: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
"Wed, 02 Oct 2024 15:49:58 PDT: github.com/solo-io/gloo/test/kubernetes/testutils/helper/install.go:452"	uninstalling gloo...
  Uninstalling Gloo Gateway...
  Removing Gloo system components from namespace namespace-selector...
  Removing Gloo CRDs...
  Removing namespace namespace-selector... Done.

  Gloo was successfully uninstalled.
--- FAIL: TestWatchNamespaceSelector (149.50s)
    --- FAIL: TestWatchNamespaceSelector/WatchNamespaceSelector (68.40s)
        --- PASS: TestWatchNamespaceSelector/WatchNamespaceSelector/TestMatchExpressions (20.08s)
        --- FAIL: TestWatchNamespaceSelector/WatchNamespaceSelector/TestMatchLabels (5.15s)
FAIL
FAIL	github.com/solo-io/gloo/test/kubernetes/e2e/tests	149.589s
FAIL

Additional Information

The failing test was included in a PR that merged yesterday (10/1/24) via solo-io#10104.

┆Issue is synchronized with this Asana task by Unito

@danehans danehans added Type: Bug Something isn't working Type: CI Test Flake A non-deterministic test that slows down development labels Oct 3, 2024
@danehans
Copy link
Contributor Author

danehans commented Oct 3, 2024

@davidjumani when you have a moment, PTAL since you added #10104.

@davidjumani davidjumani added the Prioritized Indicating issue prioritized to be worked on in RFE stream label Oct 3, 2024
@davidjumani davidjumani self-assigned this Oct 3, 2024
@danehans
Copy link
Contributor Author

danehans commented Oct 3, 2024

I confirmed locally that solo-io#10104 fixed this issue:

$ GOLANG_PROTOBUF_REGISTRATION_CONFLICT=ignore go test -v -timeout 600s ./test/kubernetes/e2e/tests -run ^TestWatchNamespaceSelector$
...
  Gloo was successfully uninstalled.
--- PASS: TestWatchNamespaceSelector (232.58s)
    --- PASS: TestWatchNamespaceSelector/WatchNamespaceSelector (131.88s)
        --- PASS: TestWatchNamespaceSelector/WatchNamespaceSelector/TestMatchExpressions (32.40s)
        --- PASS: TestWatchNamespaceSelector/WatchNamespaceSelector/TestMatchLabels (30.38s)
        --- PASS: TestWatchNamespaceSelector/WatchNamespaceSelector/TestUnwatchedNamespaceValidation (5.17s)
        --- PASS: TestWatchNamespaceSelector/WatchNamespaceSelector/TestWatchedNamespaceValidation (20.87s)
PASS
ok  	github.com/solo-io/gloo/test/kubernetes/e2e/tests	232.672s

@davidjumani
Copy link
Contributor

Fixed in solo-io#10160 && solo-io#10162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prioritized Indicating issue prioritized to be worked on in RFE stream Type: Bug Something isn't working Type: CI Test Flake A non-deterministic test that slows down development
Projects
None yet
Development

No branches or pull requests

2 participants