Skip to content

fix(tests): complete mirror registry rollout and fix stale warm-up DB#294

Merged
DorianZheng merged 1 commit intomainfrom
fix/test-mirror-registry-rollout
Feb 24, 2026
Merged

fix(tests): complete mirror registry rollout and fix stale warm-up DB#294
DorianZheng merged 1 commit intomainfrom
fix/test-mirror-registry-rollout

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Summary

  • Force-remove all boxes after warm-up before caching DB, preventing stale box records from previous incomplete warm-ups leaking into test DBs (fixes lifecycle test "expected N boxes, got N+1" failures)
  • Replace all 37 occurrences of image_registries: vec![] with common::test_registries() across 4 test files
  • Add mirror registries to Make warm-cache target
  • Move rustc-link-search outside prebuilt-only branch in build.rs

Test plan

  • cargo clippy -p boxlite --tests -- -D warnings — zero warnings
  • 486 unit tests pass (cargo nextest run -p boxlite)
  • Integration tests with VM (cargo nextest run -p boxlite --test lifecycle --profile vm)

- Force-remove all boxes after warm-up before caching DB, preventing
  stale box records from previous incomplete warm-ups leaking into
  test DBs via warm_temp_dir()
- Replace all `image_registries: vec![]` with `common::test_registries()`
  across lifecycle, pid_file, runtime, and shutdown test files (37 occurrences)
- Add mirror registries to Make warm-cache target
- Move rustc-link-search outside prebuilt-only branch in build.rs
@DorianZheng DorianZheng merged commit e13e076 into main Feb 24, 2026
16 checks passed
@DorianZheng DorianZheng deleted the fix/test-mirror-registry-rollout branch February 24, 2026 08:18
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