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

Java: Fix scriptKill Flaky Tests #3364

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Conversation

edlng
Copy link
Collaborator

@edlng edlng commented Mar 14, 2025

This PR addresses the issue of flaky tests within the Java client's scriptKill and scriptKill_unkillable tests.

Issue link

This Pull Request is linked to issue (URL): #2524

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

Signed-off-by: Edward Liang <[email protected]>
@edlng edlng added java issues and fixes related to the java client testing Everything about testing Flaky-tests Flaky-tests labels Mar 14, 2025
@edlng edlng force-pushed the java/fix-script-kill-tests branch from 5762571 to 2e161cf Compare March 14, 2025 00:29
@edlng edlng marked this pull request as ready for review March 14, 2025 23:56
@edlng edlng requested a review from a team as a code owner March 14, 2025 23:56
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

IMO we're mostly testing the server and probably finding a workarount for a server bug.
For testing the client it is enough to complete the test on line 1715.

BTW, why promise created on lines 1716-1717 isn't used?

@Yury-Fridlyand
Copy link
Collaborator

Run this test 1000 times in CI to validate that it doesn't fail. You can do it on another branch or do it there, but revert that change once test pass.

@edlng
Copy link
Collaborator Author

edlng commented Mar 17, 2025

IMO we're mostly testing the server and probably finding a workarount for a server bug. For testing the client it is enough to complete the test on line 1715.

BTW, why promise created on lines 1716-1717 isn't used?

Not too sure what this promise is used for either. Could just be a forgotten copy paste deletion

Signed-off-by: Edward Liang <[email protected]>
Signed-off-by: Edward Liang <[email protected]>
@edlng edlng marked this pull request as draft March 18, 2025 17:09
Signed-off-by: Edward Liang <[email protected]>
Signed-off-by: Edward Liang <[email protected]>
@edlng edlng marked this pull request as ready for review March 18, 2025 22:34
Signed-off-by: Edward Liang <[email protected]>
This reverts commit c01f396.

added more checking

Signed-off-by: Edward Liang <[email protected]>
@edlng edlng force-pushed the java/fix-script-kill-tests branch from cd69eb2 to e13077a Compare March 19, 2025 19:33
Signed-off-by: Edward Liang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Flaky-tests Flaky-tests java issues and fixes related to the java client testing Everything about testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants