CI: serialize model_generator.sh + explicit Flutter precache step #2

Merged
such-gitea merged 1 commits from github-such-software/hash-wallet:dev into dev 2026-05-15 19:35:21 -04:00
Owner

The 'async' flag in model_generator.sh launches per-module flutter pub get
in parallel via 'bash -c ... &'. Flutter has a single-process startup lock
for SDK initialization — when N parallel calls race for it, most lose,
leaving the SDK cache half-initialized. Subsequent pub gets then fail
with the misleading 'doesn't support null safety' error because Flutter
can't resolve its own bundled sky_engine.

Two fixes:

  1. Drop 'async' — model_generator.sh now runs the 8 modules sequentially.
    Adds maybe 3 minutes per CI run vs parallel, but reliable beats fast.
  2. Add explicit 'flutter precache --linux' step before model_generator. The
    '|| true' absorbs the known flutter_gpu.zip 404 on Flutter 3.32.0 —
    that asset isn't actually published at the URL Flutter constructs and
    isn't needed for desktop Linux.

Issue Number (if Applicable): Fixes #

Description

Please include a summary of the changes and which issue is fixed / feature is added.

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed
The 'async' flag in model_generator.sh launches per-module flutter pub get in parallel via 'bash -c ... &'. Flutter has a single-process startup lock for SDK initialization — when N parallel calls race for it, most lose, leaving the SDK cache half-initialized. Subsequent pub gets then fail with the misleading 'doesn't support null safety' error because Flutter can't resolve its own bundled sky_engine. Two fixes: 1. Drop 'async' — model_generator.sh now runs the 8 modules sequentially. Adds maybe 3 minutes per CI run vs parallel, but reliable beats fast. 2. Add explicit 'flutter precache --linux' step before model_generator. The '|| true' absorbs the known flutter_gpu.zip 404 on Flutter 3.32.0 — that asset isn't actually published at the URL Flutter constructs and isn't needed for desktop Linux. Issue Number (if Applicable): Fixes # # Description Please include a summary of the changes and which issue is fixed / feature is added. # Pull Request - Checklist - [ ] Initial Manual Tests Passed - [ ] Double check modified code and verify it with the feature/task requirements - [ ] Format code - [ ] Look for code duplication - [ ] Clear naming for variables and methods - [ ] Manual tests in accessibility mode (TalkBack on Android) passed
such-gitea added 1 commit 2026-05-15 19:35:13 -04:00
CI: serialize model_generator.sh + explicit Flutter precache step
Some checks failed
Hash Wallet Linux build / build (pull_request) Failing after 9m37s
70320114a2
The 'async' flag in model_generator.sh launches per-module flutter pub get
in parallel via 'bash -c ... &'. Flutter has a single-process startup lock
for SDK initialization — when N parallel calls race for it, most lose,
leaving the SDK cache half-initialized. Subsequent pub gets then fail
with the misleading 'doesn't support null safety' error because Flutter
can't resolve its own bundled sky_engine.

Two fixes:
1. Drop 'async' — model_generator.sh now runs the 8 modules sequentially.
   Adds maybe 3 minutes per CI run vs parallel, but reliable beats fast.
2. Add explicit 'flutter precache --linux' step before model_generator. The
   '|| true' absorbs the known flutter_gpu.zip 404 on Flutter 3.32.0 —
   that asset isn't actually published at the URL Flutter constructs and
   isn't needed for desktop Linux.
such-gitea merged commit ad741b80a0 into dev 2026-05-15 19:35:21 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Builds/hash-wallet#2