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

intergration test fatal but pass during the test process #2607

Closed
Zheaoli opened this issue Oct 29, 2023 · 2 comments
Closed

intergration test fatal but pass during the test process #2607

Zheaoli opened this issue Oct 29, 2023 · 2 comments
Labels
area/ci e.g., CI failure question Further information is requested

Comments

@Zheaoli
Copy link
Member

Zheaoli commented Oct 29, 2023

Description

TestLoginWithPlainHttp/{regHost:127.0.0.1_regPort:5000_useRegPort:true_username:admin_password:validTestPassword_shouldSuccess:true_registry:0xc00087c8a0_shouldUseInSecure:true}
    login_linux_test.go:172: Good password
    testing.go:1490: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
--- FAIL: TestLoginWithPlainHttp/{regHost:127.0.0.1_regPort:5000_useRegPort:true_username:admin_password:validTestPassword_shouldSuccess:true_registry:0xc00087c8a0_shouldUseInSecure:true} (0.06s)
FAIL cmd/nerdctl.TestLoginWithPlainHttp/{regHost:127.0.0.1_regPort:5000_useRegPort:true_username:admin_password:validTestPassword_shouldSuccess:true_registry:0xc00087c8a0_shouldUseInSecure:true} (0.06s)
=== RUN   TestLoginWithPlainHttp
    testregistry_linux.go:76: hostIP="10.4.0.1", listenIP="0.0.0.0", listenPort=5000, authPort=5001
    testregistry_linux.go:152: Writing "/tmp/TestLoginWithPlainHttp[410](https://github.com/containerd/nerdctl/actions/runs/6676961715/job/18153290242#step:6:411)4224326/004/certs.d2153916044/10.4.0.1:5000/hosts.toml": "\nserver = \"[https://10.4.0.1:5000\](https://10.4.0.1:5000/)"\n[host.\"[https://10.4.0.1:5000\](https://10.4.0.1:5000/)"]\n  ca = \"/tmp/TestLoginWithPlainHttp4104224326/001/ca3297043694/ca.cert\"\n\t\t"
    testregistry_linux.go:76: hostIP="10.4.0.1", listenIP="0.0.0.0", listenPort=80, authPort=5002
    testregistry_linux.go:152: Writing "/tmp/TestLoginWithPlainHttp4104224326/008/certs.d1309872666/10.4.0.1:80/hosts.toml": "\nserver = \"[https://10.4.0.1:80\](https://10.4.0.1:80/)"\n[host.\"[https://10.4.0.1:80\](https://10.4.0.1:80/)"]\n  ca = \"/tmp/TestLoginWithPlainHttp4104224326/005/ca598583313/ca.cert\"\n\t\t"
    login_linux_test.go:185: assertion failed: res.ExitCode is not exitCode: time="2023-10-28T13:05:28Z" level=warning msg="WARNING! Using --password via the CLI is insecure. Use --password-stdin."
        time="2023-10-28T13:05:28Z" level=warning msg="skipping verifying HTTPS certs for \"127.0.0.1:5000\""
        time="2023-10-28T13:05:28Z" level=debug msg="Found hosts dir \"/tmp/TestLoginWithPlainHttp4104224326/004/certs.d2153916044\""
        time="2023-10-28T13:05:28Z" level=debug msg="len(regHosts)=1"
        time="2023-10-28T13:05:28Z" level=debug msg="no scope specified for token auth challenge" host="127.0.0.1:5000"
        time="2023-10-28T13:05:28Z" level=error msg="failed to call tryLoginWithRegHost" error="failed to call rh.Authorizer.Authorize: failed to fetch oauth token: Post \"[https://10.4.0.1:5001/auth\](https://10.4.0.1:5001/auth/)": tls: failed to verify certificate: x509: certificate signed by unknown authority" i=0
        time="2023-10-28T13:05:28Z" level=fatal msg="failed to call rh.Authorizer.Authorize: failed to fetch oauth token: Post \"[https://10.4.0.1:5001/auth\](https://10.4.0.1:5001/auth/)": tls: failed to verify certificate: x509: certificate signed by unknown authority"
        
--- FAIL: TestLoginWithPlainHttp (13.22s)
FAIL cmd/nerdctl.TestLoginWithPlainHttp (13.22s)

https://github.com/containerd/nerdctl/actions/runs/6676961715/job/18153290242

Steps to reproduce the issue

Describe the results you received and expected

https://github.com/containerd/nerdctl/actions/runs/6676961715/job/18153290242

What version of nerdctl are you using?

master

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

@Zheaoli Zheaoli added kind/unconfirmed-bug-claim Unconfirmed bug claim bug Something isn't working area/ci e.g., CI failure regression and removed kind/unconfirmed-bug-claim Unconfirmed bug claim labels Oct 29, 2023
@Zheaoli
Copy link
Member Author

Zheaoli commented Oct 29, 2023

#1558

@AkihiroSuda
Copy link
Member

PASS cmd/nerdctl.TestLoginWithPlainHttp (re-run 1) (23.70s)

The test passed after retrying once.
So, it can be safely marked as green.

@AkihiroSuda AkihiroSuda closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2023
@AkihiroSuda AkihiroSuda added question Further information is requested and removed bug Something isn't working regression labels Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci e.g., CI failure question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants