10BC0 Pin Dockerfile to -stretch variant because it's bust'd by thaJeztah · Pull Request #39582 · moby/moby · GitHub
[go: up one dir, main page]

Skip to content

Conversation

thaJeztah
Copy link
Member
@thaJeztah thaJeztah commented Jul 20, 2019

Alternative to #39581
closes #39581

The Golang base images switch to buster, which causes some breakage
in networking and packages that are no longer available; (btrfs-tools
is now an empty package, and libprotobuf-c0-dev is gone.

Some of out tests also start faiilng on stretch, and will have to be
investigated further;

15:13:06 --- FAIL: TestRenameAnonymousContainer (3.37s)
15:13:06     rename_test.go:168: assertion failed: 0 (int) != 1 (inspect.State.ExitCode int): container a7fe866d588d65f353f42ffc5ea5288e52700384e1d90850e9c3d4dce8657666 exited with the wrong exitcode:

15:13:38 --- FAIL: TestHostnameDnsResolution (2.23s)
15:13:38     run_linux_test.go:128: assertion failed:
15:13:38         --- ←
15:13:38         +++ →
15:13:38         @@ -1 +1,2 @@
15:13:38         +ping: bad address 'foobar'
15:13:38
15:13:38
15:13:38     run_linux_test.go:129: assertion failed: 0 (int) != 1 (res.ExitCode int)

@thaJeztah
Copy link
Member Author

Argh. I'm gonna remove that check; I don't think it's strictly needed as long as we review Golang bump PR's carefully

08:41:31 ERROR: Failed 'ERROR: Mismatched GO versions between Dockerfile and Dockerfile.windows. Update your PR to ensure that both files are updated and in sync. ${GO_VERSION}-stretch ${GO_VERSION}' at 07/20/2019 08:41:31
08:41:31 At C:\gopath\src\github.com\docker\docker\hack\ci\windows.ps1:448 char:9
08:41:31 +         Throw "ERROR: Mismatched GO versions between Dockerfile and D ...
08:41:31 +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@thaJeztah thaJeztah force-pushed the its_a_stretch_but_it_was_busted branch from a3705e5 to 3ddb72c Compare July 20, 2019 09:24
@thaJeztah thaJeztah requested a review from tianon as a code owner July 20, 2019 09:24
@thaJeztah
Copy link
Member Author
thaJeztah commented Jul 20, 2019

Opened a PR to remove the Go version check, and rebased this one on top of that #39586

(We might want to backport the other one independently, so opened it as a separate PR for that reason)

This check was used to make sure we don't bump Go versions independently
(Linux/Windows). The Dockerfile switched to using a build-arg to allow
overriding the Go version, which rendered this check non-functional.

It also fails if Linux versions use a specific variant of the image;

08:41:31 ERROR: Failed 'ERROR: Mismatched GO versions between Dockerfile and Dockerfile.windows. Update your PR to ensure that both files are updated and in sync. ${GO_VERSION}-stretch ${GO_VERSION}' at 07/20/2019 08:41:31
08:41:31 At C:\gopath\src\github.com\docker\docker\hack\ci\windows.ps1:448 char:9
08:41:31 +         Throw "ERROR: Mismatched GO versions between Dockerfile and D ...
08:41:31 +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This patch fixes the check by looking for the value of `GO_VERSION` instead
of looking at the `FROM` line (which is harder to parse).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The Golang base images switch to buster, which causes some breakage
in networking and packages that are no  longer available; (`btrfs-tools`
is now an empty package, and `libprotobuf-c0-dev` is gone).

Some of out tests also start faiilng on stretch, and will have to be
investigated further;

```
15:13:06 --- FAIL: TestRenameAnonymousContainer (3.37s)
15:13:06     rename_test.go:168: assertion failed: 0 (int) != 1 (inspect.State.ExitCode int): container a7fe866d588d65f353f42ffc5ea5288e52700384e1d90850e9c3d4dce8657666 exited with the wrong exitcode:

15:13:38 --- FAIL: TestHostnameDnsResolution (2.23s)
15:13:38     run_linux_test.go:128: assertion failed:
15:13:38         --- ←
15:13:38         +++ →
15:13:38         @@ -1 +1,2 @@
15:13:38         +ping: bad address 'foobar'
15:13:38
15:13:38
15:13:38     run_linux_test.go:129: assertion failed: 0 (int) != 1 (res.ExitCode int)
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the its_a_stretch_but_it_was_busted branch from 3ddb72c to ed672bb Compare July 20, 2019 10:58
@thaJeztah
Copy link
Member Author

Failures on powerpc look like an issue with Docker Hub

14:13:46 ----------------------------------------------------------------------
14:13:46 FAIL: docker_cli_search_test.go:35: DockerSuite.TestSearchCmdOptions
14:13:46 
14:13:46 assertion failed: 
14:13:46 Command:  /usr/local/cli/docker search busybox
14:13:46 ExitCode: 1
14:13:46 Error:    exit status 1
14:13:46 Stdout:   
14:13:46 Stderr:   Error response from daemon: Unexpected status code 503
14:13:46 
14:13:46 
14:13:46 Failures:
14:13:46 ExitCode was 1 expected 0
14:13:46 Expected no error
14:13:46 
14:13:46 ----------------------------------------------------------------------
14:13:46 FAIL: docker_cli_search_test.go:12: DockerSuite.TestSearchOnCentralRegistry
14:13:46 
14:13:46 assertion failed: 
14:13:46 Command:  /usr/local/cli/docker search busybox
14:13:46 ExitCode: 1
14:13:46 Error:    exit status 1
14:13:46 Stdout:   
14:13:46 Stderr:   Error response from daemon: Unexpected status code 503
14:13:46 
14:13:46 
14:13:46 Failures:
14:13:46 ExitCode was 1 expected 0
14:13:46 Expected no error
14:13:46 
14:13:46 ----------------------------------------------------------------------
14:13:46 FAIL: docker_cli_search_test.go:63: DockerSuite.TestSearchOnCentralRegistryWithDash
14:13:46 
14:13:46 assertion failed: 
14:13:46 Command:  /usr/local/cli/docker search ubuntu-
14:13:46 ExitCode: 1
14:13:46 Error:    exit status 1
14:13:46 Stdout:   
14:13:46 Stderr:   Error response from daemon: Unexpected status code 503
14:13:46 
14:13:46 
14:13:46 Failures:
14:13:46 ExitCode was 1 expected 0
14:13:46 Expected no error
14:13:46 
14:13:46 ----------------------------------------------------------------------
14:13:46 PASS: docker_cli_search_test.go:17: DockerSuite.TestSearchStarsOptionWithWrongParameter	0.137s
14:13:47 
14:13:47 ----------------------------------------------------------------------
14:13:47 FAIL: docker_cli_search_test.go:68: DockerSuite.TestSearchWithLimit
14:13:47 
14:13:47 assertion failed: error is not nil: 
14:13:47 Command:  /usr/local/cli/docker search --limit=10 docker
14:13:47 ExitCode: 1
14:13:47 Error:    exit status 1
14:13:47 Stdout:   
14:13:47 Stderr:   Error response from daemon: Unexpected status code 503
14:13:47 
14:13:47 
14:13:47 Failures:
14:13:47 ExitCode was 1 expected 0
14:13:47 Expected no error
14:13:49 
`‘`

@thaJeztah
Copy link
Member Author

@thaJeztah
Copy link
Member Author

All green now 👍

Copy link
Contributor
@andrewhsu andrewhsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I can close #39581 if desired

@AkihiroSuda
Copy link
Member

I think we can still merge #39581 after merging this one

Copy link
Member
@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpuguy83
Copy link
Member

RS1 seems to be unavailable.

@thaJeztah
Copy link
Member Author

RS1 probably is due to #39556 (comment)

@crosbymichael
Copy link
Contributor

LGTM

@thaJeztah thaJeztah added this to the 20.03.0 milestone Apr 2, 2020
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.

6 participants
0