Skip to content

testutil.LoadBusybox() load both "regular" and "glibc" busybox variants#41937

Open
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:use_frozen
Open

testutil.LoadBusybox() load both "regular" and "glibc" busybox variants#41937
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:use_frozen

Conversation

@thaJeztah
Copy link
Member

relates to #36375, which added this variant of the busybox image

This makes sure that the swarm tests use the frozen image, instead of pulling the image from Docker Hub. We already have these images locally, so loading them (like we do for the non-glibc variant) prevents some rate limits;

=== FAIL: amd64.integration-cli TestDockerSwarmSuite/TestSwarmContainerEndpointOptions (2.71s)
    --- FAIL: TestDockerSwarmSuite/TestSwarmContainerEndpointOptions (2.71s)
        docker_cli_swarm_test.go:350: assertion failed: error is not nil: exit status 125: Unable to find image 'busybox:glibc' locally
            /usr/local/cli/docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
            See '/usr/local/cli/docker run --help'.

This makes sure that the swarm tests use the frozen image, instead of
pulling the image from Docker Hub. We already have these images locally,
so loading them (like we do for the non-glibc variant) prevents some
rate limits;

    === FAIL: amd64.integration-cli TestDockerSwarmSuite/TestSwarmContainerEndpointOptions (2.71s)
        --- FAIL: TestDockerSwarmSuite/TestSwarmContainerEndpointOptions (2.71s)
            docker_cli_swarm_test.go:350: assertion failed: error is not nil: exit status 125: Unable to find image 'busybox:glibc' locally
                /usr/local/cli/docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
                See '/usr/local/cli/docker run --help'.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

Sigh.. doesn't seem to work for some odd reason; it fails to load the image that were were originally loading 🤔

=== RUN   TestDaemonIpcModePrivate
--- FAIL: TestDaemonIpcModePrivate (1.79s)
    ipcmode_linux_test.go:245: assertion failed: error is not nil: Error response from daemon: No such image: busybox:latest

=== RUN   TestCgroupNamespacesRun
--- FAIL: TestCgroupNamespacesRun (1.80s)
    container.go:52: assertion failed: error is not nil: Error response from daemon: No such image: busybox:latest

=== RUN   TestRestartDaemonWithRestartingContainer
=== PAUSE TestRestartDaemonWithRestartingContainer
=== CONT  TestRestartDaemonWithRestartingContainer
--- FAIL: TestRestartDaemonWithRestartingContainer (2.04s)
    container.go:52: assertion failed: error is not nil: Error response from daemon: No such image: busybox:latest

=== RUN   TestDaemonRestartKillContainers/live-restore=true/container_created_should_not_be_restarted/stop-daemon
=== PAUSE TestDaemonRestartKillContainers/live-restore=true/container_created_should_not_be_restarted/stop-daemon
=== CONT  TestDaemonRestartKillContainers/live-restore=true/container_created_should_not_be_restarted/stop-daemon
    --- FAIL: TestDaemonRestartKillContainers/live-restore=true/container_created_should_not_be_restarted/stop-daemon (1.16s)
        restart_test.go:81: assertion failed: error is not nil: Error response from daemon: No such image: busybox:latest


=== RUN   TestDaemonRestartKillContainers/live-restore=false/container_created_should_not_be_restarted/stop-daemon
=== PAUSE TestDaemonRestartKillContainers/live-restore=false/container_created_should_not_be_restarted/stop-daemon
=== CONT  TestDaemonRestartKillContainers/live-restore=false/container_created_should_not_be_restarted/stop-daemon
    --- FAIL: TestDaemonRestartKillContainers/live-restore=false/container_created_should_not_be_restarted/stop-daemon (1.06s)
        restart_test.go:81: assertion failed: error is not nil: Error response from daemon: No such image: busybox:latest

=== RUN   TestDaemonRestartKillContainers/live-restore=true/container_with_restart=always/stop-daemon
=== PAUSE TestDaemonRestartKillContainers/live-restore=true/container_with_restart=always/stop-daemon
=== CONT  TestDaemonRestartKillContainers/live-restore=true/container_with_restart=always/stop-daemon
    --- FAIL: TestDaemonRestartKillContainers/live-restore=true/container_with_restart=always/stop-daemon (1.13s)
        restart_test.go:81: assertion failed: error is not nil: Error response from daemon: No such image: busybox:latest

@thaJeztah
Copy link
Member Author

Looks like those are in arm64 and rootless. Perhaps related to that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant