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

Use uncommon item in mine delete test #52393

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

waynew
Copy link
Contributor

@waynew waynew commented Apr 2, 2019

What does this PR do?

As an attempt to prevent #52087 from failing during a (probable) race condition, rather than using grains.items, I've refactored this test to use test.arg which is less common, and
specifying a value that isn't currently used anywhere else.

What issues does this PR fix or reference?

#52087

Previous Behavior

If a mine.send \* grains.items was launched, or for any other reason the mine was updated with grains between mine.delete and mine.get, this test would fail due to the race condition (see #52087)

New Behavior

Use test.arg with an unlikely value in an attempt to avoid any possibility of race condition

Tests written?

Yes (and, since this was changing the test, I also manually verified - failing to actually delete the the value in the mine makes the test fail).

Commits signed with GPG?

Yes

Rather than using `grains.items`, `test.arg` is less common, and
specifiying a value that isn't currently used anywhere else should
eliminate any chance of race condition for this test.
Copy link
Contributor

@dwoz dwoz left a comment

Choose a reason for hiding this comment

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

LGTM, I've re-launched the centos py3 tests which should pass now.

@dwoz dwoz merged commit d699485 into saltstack:2018.3 Apr 10, 2019
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