-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
test: refactors needs-builds step #20538
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
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
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.
Pull Request Overview
This PR refactors the CI workflow logic from inline bash shell scripting to a dedicated Node.js script for better maintainability and readability. The main purpose is to extract the complex state machine logic for determining mobile builds into a separate .mjs
file.
- Moves complex bash logic from workflow YAML to a dedicated Node.js script
- Simplifies the workflow by replacing 90+ lines of shell code with a single script call
- Maintains all existing functionality while improving code organization
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
.github/workflows/needs-e2e-build.yml |
Replaces inline bash state machine with Node script call |
.github/scripts/needs-e2e-builds.mjs |
New script implementing the mobile build decision logic |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Description
The main goal for this PR is to remove the
sh
logic and move it into a newmjs
file so that it gets easier to maintain.Test runs:
No changes besides CI:
Skip-e2e label applied:
iOS Changes only:
Common changes (package.json):
Android changes only:
E2E spec files changes:
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Move e2e build decision logic from bash in the workflow to a Node script and wire the workflow to use it.
./github/scripts/needs-e2e-builds.mjs
to computeandroid_final
,ios_final
,builds
, andchanged_files
based on env flags (ANDROID
,IOS
,SHARED
,IGNORE_FILES
,CATCH_ALL_FILES
,SHOULD_SKIP_E2E
,GITHUB_EVENT_NAME
)../github/workflows/needs-e2e-build.yml
with Node script invocation; consolidate output writing (including safe multilinechanged_files
) and skip/schedule handling.Written by Cursor Bugbot for commit 5efc0ff. This will update automatically on new commits. Configure here.