8000 Add GitHub Actions workflow to verify flaky testVerify flaky test by Md-Arif-Hasan · Pull Request #2457 · kiegroup/jbpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add GitHub Actions workflow to verify flaky testVerify flaky test #2457

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 2 commits into
base: main
Choose a base branch
from

Conversation

Md-Arif-Hasan
8000 Copy link
@Md-Arif-Hasan Md-Arif-Hasan commented Apr 26, 2025

Add GitHub Actions workflow to verify flaky test

Purpose:
This PR adds a custom GitHub Actions workflow named verify-flaky-test.yml to confirm that the test org.jbpm.casemgmt.impl.CaseServiceImplTest#testStartExpressionCaseWithCaseFile is flaky.
The test passes under normal execution but fails when executed with NonDex, confirming the presence of non-deterministic behavior.

Summary of Changes:

  • Added a new workflow: .github/workflows/verify-flaky-test.yml
  • The workflow:
    • Sets up JDK 11 using actions/setup-java
    • Builds the project using Maven with tests skipped
    • Runs the test normally (expected to pass)
    • Runs the test again using NonDex (expected to fail)
    • Verifies flakiness by comparing exit codes and logs

Output:
The GitHub Actions build shows:

  • Normal test run passes
  • NonDex test run fails
  • Final verification logs include:
    Test is flaky: Passes without NonDex but fails with NonDex

Logs and Output:
You can find the logs and output in the attached build artifacts, or view the successful build at: (https://github.com/Md-Arif-Hasan/flink/actions/runs/14689442443)

Attachments:

Notes:
This workflow automates the process of documenting the flakiness of CaseServiceImplTest.testStartExpressionCaseWithCaseFile using GitHub Actions. The CI logs confirm the test's behavior, showing that it passes under normal conditions but fails when executed with NonDex, which confirms the test is flaky due to non-deterministic behavior in certain environments.
Using this workflow, flaky tests can be detected and verified in a controlled, automated manner, which helps maintain the stability of the project's test suite.

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
0