-
Notifications
You must be signed in to change notification settings - Fork 64
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
Library test case produces different error than expected in CI #1588
Comments
blocking devfile/library#212 from merging |
Was able to trace error back to here: https://github.com/golang/go/blob/752b009010df021c45f620e683ec062d22b552bf/src/net/dnsclient_unix.go#L230 Expected error should be traced here: https://github.com/golang/go/blob/752b009010df021c45f620e683ec062d22b552bf/src/net/dnsclient_unix.go#L209 The problem seems to be in how |
Testing later Ubuntu version in workflows: devfile/library#214 |
No good, still produces:
|
I've been looking around this and I think it might make sense to remove the prefix from the test? https://github.com/devfile/library/blob/main/pkg/devfile/parser/parse_test.go#L4857 |
I found this answer too and I've tried this, it produces a different error as the function from |
Using a bypass error pattern to expect Tried these changes with changes in devfile/library#212 under a Ubuntu Server 22.04 LTS and got:
|
/kind bug
Which area is this bug related to?
/area ci
/area library
What versions of software are you using?
Go project
Operating System and version: Ubuntu 22.04.4 LTS
Go Pkg Version: 1.21
Bug Summary
Describe the bug:
Library test case
Test_parseFromRegistry/should_fail_if_registryUrl_is_invalid
produces different errorserver misbehaving
instead of expectedno such host
. This only seems to happening in the CI, not local test runs ofmake test
, after updating to Go 1.21 and Kubernetes 1.29.To Reproduce:
One can attempt to reproduce by running
make test
with a Go 1.21 runtime, so far reproducing this difference in error does not work locally (for me in Fedora 39) where it run with expected error that passes the test case.To reproduce in CI at the time of writing, produce a branch with updates to library to use Go 1.21 and Kubernete 1.29, including updating the Go runtime version in the workflow, then run the
build
workflow.Expected behavior
Error should be the following to match the test case expectation
Get .* dial tcp: lookup http: .*
:Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
Currently getting this error in that test case:
Error Log
Additional context
Any workaround?
Don't make these changes, but this blocks dependencies from updating the Kubernetes version.
Suggestion on how to fix the bug
None yet, needs investigating.
The text was updated successfully, but these errors were encountered: