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

Set higher timeout for awaitility in ControlledActorClockEndpointIT #9579

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

Zelldon
Copy link
Member

@Zelldon Zelldon commented Jun 22, 2022

Description

  • Instead of returning all records, which are printed by awaitility (it doesn't help in this case) we return only the size of the exported record list which we want to assert. This is of course can be discussed, but for me it felt much useful to print all records, because what I want to know in this case is the count/size of the list.
  • Per default the timeout is around 10 seconds. This might be quite low if we want to archive that during 5 seconds the record size hasn't changed. Increasing the timeout makes the test less flaky. I run it multiple times locally after this change without failure, before it failed quite quickly.

timeout

Related issues

closes #9499

Definition of Done

Not all items need to be done depending on the issue and the pull request.

Code changes:

  • The changes are backwards compatibility with previous versions
  • If it fixes a bug then PRs are created to backport the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. backport stable/1.3) to the PR, in case that fails you need to create backports manually.

Testing:

  • There are unit/integration tests that verify all acceptance criterias of the issue
  • New tests are written to ensure backwards compatibility with further versions
  • The behavior is tested manually
  • The change has been verified by a QA run
  • The impact of the changes is verified by a benchmark

Documentation:

  • The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.)
  • New content is added to the release announcement
  • If the PR changes how BPMN processes are validated (e.g. support new BPMN element) then the Camunda modeling team should be informed to adjust the BPMN linting.

Please refer to our review guidelines.

Instead of returning all records, which is printed by awaitility (it doesn't help in this case) we return only the size of the exported record list which we want to assert.
Per default the timeout is around 10 seconds. This might be quite low if we want to archive that during 5 seconds the record size hasn't change. Increasing the timeout makes the test less flaky.
@Zelldon Zelldon requested a review from npepinpe June 22, 2022 13:22
Copy link
Member

@npepinpe npepinpe left a comment

Choose a reason for hiding this comment

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

👍

The next version of zeebe-test-container will come with a built-in debug exporter, so hopefully we won't need the ES instance here anyway soon.

@github-actions
Copy link
Contributor

Unit Test Results

   780 files     780 suites   1h 30m 5s ⏱️
5 550 tests 5 543 ✔️ 7 💤 0
5 722 runs  5 715 ✔️ 7 💤 0

Results for commit 0f4d41a.

@Zelldon
Copy link
Member Author

Zelldon commented Jun 22, 2022

bors r+

zeebe-bors-camunda bot added a commit that referenced this pull request Jun 22, 2022
9533: deps(maven): bump rest-assured from 5.1.0 to 5.1.1 r=npepinpe a=dependabot[bot]

Bumps [rest-assured](https://github.com/rest-assured/rest-assured) from 5.1.0 to 5.1.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rest-assured/rest-assured/blob/master/changelog.txt">rest-assured's changelog</a>.</em></p>
<blockquote>
<h2>Changelog 5.1.1 (2022-06-10)</h2>
<ul>
<li>Added support for Spring Framework 6.0 in Spring WebClientTest module</li>
<li>Overwrite responseLogDetail when merging ResponseSpecificationImpl (issue 1493) (thanks to petur for pull request)</li>
<li>Fix: rootPath does not allow chaining paths with leading operators (issue 1577) (thanks to Roman Mitasov for pull request)</li>
<li>Fix: body(InputStream) does not work (issue 1480) (thanks to fedinskiy for pull request)</li>
<li>Fix: jsonPath - return null if list(array) does not exists in input document (issue 1544) (thanks to Oleksandr Kulychok for pull request)</li>
<li>Fix: Re-added groovy package to package imports for OSGi support (issue 1567) (thanks to Steven Huypens for pull request)</li>
<li>Fix: class cast exception in RequestPrinter with byte[] body (thanks to Andreas Grub for pull request)</li>
<li>Upgraded gson from 2.6.2 to 2.9.0</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rest-assured/rest-assured/commit/8dd520e58129e441c854723abd080240bc11410b"><code>8dd520e</code></a> [maven-release-plugin] prepare release rest-assured-5.1.1</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/835005e45a898e5e502aea2e48a211d056cb9a6f"><code>835005e</code></a> [ci skip] Preparing changelog for release</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/71c5232eff05d49a3d8b2cba2cbc9787c9af830b"><code>71c5232</code></a> Fixed failing test</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/a70ef2d083076174a18f5eeb0d8cc61cdc5179cf"><code>a70ef2d</code></a> [ci skip] Updated changelog.txt</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/d081c7cb9b87836835fab45eaff88ed0b0d8b614"><code>d081c7c</code></a> Fix class cast exception in RequestPrinter with byte[] body (<a href="https://github-redirect.dependabot.com/rest-assured/rest-assured/issues/1491">#1491</a>)</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/434d59b07fe2c1f7fb50bc9efd48d5ee51fe2271"><code>434d59b</code></a> [ci skip] Updated URL</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/158f6265dd3e7580f45c95a8cd397d85e3c6a85a"><code>158f626</code></a> [ci skip] Updated changelog.txt</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/65db911ae191ca452b290d2c17ca1202e5db5d67"><code>65db911</code></a> setup-java v3 (<a href="https://github-redirect.dependabot.com/rest-assured/rest-assured/issues/1576">#1576</a>)</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/76f6590d49b4d78e79d9b1ef705494166ca4cb25"><code>76f6590</code></a> [ci skip] Updated changelog.txt</li>
<li><a href="https://github.com/rest-assured/rest-assured/commit/2a53dccd622ae46fd5e5ca21bc3d85a5a45b897f"><code>2a53dcc</code></a> Fix 1543 - jsonPath: return null if list(array) does not exists in input docu...</li>
<li>Additional commits viewable in <a href="https://github.com/rest-assured/rest-assured/compare/rest-assured-5.1.0...rest-assured-5.1.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=io.rest-assured:rest-assured&package-manager=maven&previous-version=5.1.0&new-version=5.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

9579: Set higher timeout for awaitility in ControlledActorClockEndpointIT r=Zelldon a=Zelldon

## Description

* Instead of returning all records, which are printed by awaitility (it doesn't help in this case) we return only the size of the exported record list which we want to assert. This is of course can be discussed, but for me it felt much useful to print all records, because what I want to know in this case is the count/size of the list.
* Per default the timeout is around 10 seconds. This might be quite low if we want to archive that during 5 seconds the record size hasn't changed. Increasing the timeout makes the test less flaky. I run it multiple times locally after this change without failure, before it failed quite quickly.

![timeout](https://user-images.githubusercontent.com/2758593/175039496-460907f9-64a6-4db1-8deb-930a533185d3.png)


<!-- Please explain the changes you made here. -->

## Related issues

<!-- Which issues are closed by this PR or are related -->

closes #9499



Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
@Zelldon
Copy link
Member Author

Zelldon commented Jun 22, 2022

@npepinpe not sure what is happing here with bors 🤔 it blocks the other PRs

@zeebe-bors-camunda
Copy link
Contributor

This PR was included in a batch that timed out, it will be automatically retried

@npepinpe
Copy link
Member

It seems to have some issues today where the GHA checks never run, so it just times out 😞 I think it's safe to merge manually imo, and bors is quiet now, so I'll do that.

@backport-action
Copy link
Collaborator

Successfully created backport PR #9584 for stable/1.3.

@backport-action
Copy link
Collaborator

Successfully created backport PR #9585 for stable/8.0.

zeebe-bors-camunda bot added a commit that referenced this pull request Jun 23, 2022
9585: [Backport stable/8.0] Set higher timeout for awaitility in ControlledActorClockEndpointIT r=Zelldon a=backport-action

# Description
Backport of #9579 to `stable/8.0`.

relates to #9499

Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
zeebe-bors-camunda bot added a commit that referenced this pull request Jun 23, 2022
9584: [Backport stable/1.3] Set higher timeout for awaitility in ControlledActorClockEndpointIT r=Zelldon a=backport-action

# Description
Backport of #9579 to `stable/1.3`.

relates to #9499

Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
zeebe-bors-camunda bot added a commit that referenced this pull request Jun 23, 2022
9584: [Backport stable/1.3] Set higher timeout for awaitility in ControlledActorClockEndpointIT r=npepinpe a=backport-action

# Description
Backport of #9579 to `stable/1.3`.

relates to #9499

Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
@lenaschoenburg lenaschoenburg added the version:1.3.11 Marks an issue as being completely or in parts released in 1.3.11 label Jun 27, 2022
@lenaschoenburg lenaschoenburg added the version:8.1.0-alpha3 Marks an issue as being completely or in parts released in 8.1.0-alpha3 label Jul 5, 2022
@Zelldon Zelldon added the version:8.1.0 Marks an issue as being completely or in parts released in 8.1.0 label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version:1.3.11 Marks an issue as being completely or in parts released in 1.3.11 version:8.1.0-alpha3 Marks an issue as being completely or in parts released in 8.1.0-alpha3 version:8.1.0 Marks an issue as being completely or in parts released in 8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky io.camunda.zeebe.it.management.ControlledActorClockEndpointIT.testOffsetTime
4 participants