Skip to content

Conversation

@khushboobhatia01
Copy link
Contributor

This pull request resolves #5221

@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines. Good size to review. label Apr 9, 2021
@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

@arm4b arm4b requested a review from m4dcoder April 9, 2021 18:34
@arm4b arm4b requested a review from Kami April 9, 2021 18:47
@Kami
Copy link
Member

Kami commented Apr 9, 2021

Thanks for the contribution.

The bug fix / change looks good to me overall, I just had some questions / comments as far as tests and action-chain workflows go.

@pull-request-size pull-request-size bot added size/L PR that changes 100-499 lines. Requires some effort to review. and removed size/M PR that changes 30-99 lines. Good size to review. labels Apr 10, 2021
Copy link
Member

@Kami Kami left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Thanks for working.

I will merge this into master and add changelog entry separately so I don't block and hold this change any longer.

@Kami Kami merged commit d4d3ab9 into StackStorm:master Apr 14, 2021
Kami added a commit that referenced this pull request Apr 14, 2021
@Kami
Copy link
Member

Kami commented Apr 14, 2021

For some reason after merging this, those new tests are consistently failing for me locally with this error - https://gist.github.com/Kami/52543866f5400e29537f00911654bfe1.

No idea (yet) why it happens locally, but not on CI. I likely won't have time to dig in before the weekend.

I wonder if it's related to coordination backend? But I don't think we set that up for unit tests on CI, we just do that for integration tests.

@Kami
Copy link
Member

Kami commented Apr 14, 2021

OK, I see the issue - https://github.com/StackStorm/st2/pull/5227/files#diff-c86e8df3fb95a5e1b0806ce20a77ee1a92f721e933a1d230e5a302b1ebb10873R210.

This function needs some more love. Right now it will return as soon as execution has 1 or more children, but from the code that's not actually what we want - we want to wait for 2 children. So the code needs to be changed to handle that better otherwise it will be prone to timing / race conditions.

I will push a fix shortly.

@Kami
Copy link
Member

Kami commented Apr 14, 2021

Here we go - 5856fa4.

I confirmed that with this change, the tests now consistently pass locally.

@khushboobhatia01
Copy link
Contributor Author

khushboobhatia01 commented Apr 15, 2021

Here we go - 5856fa4.

I confirmed that with this change, the tests now consistently pass locally.

@Kami Thanks for fixing the test case 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L PR that changes 100-499 lines. Requires some effort to review. workflows: orquesta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notify parameter in orquesta workflow not working as expected

4 participants