Skip to content

org.apache.amber.engine.e2e.DataProcessingSpec is flaky #3880

Open
1 of 2 issues completed
Open

Description

@Yicong-Huang

What happened?

Flaky test: https://github.com/apache/texera/actions/runs/18447656995/job/52556697358

How to reproduce?

N/A

Version

1.1.0-incubating (Pre-release/Master)

Commit Hash (Optional)

No response

What browsers are you seeing the problem on?

No response

Relevant log output

Code of Conduct

  • I agree to follow Apache Code of Conduct

Activity

  1. added theissue type on Oct 12, 2025
  2. Xiao-zhen-Liu commented on Oct 20, 2025

    @Xiao-zhen-Liu
    Contributor

    There are two kinds of flaky test behaviors, both related to e2e tests.

    • One is for DataProcessingSpec. This test suite contains 10 test cases, and each sets a 1-minute timeout. There is a chance on CI environment that one of the the 10 test cases may time out.
    • The other is for PauseSpec . This is appeared in PR 3913. The test cases in PauseSpec do not have timeouts internally, and seems to cause the test job to hang there until it reaches Github CI’s 6-hour timeout.

    Cause: I think the causes of both behaviors are the same. When we run these e2e tests, we execute a workflow and wait for controller to send workflow’s COMPLETED status. Somehow in the CI environment there is a chance this message is not sent (or not received) and causes the wait to either hang (for PauseSpec ) or trigger our internal timeout (for DataProcessingSpec).

    Reproducibility: This seems to only happen in the CI environment. @aglinxinyuan mentioned he tested locally 10,000 times and could not reproduce this timeout issue.

    Origin: Regarding the origin of this issue, I think it may be much earlier than recently, possibly since the creation of these test cases. It happens infrequently (maybe 1 in 50 CI runs) and usually rerunning the CI solves the problem. I found in March this year there was a 6-hour timeout in master-branch’s CI run, and the other flaky CI failure may be dated as early as Sep 2024 (earlier runs have been garbage-collected).

    Short-term Solution: As this problem may be very hard to reproduce or debug, I suggest for all these test cases, we keep enforcing the 1-minute internal timeout but add a retry mechanism, as rerunning the test case always solves the issue. This will stabilize the CIs.

    Permenant Solution: We should try to reproduce this issue, possibly in an Ubuntu environment, and locate the root cause of the COMPLETED status not being sent for these test cases.

  3. Yicong-Huang commented on Oct 20, 2025

    @Yicong-Huang
    ContributorAuthor

    Thanks @Xiao-zhen-Liu for the investigations. I agree with your assessment. Could you please create new task issues for action items you listed?

  4. aglinxinyuan commented on Oct 20, 2025

    @aglinxinyuan
    Contributor

    Thanks @Xiao-zhen-Liu for the investigations. I agree with your assessment. Could you please create new task issues for action items you listed?

    We can try sub-issue.

  5. Yicong-Huang commented on Apr 21, 2026

    @Yicong-Huang
    ContributorAuthor

    @Xiao-zhen-Liu is this fixed? There is not PR linked on deployment.

  6. Xiao-zhen-Liu commented on Apr 21, 2026

    @Xiao-zhen-Liu
    Contributor

    The test case failures no longer appear thanks to the retry mechanism. But we do not have a permanent fix until we can solve #3950.

  7. chenlica commented on Apr 22, 2026

    @chenlica
    Contributor

    @Xiao-zhen-Liu Let's do a discussion on that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions