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

[Backport stable/1.0] Remove flakiness from SmallMessageSizeTest #7284

Merged
7 commits merged into from
Jun 15, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 15, 2021

Description

Backport of #7276 to stable/1.0.

Relates to #7170

The second process instance that creates a job that can be activated
does not really do anything for this test. The test is to check that a
job is ignored when it's variables are too large to fit in a message.

We can simply create the process instance, set the variables and try to
activate it. It should return no jobs. In order to return immediately we
do need to disable long polling.

(cherry picked from commit 27625f5)
Move duplicate test code into the before method. This allows us to
cleanup the actual tests.

(cherry picked from commit 3c571aa)
Removes the flakiness from the test, by waiting until the job and the
variables have all been created.

(cherry picked from commit 6cafede)
The process model creation does not need to happen in a separate
method, and could be inlined. And the helper was not necessary AFAIK.

(cherry picked from commit 618a3b9)
The tests should create their own unique processes so they are not
affecting each other. Similarly, the tests should focus on their own job
type (job activation works across all processes for a specific job
type).

(cherry picked from commit 22d3b35)
Copy link
Member

@korthout korthout left a comment

Choose a reason for hiding this comment

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

LGTM (successfully backported by action)

bors merge

@ghost
Copy link

ghost commented Jun 15, 2021

Build succeeded:

@ghost ghost merged commit 30c464a into stable/1.0 Jun 15, 2021
@ghost ghost deleted the backport-7276-to-stable/1.0 branch June 15, 2021 12:17
This pull request was closed.
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.

None yet

2 participants