Skip to content

Flaky hunt #3455

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

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

Flaky hunt #3455

wants to merge 7 commits into from

Conversation

joergdw
Copy link
Contributor

@joergdw joergdw commented Jan 17, 2025

In the first instance, this PR is to detect flaky tests and provoke their failure.

@joergdw joergdw marked this pull request as ready for review January 17, 2025 14:05
Comment on lines +136 to +137
java.util.concurrent.TimeUnit.SECONDS.sleep(5); // ⏳ Waiting time to ensure, the db had …
// … enough time to delete the job.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually I wanted to write rather

Suggested change
java.util.concurrent.TimeUnit.SECONDS.sleep(5); // ⏳ Waiting time to ensure, the db had …
// … enough time to delete the job.
// ⏳ Waiting time to ensure, the db had enough time to delete the job.
java.util.concurrent.TimeUnit.SECONDS.sleep(5);

or at least

Suggested change
java.util.concurrent.TimeUnit.SECONDS.sleep(5); // ⏳ Waiting time to ensure, the db had …
// … enough time to delete the job.
java.util.concurrent.TimeUnit.SECONDS.sleep(5); // ⏳ Waiting time to ensure, the db had …
// … enough time to delete the job.

But that java-style-guide does not like it.

joergdw and others added 2 commits January 21, 2025 11:02
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link

devbox.lock Outdated
"plugin_version": "0.0.4",
"resolved": "github:NixOS/nixpkgs/5629520edecb69630a3f4d17d3d33fc96c13f6fe#python3",
"last_modified": "2024-12-23T21:10:33Z",
"plugin_version": "0.0.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
"plugin_version": "0.0.3",
"plugin_version": "0.0.4",

@@ -133,6 +133,8 @@ public void testDeleteSchedule() throws Exception {
mockMvc.perform(
delete(TestDataSetupHelper.getSchedulerPath(appId)).accept(MediaType.APPLICATION_JSON));

java.util.concurrent.TimeUnit.SECONDS.sleep(5); // ⏳ Waiting time to ensure, the db had …
Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

1 participant