Skip to content

fix(ci): remove fvm use --force from firebase-hosting workflows#72

Closed
leoafarias wants to merge 1 commit into
mainfrom
leo/fix-firebase-ci-fvm
Closed

fix(ci): remove fvm use --force from firebase-hosting workflows#72
leoafarias wants to merge 1 commit into
mainfrom
leo/fix-firebase-ci-fvm

Conversation

@leoafarias
Copy link
Copy Markdown
Collaborator

Summary

Drops the fvm use --force line from both firebase-hosting workflows (firebase-hosting-merge.yml, firebase-hosting-pull-request.yml).

Why

The build_and_preview job has been failing on every PR from the main repo, while the test.yml workflows (Test, Integration Tests, Web Smoke) pass — same .fvmrc, same kuhnroyal/flutter-fvm-config-action@v2, same subosito/flutter-action@v2. The only meaningful difference is the firebase-hosting workflows' extra fvm use --force line in the Install FVM step.

fvm use --force pre-creates .fvm/flutter_sdk pointing at FVM's own checkout, which lacks a proper bin/internal/engine.stamp. The later ln -sfn "\$FLUTTER_ROOT" .fvm/flutter_sdk apparently does not fully replace that pre-existing symlink, so melos bootstrap ends up calling FVM's Flutter for packages/superdeck. Pub then fails resolving engine info:

Failed to download https://storage.googleapis.com/flutter_infra_release/flutter//engine_stamp.json
Exception: 404

(Double slash = empty version segment.) Other packages succeed because they are pure Dart and do not trigger engine resolution.

Aligning these workflows with test.yml (no fvm use --force) fixes the build.

Test plan

  • build_and_preview succeeds on this PR
  • Bootstrap completes for packages/superdeck without 404 on engine_stamp.json

The pre-install via `fvm use --force` creates a .fvm/flutter_sdk
pointing at FVM's own checkout (lacking a proper engine.stamp).
The later `ln -sfn "$FLUTTER_ROOT" .fvm/flutter_sdk` does not fully
replace it, so melos bootstrap calls FVM's Flutter and pub fails
with a 404 on engine_stamp.json (empty version segment in the URL).

test.yml passes without this pre-install; matching that pattern
restores the firebase-hosting builds.
@docs-page
Copy link
Copy Markdown

docs-page Bot commented May 12, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/superdeck~72

Documentation is deployed and generated using docs.page.

@leoafarias
Copy link
Copy Markdown
Collaborator Author

Superseded by PR #70 — the fix was cherry-picked onto that branch (commit f072aa2) so it could verify against the build_and_preview job (which is gated on packages/** changes). Verification run: https://github.com/btwld/superdeck/actions/runs/25755621851/job/75643153365 — passed in 5m41s.

@leoafarias leoafarias closed this May 12, 2026
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