refactor(build): unify SDK configuration and release tooling
Gitea CI / Check code and tests (pull_request) Failing after 8m56s
Gitea CI / Build Android APK (pull_request) Skipped
Gitea CI / Build Windows x64 app (pull_request) Skipped
Gitea CI / Audit and package Windows x64 (pull_request) Skipped
Gitea CI / Assemble and validate CI artifacts (pull_request) Skipped
Gitea CI / Gitea CI passed (pull_request) Failing after 4s
Gitea CI / Check code and tests (pull_request) Failing after 8m56s
Gitea CI / Build Android APK (pull_request) Skipped
Gitea CI / Build Windows x64 app (pull_request) Skipped
Gitea CI / Audit and package Windows x64 (pull_request) Skipped
Gitea CI / Assemble and validate CI artifacts (pull_request) Skipped
Gitea CI / Gitea CI passed (pull_request) Failing after 4s
Pin Flutter with FVM and share local environment loading across IDE, Python, and Dart entrypoints. Keep CI on the verified preinstalled SDK and skip local overrides. Extract common build presets, process execution, and file hashing. Propagate project roots through SDK selection and release commands, and migrate macOS release, signing, and DMG orchestration to Python. Reuse local check suites in CI, support Android source overrides, and update documentation and regression tests.
This commit is contained in:
1 parent
ca2efdaf18
commit
152c051a29
57 files changed
+1858
-375
No files matched your search
+19
-19
@@ -2,7 +2,7 @@
|
||||
|
||||
`integration_test/` contains opt-in tests for the real application and native
|
||||
backends. `test_driver/integration_test.dart` is the host driver used by
|
||||
`flutter drive` for Profile measurements. Both directories contain test source;
|
||||
`fvm dart tool/flutter_local.dart drive` for Profile measurements. Both directories contain test source;
|
||||
media, models, reports and credentials are supplied locally and stay outside
|
||||
version control. Normal release builds use `lib/main.dart`.
|
||||
|
||||
@@ -13,7 +13,7 @@ window chrome, dynamically configured file destinations, and the macOS fullscree
|
||||
channel. It requires no media or models and does not simulate Finder/Explorer drops.
|
||||
|
||||
```sh
|
||||
flutter test integration_test/native_desktop_plugins_test.dart -d macos --flavor development
|
||||
fvm dart tool/flutter_local.dart test integration_test/native_desktop_plugins_test.dart -d macos --flavor development
|
||||
```
|
||||
|
||||
Use `-d windows` on Windows. Rebuild the normal application entry point afterwards.
|
||||
@@ -29,7 +29,7 @@ directory, and a short speech fixture. A local Dart-define JSON specifies
|
||||
`CUTDEX_PROCESSING_ROOT` and `CUTDEX_ASR_FIXTURE`:
|
||||
|
||||
```sh
|
||||
flutter test integration_test/processing_e2e_test.dart -d macos --flavor development \
|
||||
fvm dart tool/flutter_local.dart test integration_test/processing_e2e_test.dart -d macos --flavor development \
|
||||
--dart-define-from-file=/absolute/path/to/processing-e2e.json
|
||||
```
|
||||
|
||||
@@ -53,7 +53,7 @@ fault-injection checks with real media and native playback, not evidence that th
|
||||
native backend itself produced these failures.
|
||||
|
||||
```sh
|
||||
flutter drive --profile -d macos --flavor production \
|
||||
fvm dart tool/flutter_local.dart drive --profile -d macos --flavor production \
|
||||
--driver=test_driver/integration_test.dart \
|
||||
--target=integration_test/edit_diagnostics_test.dart \
|
||||
--dart-define=CUTDEX_TEST_SOURCE=/absolute/path/to/generated-720p30.mp4 \
|
||||
@@ -76,7 +76,7 @@ native diagnostics channel is compiled only in Debug, so its frame statistics
|
||||
must not be presented as Profile measurements.
|
||||
|
||||
```sh
|
||||
CUTDEX_PREVIEW_CADENCE_DIAGNOSTICS=1 flutter drive --debug -d macos --flavor development \
|
||||
CUTDEX_PREVIEW_CADENCE_DIAGNOSTICS=1 fvm dart tool/flutter_local.dart drive --debug -d macos --flavor development \
|
||||
--driver=test_driver/integration_test.dart \
|
||||
--target=integration_test/edit_diagnostics_test.dart \
|
||||
--dart-define=CUTDEX_DIAGNOSTIC_CADENCE=true \
|
||||
@@ -99,7 +99,7 @@ source clock, source duration and undo. No playback backend is mocked. ISO impor
|
||||
when the native backend can probe an unprotected video stream.
|
||||
|
||||
```powershell
|
||||
flutter test integration_test/windows_real_media_test.dart -d windows `
|
||||
fvm dart tool/flutter_local.dart test integration_test/windows_real_media_test.dart -d windows `
|
||||
--dart-define=CUTDEX_VALIDATION_SOURCE='D:\validation\media-originals' `
|
||||
--dart-define=CUTDEX_VALIDATION_ROOT='D:\validation\windows-editing'
|
||||
```
|
||||
@@ -112,10 +112,10 @@ native frames, delivered frames per second and the maximum frame gap. These
|
||||
measure native preview delivery, not physical monitor refresh or speaker sound.
|
||||
`CUTDEX_VALIDATION_SOURCE_ROOTS` accepts semicolon-separated source directories
|
||||
when validating multiple collections. For Flutter performance measurements use
|
||||
`flutter drive --profile -d windows --flavor production
|
||||
`fvm dart tool/flutter_local.dart drive --profile -d windows --flavor production
|
||||
--driver=test_driver/integration_test.dart
|
||||
--target=integration_test/windows_real_media_test.dart` with the same Dart
|
||||
defines: `flutter test` forces Debug mode. Playback observations additionally
|
||||
defines: `fvm dart tool/flutter_local.dart test` forces Debug mode. Playback observations additionally
|
||||
record process/time boundaries and Flutter build/raster timings for correlation
|
||||
with actual Windows audio-session peaks. Native textures can redraw without Dart
|
||||
frames, so the observation uses live frames and a continuous 16 ms viewport
|
||||
@@ -162,10 +162,10 @@ not play or export every frame of the original movies.
|
||||
playhead dragging with any playable video at least five seconds long. It probes the
|
||||
source duration and scales the seek points and drag spans to that duration. Provide
|
||||
`CUTDEX_SEEK_SOURCE` and `CUTDEX_SEEK_REPORT`; run it with the shared
|
||||
`test_driver/integration_test.dart` entry point using `flutter drive --profile`.
|
||||
`test_driver/integration_test.dart` entry point using `fvm dart tool/flutter_local.dart drive --profile`.
|
||||
|
||||
```powershell
|
||||
flutter drive --profile --flavor production -d windows `
|
||||
fvm dart tool/flutter_local.dart drive --profile --flavor production -d windows `
|
||||
--driver=test_driver/integration_test.dart `
|
||||
--target=integration_test/windows_seek_latency_test.dart `
|
||||
--dart-define=CUTDEX_SEEK_SOURCE='D:/validation/media-originals/video.mp4' `
|
||||
@@ -187,7 +187,7 @@ an incremental `results.json` report. The source should contain audio-only files
|
||||
longer than ten seconds, with audible content in the 2–6 second edit interval.
|
||||
|
||||
```powershell
|
||||
flutter test integration_test/windows_audio_media_test.dart -d windows `
|
||||
fvm dart tool/flutter_local.dart test integration_test/windows_audio_media_test.dart -d windows `
|
||||
--dart-define=CUTDEX_VALIDATION_SOURCE=D:/validation/audio-originals `
|
||||
--dart-define=CUTDEX_VALIDATION_ROOT=D:/validation/audio-results
|
||||
```
|
||||
@@ -225,19 +225,19 @@ after installing an ABI split, without deleting the app's data. Keep complete
|
||||
originals on the host. On a POSIX shell:
|
||||
|
||||
```sh
|
||||
flutter build apk --debug --flavor development
|
||||
fvm dart tool/flutter_local.dart build apk --debug --flavor development
|
||||
adb -s DEVICE_SERIAL install -r -d build/app/outputs/flutter-apk/app-development-debug.apk
|
||||
adb -s DEVICE_SERIAL shell run-as com.example.cutdex.dev mkdir -p files/real-media files/real-validation
|
||||
adb -s DEVICE_SERIAL shell -T run-as com.example.cutdex.dev tee files/real-media/source.mp4 \
|
||||
< /absolute/path/to/source.mp4 > /dev/null
|
||||
flutter test integration_test/android_real_media_test.dart -d DEVICE_SERIAL \
|
||||
fvm dart tool/flutter_local.dart test integration_test/android_real_media_test.dart -d DEVICE_SERIAL \
|
||||
--flavor development --no-uninstall \
|
||||
--dart-define=CUTDEX_VALIDATION_SOURCE=/data/user/0/com.example.cutdex.dev/files/real-media \
|
||||
--dart-define=CUTDEX_VALIDATION_ROOT=/data/user/0/com.example.cutdex.dev/files/real-validation
|
||||
```
|
||||
|
||||
Keep `--no-uninstall`: uninstalling also removes copied fixtures and validation
|
||||
reports. With `flutter drive`, use `--debug --keep-app-running` to retain them.
|
||||
reports. With `fvm dart tool/flutter_local.dart drive`, use `--debug --keep-app-running` to retain them.
|
||||
An optional
|
||||
`CUTDEX_VALIDATION_FILTER` selects filenames containing any comma-separated
|
||||
substring. `CUTDEX_VALIDATION_SAMPLE_START` selects the edit sample start in
|
||||
@@ -291,7 +291,7 @@ project. The test uses an in-memory recent-project registry and does not write
|
||||
to the normal application database. Without the required Dart defines, it skips.
|
||||
|
||||
```sh
|
||||
flutter test integration_test/downloads_workflow_test.dart -d macos \
|
||||
fvm dart tool/flutter_local.dart test integration_test/downloads_workflow_test.dart -d macos \
|
||||
--flavor development \
|
||||
--dart-define=CUTDEX_VALIDATION_SOURCE=/absolute/path/to/media \
|
||||
--dart-define=CUTDEX_VALIDATION_ROOT=/absolute/path/to/output
|
||||
@@ -335,7 +335,7 @@ Use an unlocked developer-enabled iPhone and a valid signing team. Select the iO
|
||||
other platforms. First install the test host using the shared empty-timeline test:
|
||||
|
||||
```sh
|
||||
flutter test integration_test/preview_startup_test.dart -d <iphone-udid> \
|
||||
fvm dart tool/flutter_local.dart test integration_test/preview_startup_test.dart -d <iphone-udid> \
|
||||
--flavor Runner --no-uninstall \
|
||||
--plain-name 'opening a timeline initializes native preview through App providers'
|
||||
```
|
||||
@@ -349,7 +349,7 @@ xcrun devicectl device copy to --device <iphone-udid> \
|
||||
--source /absolute/path/to/source.mp4 \
|
||||
--destination Documents/cutdex-validation-source.mp4 \
|
||||
--domain-type appDataContainer --domain-identifier com.example.cutdex
|
||||
flutter test integration_test/ios_device_test.dart -d <iphone-udid> \
|
||||
fvm dart tool/flutter_local.dart test integration_test/ios_device_test.dart -d <iphone-udid> \
|
||||
--flavor Runner --no-uninstall --reporter expanded \
|
||||
--dart-define=CUTDEX_TEST_SOURCE_DOCUMENT=cutdex-validation-source.mp4 \
|
||||
--dart-define=CUTDEX_TEST_OUTPUT=ios-keyframes
|
||||
@@ -379,7 +379,7 @@ seconds of usable video. Supply a file outside the repository with
|
||||
`CUTDEX_TEST_SOURCE`; `CUTDEX_TEST_OUTPUT` optionally preserves the export.
|
||||
|
||||
```sh
|
||||
flutter test integration_test/media_timebase_drop_test.dart -d macos \
|
||||
fvm dart tool/flutter_local.dart test integration_test/media_timebase_drop_test.dart -d macos \
|
||||
--flavor production \
|
||||
--dart-define=CUTDEX_TEST_SOURCE=/absolute/path/to/source.mp4 \
|
||||
--dart-define=CUTDEX_TEST_OUTPUT=/absolute/path/to/export.mp4
|
||||
@@ -396,7 +396,7 @@ streamed import into managed project storage, duplicate selection, byte identity
|
||||
native probing, thumbnails, playback, seeking and a video/audio export.
|
||||
|
||||
```sh
|
||||
flutter drive --debug --keep-app-running \
|
||||
fvm dart tool/flutter_local.dart drive --debug --keep-app-running \
|
||||
--driver=test_driver/integration_test.dart \
|
||||
--target=integration_test/android_document_import_test.dart \
|
||||
-d DEVICE_SERIAL --flavor development \
|
||||
|
||||
Reference in new issue
Block a user