Skip to content

Skip failing tests on ARM to get red/green feedback from Jenkins#19412

Merged
jessfraz merged 1 commit intomoby:masterfrom
hypriot:skip-tests-on-arm
Jan 18, 2016
Merged

Skip failing tests on ARM to get red/green feedback from Jenkins#19412
jessfraz merged 1 commit intomoby:masterfrom
hypriot:skip-tests-on-arm

Conversation

@StefanScherer
Copy link
Copy Markdown
Contributor

With this PR the Jenkins arm build should go to green as our internal Jenkins build already had shown this to our team. We would like to skip some of the integration tests for now for the ARM build and work against an "always green" CI system to bring back the tests step by step as far as they make sense on ARM. (Similar to Windows CI #19195)

The advantage is that the arm build also can show the status for new incoming PR's and whether there are problems introduced with it.

Our latest Jenkins build now shows OK: 1117 passed, 67 skipped

I had collected all the failing tests from the https://jenkins.dockerproject.org/job/Docker-PRs-arm/8/console output and from our Jenkins builds. As our Jenkins build seems to pass some more tests than the arm build we now can send PR's to get a better feedback from official CI.

Everybody can count the skipped tests with a grep -r NotArm in the source tree from time to time.

@icecrime
Copy link
Copy Markdown
Contributor

Triggered an ARM build for this PR, thanks.

@StefanScherer
Copy link
Copy Markdown
Contributor Author

@icecrime Thanks!

@StefanScherer
Copy link
Copy Markdown
Contributor Author

For comparison later on, here is our Jenkins console log https://gist.github.com/StefanScherer/df97b69f584736696694
I'm curious what the arm build will tell us...

@icecrime
Copy link
Copy Markdown
Contributor

OK: 1117 passed, 67 skipped 👍

@StefanScherer
Copy link
Copy Markdown
Contributor Author

Yes, the first 💚 arm build. So cool!

@DieterReuter
Copy link
Copy Markdown
Contributor

Woot! 😍

@Govinda-Fichtner
Copy link
Copy Markdown
Contributor

@StefanScherer Yeah!

@jessfraz
Copy link
Copy Markdown
Contributor

LGTM

jessfraz pushed a commit that referenced this pull request Jan 18, 2016
Skip failing tests on ARM to get red/green feedback from Jenkins
@jessfraz jessfraz merged commit 416de85 into moby:master Jan 18, 2016
@StefanScherer StefanScherer deleted the skip-tests-on-arm branch January 18, 2016 22:42
@StefanScherer
Copy link
Copy Markdown
Contributor Author

Awesome!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@StefanScherer out of pure curiosity, is the problem with Linux or something else in Docker? Why wouldn't this work on ARM as-is?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@tiborvass Good catch. The problem on ARM is in TestRunSysWritableInPrivilegedContainers. This one should work indeed. Transferring all these failing tests from the logs into the code with a long feedback loop where testing each change individually would take "days" this can happen. So fixing this TestRunSysNotWritableInNonPrivilegedContainers for ARM is a really low hanging fruit.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@StefanScherer then what's the problem with TestRunSysWritableInPrivilegedContainers on ARM?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

From https://jenkins.dockerproject.org/job/Docker-PRs-arm/8/console:

02:10:12.794 
02:10:12.794 ----------------------------------------------------------------------
02:10:12.795 FAIL: docker_cli_run_test.go:942: DockerSuite.TestRunSysWritableInPrivilegedContainers
02:10:12.796 
02:10:12.796 docker_cli_run_test.go:946:
02:10:12.796     c.Fatalf("sys should be writable in privileged container")
02:10:12.797 ... Error: sys should be writable in privileged container
02:10:12.797 
02:10:14.436 
02:10:14.436 ----------------------------------------------------------------------

It's reproducible on ARM (good to dig deeper into that), but no idea at the moment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Running the test manually on a Scaleway machine

root@scw-04:~# docker run armhf/busybox touch /sys/kernel/profiling
touch: /sys/kernel/profiling: Read-only file system
root@scw-04:~# docker run --privileged armhf/busybox touch /sys/kernel/profiling
touch: /sys/kernel/profiling: Permission denied

What are the best practices to investigate such issues?

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.

7 participants