Skip to content

(#12960) fix order dependent test failures over global state#568

Merged
pcarlisle merged 4 commits intopuppetlabs:2.7.xfrom
slippycheeze:maint/2.7.x/12960-fix-order-dependent-test-failures-over-global-state
Mar 8, 2012
Merged

(#12960) fix order dependent test failures over global state#568
pcarlisle merged 4 commits intopuppetlabs:2.7.xfrom
slippycheeze:maint/2.7.x/12960-fix-order-dependent-test-failures-over-global-state

Conversation

@slippycheeze
Copy link
Copy Markdown
Contributor

We had some order dependent test failures, caused by a type named foo being defined.

Because we don't clean up global state to revoke those named types, we wind up in the position that we broke a bunch of other places that also created something named foo overlapping the original - but only if they ran in the right order.

(Which, unfortunately, still turns out to be "on CI, but not my workstation")

Daniel Pittman added 4 commits March 8, 2012 11:50
These methods were introduced, producing a pale shadow of the constraint
system that we already had, as part of building out device support.

Now that we are confident of the long term value of that support, and are
looking to better integrate it, we should start cleaning up these older relics
of the initial design.

This flags, in a comment, what the problem is and what the solution should be,
so that folks looking at the code get directed to the right sort of place.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
Expecting that a type by the name of "foo" doesn't exist is asking for
trouble, because other tests are highly likely to create one.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
Using a common meta-name like "foo" in testing runs a risk that global state
will lead down the path to things going wrong.  In this case, it clashed
with a type created elsewhere that lingered...

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
Using a common name like `foo` runs the risk that things go terribly wrong;
better to use something less likely to conflict.  Now we expunged the other
places this broke, this is safe to do.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
pcarlisle added a commit that referenced this pull request Mar 8, 2012
…er-dependent-test-failures-over-global-state

(#12960) fix order dependent test failures over global state
@pcarlisle pcarlisle merged commit 031cbad into puppetlabs:2.7.x Mar 8, 2012
melissa pushed a commit to melissa/puppet that referenced this pull request Mar 30, 2018
(maint) Pin pcp-broker to latest release
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