-
Notifications
You must be signed in to change notification settings - Fork 715
test: added auto rerun step to e2e yml #9466
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
Conversation
|
Failed to generate code suggestions for PR |
Greptile OverviewGreptile SummaryAdded a new auto-rerun workflow that automatically retriggers failed Playwright tests on their first failure, helping reduce flakiness impact on CI/CD pipeline. Key Changes:
Technical Implementation:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant PT as Playwright UI Tests
participant GHA as GitHub Actions
participant AR as Auto-Rerun Workflow
participant GHCLI as GitHub CLI
PT->>PT: Run tests on PR/push
alt Tests fail on first attempt
PT->>GHA: Mark workflow as failed (attempt 1)
GHA->>AR: Trigger workflow_run event
AR->>AR: Check if run_attempt == 1
AR->>AR: Check if conclusion == 'failure'
AR->>AR: Install GitHub CLI
AR->>GHCLI: gh run view $RUN_ID
GHCLI-->>AR: Return run details (status, conclusion, attempt)
AR->>AR: Validate workflow is completed
AR->>AR: Validate conclusion is failure
AR->>GHCLI: gh run rerun $RUN_ID --failed
GHCLI->>PT: Trigger rerun of failed jobs only
PT->>PT: TestDino optimizes to run only failed tests
else Tests pass or attempt > 1
PT->>GHA: Complete workflow
Note over GHA,AR: Auto-rerun workflow not triggered
end
alt Manual testing
GHA->>AR: workflow_dispatch with run_id
AR->>AR: Use provided run_id
AR->>GHCLI: gh run rerun $RUN_ID --failed
GHCLI->>PT: Trigger rerun
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 files reviewed, 2 comments
dbeb918 to
c9ed8e0
Compare
|
Failed to generate code suggestions for PR |
- Add separate playwright-auto-rerun.yml workflow - Automatically triggers when Playwright tests fail on first attempt - Only reruns failed/cancelled jobs to save CI resources - Integrates with TestDino for optimized test execution - Includes manual trigger option for testing before merge - Comprehensive debug logging and error handling - Prevents infinite loops by limiting to one auto-rerun attempt
857f21e to
f298f18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, no comments
- Add separate playwright-auto-rerun.yml workflow - Automatically triggers when Playwright tests fail on first attempt - Only reruns failed/cancelled jobs to save CI resources - Integrates with TestDino for optimized test execution - Includes manual trigger option for testing before merge - Comprehensive debug logging and error handling - Prevents infinite loops by limiting to one auto-rerun attempt
f298f18 to
c6355df
Compare
No description provided.