Skip to content

intergration test fatal but pass during the test process #2607

Closed as not planned

Description

@Zheaoli

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

Activity

  1. added
    kind/unconfirmed-bug-claim
    bug
    area/ci
    and removed
    kind/unconfirmed-bug-claim
    on Oct 29, 2023
  2. Zheaoli commented on Oct 29, 2023

    @Zheaoli
    MemberAuthor
  3. AkihiroSuda commented on Oct 29, 2023

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

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

  4. added
    question
    and removed
    bug
    on Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ciquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions