Skip to content

Commit 215ac95

Browse files
committed
fix(ci): prepare SQLite for legacy updater compatibility tests
Warm the updater fixture cache after locked dependency resolution. Compare the canonical helper path in the shared-setup test so the same exact-path assertion works through macOS temporary-directory symlinks.
1 parent 719d7dc commit 215ac95

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/reporting_qa.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ jobs:
176176
"$legacy_updater/error_reports_manager/test/compat_legacy_collector_test.dart"
177177
cd "$legacy_updater/error_reports_manager"
178178
dart pub get --enforce-lockfile 2>&1 | tee "$REPORT_QA_COMPAT_FIXTURES/legacy-updater-dependencies.log"
179+
python3 "$GITHUB_WORKSPACE/tool/ci/prepare_sqlite.py" --project-root "$PWD"
179180
dart format --output=none --set-exit-if-changed test/compat_legacy_collector_test.dart
180181
dart analyze test/compat_legacy_collector_test.dart
181182
dart test --reporter expanded test/compat_legacy_collector_test.dart \

‎tool/ci/test_prepare_sqlite.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def test_shared_setup_finds_its_helper_from_an_unrelated_working_directory(self)
343343
environment = {**os.environ, "RUNNER_OS": "Linux", "CAPTURE": str(capture),
344344
"SQLITE_HELPER": variable[1].replace("${{ github.action_path }}", str(action_path))}
345345
subprocess.run(["bash", "-e", "-c", script], cwd=root, env=environment, check=True)
346-
self.assertEqual(capture.read_text(), str(helper))
346+
self.assertEqual(capture.read_text(), str(helper.resolve()))
347347

348348
def test_reporting_warms_the_legacy_project_before_its_first_native_hook(self):
349349
workflow = (sqlite.ROOT / ".github/workflows/reporting_qa.yml").read_text()

0 commit comments

Comments
 (0)