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

docker_container: improve tests to avoid spurious test fails #48059

Merged

Conversation

felixfontein
Copy link
Contributor

SUMMARY

Sometimes, the docker_container tests are unstable because the detach: no test behaves strangely (Output does not contain the output expected from hello-world). While we have no idea why this happens and cannot reproduce it properly, it happens often enough to justify changing the test so that it simply checks for Output to be present, instead of Output containing a specific text.

Fixes #47896.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

docker_container

ANSIBLE VERSION
2.8.0

@ansibot
Copy link
Contributor

ansibot commented Nov 4, 2018

Hi @felixfontein, thank you for submitting this pull-request!

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Nov 4, 2018

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. cloud community_review In order to be merged, this PR must follow the community review workflow. docker needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests. labels Nov 4, 2018
Copy link
Contributor

@kassiansun kassiansun left a comment

Choose a reason for hiding this comment

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

shipit

@ansibot ansibot added shipit This PR is ready to be merged by Core and removed community_review In order to be merged, this PR must follow the community review workflow. needs_triage Needs a first human triage before being processed. labels Nov 5, 2018
@felixfontein
Copy link
Contributor Author

@kassiansun thanks! Can you also take a look at #48056 and #48061? They fix some details about docker_container which are also pretty annoying during tests :)

@gundalow gundalow merged commit af79adc into ansible:devel Nov 5, 2018
@felixfontein felixfontein deleted the docker_container-improve-tests branch November 5, 2018 12:51
@felixfontein
Copy link
Contributor Author

@kassiansun thanks for reviewing!
@gundalow thanks for merging!

@felixfontein
Copy link
Contributor Author

Backport included in #47831.

felixfontein added a commit to felixfontein/ansible that referenced this pull request Nov 5, 2018
mjmayer pushed a commit to mjmayer/ansible that referenced this pull request Nov 30, 2018
Tomorrow9 pushed a commit to Tomorrow9/ansible that referenced this pull request Dec 4, 2018
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. cloud docker shipit This PR is ready to be merged by Core support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker_container: unstable integration tests (detach=no)
4 participants