-
Notifications
You must be signed in to change notification settings - Fork 179
chore: fix mobile deploy pipelines v2.6.8 rd2 (#1159) #1160
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
* add missing key * save wip * update env values. remove slack support * add enable debug logs
WalkthroughRemoves Slack integrations from Fastlane (Fastfile and helpers) and adjusts the mobile CI workflow to use expanded secret-driven environment variables for Android and iOS builds and uploads. Updates conditional syntax in the workflow without changing core build steps. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Developer
participant CI as GitHub Actions
participant FL as Fastlane
participant Stores as App Store Connect / Play Console
participant Telemetry as Grafana/Segment/Sentry
Dev->>CI: Trigger mobile-deploy workflow
CI->>CI: Export env (Grafana/Segment/Sentry + signing)
CI->>FL: Run iOS/Android build lanes
FL->>Telemetry: Init with env keys (no Slack)
FL->>Stores: Upload build (iOS TestFlight / Google Play)
Stores-->>FL: Response (success/failure)
FL-->>CI: Exit status
CI-->>Dev: Workflow result (no Slack notifications)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.github/workflows/mobile-deploy.yml(4 hunks)app/fastlane/Fastfile(0 hunks)app/fastlane/helpers.rb(0 hunks)
💤 Files with no reviewable changes (2)
- app/fastlane/Fastfile
- app/fastlane/helpers.rb
🧰 Additional context used
📓 Path-based instructions (1)
.github/workflows/**/*.{yml,yaml}
📄 CodeRabbit inference engine (AGENTS.md)
.github/workflows/**/*.{yml,yaml}: In GitHub Actions workflows, use shared composite caching actions from .github/actions (cache-yarn, cache-bundler, cache-gradle, cache-pods)
Do not call actions/cache directly; rely on the shared composite caching actions
When using cache actions, optionally pass cache-version (often with GH_CACHE_VERSION and tool version) for stable keys
Files:
.github/workflows/mobile-deploy.yml
⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: e2e-ios
- GitHub Check: android-build-test
- GitHub Check: build-deps
- GitHub Check: analyze-ios
- GitHub Check: analyze-android
| SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} | ||
| SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }} | ||
| SLACK_ANNOUNCE_CHANNEL_NAME: ${{ secrets.SLACK_ANNOUNCE_CHANNEL_NAME }} | ||
| if: inputs.platform != 'ios' && inputs.test_mode != true |
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.
Fix test_mode guard to prevent unintended store uploads.
Switching the Upload to Google Play gate to inputs.test_mode != true breaks the skip logic for manual runs: boolean inputs from workflow_dispatch surface as the string 'true', so 'true' != true evaluates to true and the upload still fires even when the checkbox is enabled. We now risk publishing to Play Store despite requesting test mode. Align the comparison so it short-circuits for both string and boolean representations before proceeding with the upload. (github.com)
- if: inputs.platform != 'ios' && inputs.test_mode != true
+ if: inputs.platform != 'ios' && !(inputs.test_mode == 'true' || inputs.test_mode == true)📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| if: inputs.platform != 'ios' && inputs.test_mode != true | |
| if: inputs.platform != 'ios' && !(inputs.test_mode == 'true' || inputs.test_mode == true) |
🤖 Prompt for AI Agents
In .github/workflows/mobile-deploy.yml around line 927, the condition uses
inputs.test_mode != true which fails for workflow_dispatch string inputs; update
the guard to short-circuit for both string and boolean representations (e.g.,
check that inputs.test_mode is neither the boolean true nor the string 'true'
before proceeding) so the Upload to Google Play step is skipped when test_mode
is enabled in manual runs.
add missing key
save wip
update env values. remove slack support
add enable debug logs
Summary by CodeRabbit