chore: avoid rerun on approval (FXC-3911) #3037
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Greptile Overview
Greptile Summary
Removed GitHub Actions logic that triggered full test suite re-runs when PRs were approved. Previously, the workflow listened to
pull_request_reviewevents and would re-execute tests when a reviewer approved the PR. This change eliminates that behavior by:pull_request_reviewevent handling logic that ran tests on approvalpr-requirements-passjob conditionThe binary test file
tests/sims/full_fdtd.h5was regenerated as part of test maintenance.Confidence Score: 4/5
.github/workflows/tidy3d-python-client-tests.ymldoesn't break expected CI behaviorImportant Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant Dev as Developer participant PR as Pull Request participant GHA as GitHub Actions participant Tests as Test Suite Note over Dev,Tests: Before (with approval re-run) Dev->>PR: Push new commit PR->>GHA: Trigger pull_request event GHA->>Tests: Run local tests Tests-->>GHA: Tests complete Dev->>PR: Request review PR->>GHA: Trigger pull_request_review (approved) GHA->>GHA: Check approval status GHA->>Tests: Re-run full test suite (local + remote) Tests-->>GHA: Tests complete again Note over Dev,Tests: After (this PR's changes) Dev->>PR: Push new commit PR->>GHA: Trigger pull_request event GHA->>Tests: Run local tests Tests-->>GHA: Tests complete Dev->>PR: Request review Note over PR,GHA: No workflow trigger on approval Note over GHA,Tests: Tests not re-run unnecessarily