Skip to content

Conversation

@dnephin
Copy link

@dnephin dnephin commented Aug 26, 2015

Branched from #1939
Resolves #1922

This works around the problem of containers not being removed correctly by using a different name for the service. Also adds a new label to all containers so that if we end up with test pollution we can track the container back to the test that created it.

This is definitely just a workaround, but I think the root issue is actually a race condition in the docker engine so will take much longer to fix. I don't like having every branch fail our test suite. So I'd like to push this workaround, since the failure isn't directly related to compose itself.

Fix mutation of service.options when a label or environment variable is specified in the config.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
@dnephin dnephin force-pushed the fix_scale_test_flakes branch from 7e630d8 to 9f3d73f Compare August 27, 2015 22:13
@dnephin
Copy link
Author

dnephin commented Aug 27, 2015

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
@dnephin dnephin force-pushed the fix_scale_test_flakes branch from 9f3d73f to 235fe21 Compare August 31, 2015 18:59
@dnephin dnephin changed the title WIP: Add debugging for flaky test Fix flaky test Aug 31, 2015
@dnephin
Copy link
Author

dnephin commented Aug 31, 2015

It worked! build is green

Copy link

Choose a reason for hiding this comment

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

What's the purpose of this change?

Copy link
Author

Choose a reason for hiding this comment

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

I found it while debugging. It's a no-op since line 193 does the same thing.

@aanand
Copy link

aanand commented Aug 31, 2015

LGTM

aanand added a commit that referenced this pull request Aug 31, 2015
@aanand aanand merged commit 83c514f into docker:master Aug 31, 2015
@dnephin dnephin deleted the fix_scale_test_flakes branch August 31, 2015 20:53
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.

tests.integration.service_test test_scale_with_custom_container_name_outputs_warning

3 participants