-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
fix(e2e): Added selection by PR created time to checking previous tests #17294
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request introduces a new required input parameter, 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.github/actions/check-previous-test-runs/action.yml
(3 hunks).github/workflows/test-suite-desktop-e2e.yml
(3 hunks).github/workflows/test-suite-web-e2e-pw.yml
(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (9)
- GitHub Check: run-desktop-tests (@group=wallet, trezor-user-env-unix bitcoin-regtest)
- GitHub Check: run-desktop-tests (@group=other, trezor-user-env-unix)
- GitHub Check: run-desktop-tests (@group=passphrase, trezor-user-env-unix)
- GitHub Check: run-desktop-tests (@group=settings, trezor-user-env-unix bitcoin-regtest)
- GitHub Check: run-desktop-tests (@group=device-management, trezor-user-env-unix)
- GitHub Check: Setup and Cache Dependencies
- GitHub Check: run-desktop-tests (@group=suite, trezor-user-env-unix)
- GitHub Check: build-web
- GitHub Check: Analyze with CodeQL (javascript)
🔇 Additional comments (7)
.github/actions/check-previous-test-runs/action.yml (1)
10-12
: Addition of the new input parameterpr_created
The new required input parameter captures the pull request’s creation timestamp in ISO 8601 format. This enhancement aligns with the PR objectives to filter previous test runs by creation time..github/workflows/test-suite-web-e2e-pw.yml (3)
11-14
: Include additional PR event triggers
The introduction of the event typesopened
,ready_for_review
, andsynchronize
broadens the triggers for pull request events. This is in line with the goal of initiating tests more proactively.
124-124
: Update job condition to exclude draft PRs
The modified condition now ensures that the job runs only if the pull request is not a draft. This prevents unnecessary test executions on draft PRs and streamlines the workflow.
147-147
: Pass the PR creation timestamp to the action
The new input parameterpr_created
is correctly passed using${{ github.event.pull_request.created_at }}
, ensuring consistency with the action configuration and enabling proper filtering of previous workflow runs..github/workflows/test-suite-desktop-e2e.yml (3)
6-9
: Enhance pull request trigger with additional event types
Adding the event typesopened
,ready_for_review
, andsynchronize
ensures that the desktop e2e workflow is responsive to key pull request events. This incorporation is effective for triggering tests at the appropriate moments in the PR lifecycle.
35-35
: Refine job condition to exclude draft PRs
The updated condition with(github.event_name != 'pull_request' || github.event.pull_request.draft == false)
ensures that the desktop tests only execute for finalized PRs. This change helps avoid running tests on draft PRs, thereby improving the efficiency of the testing pipeline.
65-65
: Integrate PR creation timestamp into the previous runs check
The addition of thepr_created
parameter using${{ github.event.pull_request.created_at }}
in the "Check previous runs" step is consistent and necessary for filtering previous test runs accurately.
a92f10d
to
cba9e02
Compare
Description
Added selection by PR created time to checking previous tests as well as running e2e only on PRs not on drafts.
Related Issue
#17293
Screenshots: