Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

[17.10] Fix tests for 17.10 release#260

Merged
andrewhsu merged 6 commits into
docker-archive:17.10from
seemethere:fix_tests_for_1710_release
Oct 4, 2017
Merged

[17.10] Fix tests for 17.10 release#260
andrewhsu merged 6 commits into
docker-archive:17.10from
seemethere:fix_tests_for_1710_release

Conversation

@seemethere
Copy link
Copy Markdown
Contributor

@seemethere seemethere commented Sep 29, 2017

Overview

This remedies tests that are known to fail when comparing the master version of both the cli and engine component.

Most (if not all) of the test failures are not related to functional code but instead related to test code.

Changes

  • Changes error checking from NotNil to IsNil for rmi -f tests
  • Skips over DockerTrustSuite tests that are known to fail with recent CLI changes, cc @riyazdf
  • Changes an Lstat to a regular Stat, cc @corbin-coleman
  • Shortens a container ID search to only include the first 12 characters, cc @corbin-coleman
  • Fixes a flaky test on s390x related to Kernel Version comparison, cc @tophj-ibm

@seemethere seemethere changed the title [17.10] Fix tests for 1710 release [17.10] Fix tests for 17.10 release Sep 29, 2017
@seemethere
Copy link
Copy Markdown
Contributor Author

cc/ @andrewhsu @vieux

@@ -152,7 +152,7 @@ func (s *DockerSuite) TestRmiImageIDForceWithRunningContainersAndMultipleTags(c

out, _, err := dockerCmdWithError("rmi", "-f", imgID)
// rmi -f should not delete image with running containers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

perhaps update the comments as well to match the test; might be really confusing otherwise

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
rmi -f always returns a 0 exit code so these tests needed to be changed
accordingly.

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
(cherry picked from commit 5d1587e)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
@seemethere seemethere force-pushed the fix_tests_for_1710_release branch from e288f40 to 4f818dd Compare September 30, 2017 20:23
…haracters of the ID for the stats test substring.

Signed-off-by: Corbin <corbin.coleman@docker.com>
case outerr := <-ch:
c.Assert(outerr.err, checker.IsNil, check.Commentf("Error running stats: %v", outerr.err))
c.Assert(string(outerr.out), checker.Contains, id) //running container wasn't present in output
c.Assert(string(outerr.out), checker.Contains, id[:12]) //running container wasn't present in output
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This one can probably be upstreamed to moby/moby

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.

I agree, @corbin-coleman

seemethere and others added 2 commits October 4, 2017 10:43
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
s390x node-1 has kernel 4.6.0, kernel.CompareKernelVersion()
returns 0 if the kernels are equal, so include that.

Full logic for CompareKernelVersion() is
a > b ret 1,
a == b ret 0,
a < b ret -1

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
(cherry picked from commit aa5ea65)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
@seemethere
Copy link
Copy Markdown
Contributor Author

Added one last commit from @tophj-ibm that fixes a flaky test on s390x

Copy link
Copy Markdown

@riyazdf riyazdf left a comment

Choose a reason for hiding this comment

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

LGTM on green

Copy link
Copy Markdown
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

@andrewhsu andrewhsu merged commit c8ede6f into docker-archive:17.10 Oct 4, 2017
@seemethere seemethere deleted the fix_tests_for_1710_release branch October 4, 2017 21:14
docker-jenkins pushed a commit that referenced this pull request Dec 3, 2018
Merged with https://github.com/seemethere/unir
Upstream-commit: 091c4453b8e294b0e10ea9fe24c784c2086719be
Component: packaging
docker-jenkins pushed a commit that referenced this pull request Jun 4, 2019
…d_resolvconf

[19.03 backport] build: buildkit now also uses systemd's resolv.conf
Upstream-commit: 5fbc0a16e22cf7567cc0c8053ed0f156df018e91
Component: engine
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants