Migration Validation Flow¶
The package includes a demo migration validator that creates temporary apps, runs the migration pipeline, and checks whether the migrated apps still analyze and test successfully.
Run both supported migrations¶
Run one source package only¶
Write a report¶
anas validate-migration \
--report build/migration_validation/report.json \
--compare benchmark/migration_validation_baseline.json
Refresh the timing baseline¶
anas validate-migration \
--report benchmark/migration_validation_baseline.json \
--compare benchmark/migration_validation_baseline.json \
--update-baseline
What it validates¶
For each supported source package, the validator:
- generates a temporary demo Flutter app
- runs
flutter pub get - runs
anas convert --from ... - runs
anas migrate --from ... --apply - runs
dart run anas_localization:localization_gen - runs
flutter analyze - runs
flutter test
It also records per-step timings and total time.
CI behavior¶
- functional failures should fail CI
- timing regressions over the configured threshold are warnings only
- reports are saved as workflow artifacts