Skip to content

fix(app): reject unsupported build flavors at startup - #26447

Open
Git-on-my-level wants to merge 2 commits into
BasedHardware:mainfrom
Git-on-my-level:agent/m1-studio-codex-sol/232999fc659f
Open

Git-on-my-level wants to merge 2 commits into
BasedHardware:mainfrom
Git-on-my-level:agent/m1-studio-codex-sol/232999fc659f

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

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

  • INV-DATA-1

How it was verified

  • make preflight on M1.
  • bash app/test.sh passed 44 focused startup tests and 138 protected mobile spine tests on M1.
  • Focused flutter analyze --no-pub reported one pre-existing informational lint at MyApp.of and zero errors or warnings.

Tests

app/test/unit/startup_flavor_test.dart exercises 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

View guided diff

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T22:35:01.488075Z f28e321 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread app/lib/main.dart
try {
if (!PhysicalQualification.enabled) _startupErrorRouter.beginStartup();
try {
F.configureForStartup();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 Git-on-my-level left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread app/lib/main.dart
try {
if (!PhysicalQualification.enabled) _startupErrorRouter.beginStartup();
try {
F.configureForStartup();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant