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

Try to do the Docker build in CI #128

Closed
wants to merge 9 commits into from
Closed

Conversation

jglick
Copy link
Member

@jglick jglick commented Oct 15, 2020

Trying to restore Docker builds lost after 17cac5e. Wondered whether the build is actually working for anyone else, since locally I am getting

Step 5/6 : RUN go get -d -v golang.org/x/sys/unix
 ---> Running in 6ba45fbb6c16
Fetching https://golang.org/x/sys/unix?go-get=1
https fetch failed: Get https://golang.org/x/sys/unix?go-get=1: dial tcp: lookup golang.org on 192.168.86.1:53: read udp 172.17.0.3:58597->192.168.86.1:53: i/o timeout
package golang.org/x/sys/unix: unrecognized import path "golang.org/x/sys/unix" (https fetch: Get https://golang.org/x/sys/unix?go-get=1: dial tcp: lookup golang.org on 192.168.86.1:53: read udp 172.17.0.3:58597->192.168.86.1:53: i/o timeout)
The command '/bin/sh -c go get -d -v golang.org/x/sys/unix' returned a non-zero code: 1
Command execution failed.

Perhaps it would be better to move the Go sources to another repo, say with Docker automatic builds, and consume them in this repo as a binary.

} else {
return TestPlatform.values();
}
return TestPlatform.values();
Copy link
Member Author

Choose a reason for hiding this comment

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

Trying to follow the decisions in #106 & #121. If Docker is not working but we are in CI (typically because we are running in Windows), native image generation will be skipped…as will this whole test:

assumeTrue("Docker is available", new Docker().isAvailable());

Copy link
Member Author

Choose a reason for hiding this comment

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

On maven-windows:

 [INFO] Running org.jenkinsci.plugins.durabletask.BourneShellScriptTest
 [WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.011 s - in org.jenkinsci.plugins.durabletask.BourneShellScriptTest

As expected?

Copy link
Member Author

Choose a reason for hiding this comment

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

And mostly passing now on Linux, with just a couple skips, though BourneShellScriptTest is really slow.

@jglick
Copy link
Member Author

jglick commented Oct 15, 2020

Hmm, Docker build is passing in CI:

 Step 5/6 : RUN go get -d -v golang.org/x/sys/unix
  ---> Running in 8a1ec60ef70f
 Fetching https://golang.org/x/sys/unix?go-get=1
 Parsing meta tags from https://golang.org/x/sys/unix?go-get=1 (status code 200)
 get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/unix?go-get=1
 get "golang.org/x/sys/unix": verifying non-authoritative meta tag
 Fetching https://golang.org/x/sys?go-get=1
 Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
 golang.org/x/sys (download)

So I wonder what is going on with my machine (Ubuntu):

$ docker -v
Docker version 19.03.8, build afacb8b7f0

@jglick
Copy link
Member Author

jglick commented Oct 15, 2020

Now seems to be broken on Windows because we cannot even run shell scripts at all.

@jglick jglick marked this pull request as draft October 15, 2020 18:56
@jglick
Copy link
Member Author

jglick commented Oct 15, 2020

Local failure was due to some sort of networking problem in Docker, since resolved.

@jglick jglick marked this pull request as ready for review October 15, 2020 20:05
Copy link
Contributor

@car-roll car-roll left a comment

Choose a reason for hiding this comment

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

Perhaps it would be better to move the Go sources to another repo, say with Docker automatic builds, and consume them in this repo as a binary.

That is definitely the plan moving forward!

And mostly passing now on Linux, with just a couple skips, though BourneShellScriptTest is really slow.

It definitely is a beast. I'm not sure if the parameterized tests are overkill, but given all the different environments that it runs on and how any little change could affect some environment, maybe it's for the best?

@jglick
Copy link
Member Author

jglick commented Oct 16, 2020

maybe it's for the best?

Yeah I would not advocate reducing test coverage, this is critical, just wondering if there is some obvious inefficiency here.

@car-roll
Copy link
Contributor

closing, since docker builds have now been moved to lib-durable-task

@car-roll car-roll closed this Jun 18, 2021
@jglick jglick deleted the docker branch June 18, 2021 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants