Repository navigation
fix(app): reject unsupported build flavors at startup - #26447
Git-on-my-level wants to merge 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f28e3212a3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| try { | ||
| if (!PhysicalQualification.enabled) _startupErrorRouter.beginStartup(); | ||
| try { | ||
| F.configureForStartup(); |
There was a problem hiding this comment.
Give the isolated capture builder an explicit flavor
The isolated iOS capture lane still depends on the old missing-flavor fallback: scripts/dev-harness/physical_capture_build.py:280-303 emits the local_dev profile but neither FLUTTER_APP_FLAVOR nor a FLAVOR build setting, and app/integration_test/physical_capture_main.dart:35 calls app.main(). An artifact built through that lane therefore reaches this check with appFlavor == null and displays the configuration-error screen before phone/BLE qualification can start. Update the builder to encode the accepted dev flavor alongside its local_dev profile in the same change.
AGENTS.md reference: app/AGENTS.md:L29-L29
Useful? React with 👍 / 👎.
Git-on-my-level
left a comment
There was a problem hiding this comment.
Round 1 independent verdict: FIX. The isolated physical-capture builder emits OMI_APP_PROFILE=local_dev but omits FLUTTER_APP_FLAVOR from DART_DEFINES; its generated Xcode scheme also has no flavor setting. The resulting profile artifact reaches startup with appFlavor == null and fails this new check, blocking physical capture qualification through that builder. Add the accepted dev flavor to the builder in the same change.
| try { | ||
| if (!PhysicalQualification.enabled) _startupErrorRouter.beginStartup(); | ||
| try { | ||
| F.configureForStartup(); |
There was a problem hiding this comment.
The capture artifact built by scripts/dev-harness/physical_capture_build.py has no FLUTTER_APP_FLAVOR in its generated DART_DEFINES or Xcode settings. It reaches this new check with appFlavor == null, then shows the startup failure screen instead of running the physical qualification app. Please define the accepted dev flavor in that builder as part of this change.
What changed and why
Validate the build flavor before starting the Flutter app or initializing Firebase in a background engine. A configuration error uses the existing startup failure screen. Keep the supported Ray-Ban build on the development environment.
Omi tracking issue SCA-4850.
Product invariants affected
How it was verified
make preflighton M1.bash app/test.shpassed 44 focused startup tests and 138 protected mobile spine tests on M1.flutter analyze --no-pubreported one pre-existing informational lint atMyApp.ofand zero errors or warnings.Tests
app/test/unit/startup_flavor_test.dartexercises the startup selector for absent and unsupported flavors and the supported Ray-Ban flavor.UI evidence
UI-Evidence: none -- Reuses the existing startup configuration error screen.
Failure class
Failure-Class: FC-customer-data-plane-divergence