Skip to content

Conversation

@Kami
Copy link
Member

@Kami Kami commented Nov 2, 2017

There is race condition between test_quickstart_key_triggers and test_quickstart_python tests so they can't run in parallel.

First test relies on a trigger instance being injected into the system, but second test also injects some trigger instances in the system and depending on the timing, etc. first test can fail because it will retrieve wrong trigger instance.

This pull request changes it to run test_quickstart_key_triggers at the end after python one in the sequential manner.

In the future we could ideally refactor the key_triggers test so it could still run in parallel, but this would need more rework (right now it just retrieves last trigger instance).

/cc @humblearner

Previously they ran in parallel with python quickstart and some other
tests which caused occasional failure because there is a race between
key_triggers and python tests.
@Kami
Copy link
Member Author

Kami commented Nov 2, 2017

@humblearner If you feel like, it would be great if you can improve key_triggers test to avoid the race and tests can still run in parallel.

Here (https://github.com/StackStorm/st2tests/blob/ddb6c8243fcacc03e12cb8739b81b68402705214/packs/tests/actions/chains/test_key_triggers.yaml#L85) we would need to retrieve the actual trigger instance for key create and not just the last one.

@arm4b
Copy link
Member

arm4b commented Nov 2, 2017

👍

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.

3 participants