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

test(qa-client): use SocketUtil to get unused free port for connect failure test #10517

Merged
1 commit merged into from
Sep 27, 2022

Conversation

megglos
Copy link
Contributor

@megglos megglos commented Sep 27, 2022

Previously a fixed port was used that could collide with actually used ports from other forks. Given the default testMavenId of 0, ports assigned by the SocketUtil start at 1025 and can collide with the 1234 port always used here, causing different than expected connect behaviour.

Description

Related issues

closes #10502

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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 27, 2022

Test Results

   932 files     932 suites   2h 5m 21s ⏱️
7 499 tests 7 489 ✔️ 10 💤 0
7 687 runs  7 677 ✔️ 10 💤 0

Results for commit a63b448.

♻️ This comment has been updated with latest results.

@megglos megglos force-pushed the meg-10502-client-exception-flaky-fix branch from f8c90ac to e5e858b Compare September 27, 2022 12:04
…ailure test

Previously a fixed port was used that could collide with actually used ports from other forks. Given the default testMavenId of 0, ports assigned by the SocketUtil start at 1025 and can collide with the 1234 port always used here, causing different than expected connect behaviour.
@megglos megglos force-pushed the meg-10502-client-exception-flaky-fix branch from e5e858b to a63b448 Compare September 27, 2022 12:50
@megglos megglos changed the title test(flaky): use SocketUtil to get unused port test(qa-client): use SocketUtil to get unused free port for connect failure test Sep 27, 2022
@megglos
Copy link
Contributor Author

megglos commented Sep 27, 2022

@megglos
Copy link
Contributor Author

megglos commented Sep 27, 2022

the warnings from CodeQL are actually not related to my changes 🤷

Copy link
Member

@lenaschoenburg lenaschoenburg left a comment

Choose a reason for hiding this comment

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

That's a nice find 👍

@megglos
Copy link
Contributor Author

megglos commented Sep 27, 2022

bors merge

ghost pushed a commit that referenced this pull request Sep 27, 2022
10517: test(qa-client): use SocketUtil to get unused free port for connect failure test r=megglos a=megglos

Previously a fixed port was used that could collide with actually used ports from other forks. Given the default testMavenId of 0, ports assigned by the SocketUtil start at 1025 and can collide with the 1234 port always used here, causing different than expected connect behaviour.

## Description

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

## Related issues

closes #10502



Co-authored-by: Meggle (Sebastian Bathke) <sebastian.bathke@camunda.com>
@ghost
Copy link

ghost commented Sep 27, 2022

Build failed:

@megglos
Copy link
Contributor Author

megglos commented Sep 27, 2022

bors retry

@ghost
Copy link

ghost commented Sep 27, 2022

Build succeeded:

@ghost ghost merged commit 751ac05 into main Sep 27, 2022
@ghost ghost deleted the meg-10502-client-exception-flaky-fix branch September 27, 2022 15:02
@backport-action
Copy link
Collaborator

Successfully created backport PR #10523 for stable/8.0.

@backport-action
Copy link
Collaborator

Successfully created backport PR #10524 for release-8.1.0.

ghost pushed a commit that referenced this pull request Sep 27, 2022
10524: [Backport release-8.1.0] test(qa-client): use SocketUtil to get unused free port for connect failure test r=megglos a=backport-action

# Description
Backport of #10517 to `release-8.1.0`.

relates to #10502

Co-authored-by: Meggle (Sebastian Bathke) <sebastian.bathke@camunda.com>
ghost pushed a commit that referenced this pull request Sep 27, 2022
10523: [Backport stable/8.0] test(qa-client): use SocketUtil to get unused free port for connect failure test r=megglos a=backport-action

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

relates to #10502

Co-authored-by: Meggle (Sebastian Bathke) <sebastian.bathke@camunda.com>
@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
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

ClientExceptionHandlingTest#shouldContainRootCauses
4 participants