Repository navigation
fix(ci): give each plotter test its own device name - #3758
Conversation
The in-memory plotter store is shared by the whole test process. On FreeBSD the tests run as threads of one process (cargo test), so the three tests that each create a "Banner Printer" collide and the later one fails with "plotter `Banner Printer` already exists". Each test now creates a device with its own name.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Merged: the three plotter tests now use distinct printer names, so they no longer collide in the shared in-memory PlotterStore on FreeBSD. Test-only change. CI and FreeBSD passed; the one SonarCloud shard failure (Tests 2/4) was a lost-runner infra error, not the PR. |
main's nightly FreeBSD job has failed since Nov 29 on one test (latest run):Cause:
session()installsPlotterStore::memory(), one store for the whole test process. Three tests incrates/engine/tests/plotters.rseach create a device calledBanner Printer:a_landscape_page_gets_the_papers_margins_back,an_orientation_only_pagesetup_turns_the_retained_marginsandpaper_margins_are_checked_against_their_own_axis(from #1266). The hosted gate runs each test in its own process with nextest, so they never meet there. The FreeBSD job runscargo test, where the tests are threads of one process, so whichever runs later finds the device already there.Fix: each of the three tests now creates a device with its own name. The assertions are unchanged, and nothing outside the test file changes.
Checks:
rustfmt --checkon the file. The hosted gate runs on this PR, and I dispatched the FreeBSD workflow on this branch, since it doesn't run on PRs.Summary by CodeRabbit