Skip to content

test(rust): retry removing Cargo-built fixtures on Windows - #235

Merged
adityankale190895 merged 3 commits into
DiffCI:mainfrom
FredApps:rust/windows-test-cleanup
Nov 18, 2026
Merged

adityankale190895 merged 3 commits into
DiffCI:mainfrom
FredApps:rust/windows-test-cleanup

Conversation

@FredApps

@FredApps FredApps commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #227

The real-Cargo tests in tests/repo/rust-adapter.test.ts now remove their fixture with maxRetries: 10, retryDelay: 200, through one shared BUILT_FIXTURE options constant. On Windows, a test executable Cargo just ran, or an antivirus scan of it, can keep target/ locked for a moment after it exits. Node then retries EPERM/EBUSY/ENOTEMPTY with a linear backoff, instead of failing the test after it already passed (as on #174, check (windows-latest, 24)).

It only touches the five { skip: !cargoAvailable } tests. The synthetic-metadata tests never build anything. I couldn't reproduce the lock on demand, so the evidence is the hosted Windows jobs on this PR.

Follow-up (b55b8cf): on #253, check (windows-latest, 24) spent 60 s in the feature-unified test and then failed with EPERM. That was the 60 s spawnSync timeout on the cold cargo test -- --list build: it killed cargo but left rustc holding the fixture, and the cleanup error hid the timeout. Both cold builds in this file now get CARGO_BUILD_TIMEOUT (5 minutes). Hosted CI passed on this head.

A cold cargo test build can exceed 60 seconds on a hosted Windows runner. The spawnSync timeout
then killed cargo but left its rustc processes holding the fixture, and the cleanup EPERM hid
the real failure (DiffCI#253, check (windows-latest, 24)).

Signed-off-by: FredApps <[email protected]>
FredApps added a commit to FredApps/core that referenced this pull request Nov 17, 2026
The previous windows-latest Node 22 check failed in rust-adapter.test.ts
cleanup (EBUSY on a temp dir). That flake is DiffCI#227 / DiffCI#235, which this
branch does not touch. Empty commit to re-run hosted CI.

Signed-off-by: FredApps <[email protected]>
FredApps added a commit to FredApps/core that referenced this pull request Nov 17, 2026
FredApps added a commit to FredApps/core that referenced this pull request Nov 18, 2026
I, FredApps <[email protected]>, hereby add my Signed-off-by to this commit: 363a2f9

Signed-off-by: FredApps <[email protected]>
@adityankale190895
adityankale190895 merged commit 1aff98d into DiffCI:main Nov 18, 2026
13 checks passed
adityankale190895 pushed a commit that referenced this pull request Nov 18, 2026
…237)

* fix(planner): treat a change to an extended tsconfig base as global

programMembership only recognised tsconfig*.json and jsconfig*.json names, so
changing config/base.json, which tsconfig.json extends by relative path,
skipped tsc and type-aware lint. Configs the project extends by relative path
are now followed transitively and count as changing every file's types.

Fixes #236

Signed-off-by: FredApps <[email protected]>

* chore: re-run CI after the Windows rust-adapter cleanup flake

The previous windows-latest Node 22 check failed in rust-adapter.test.ts
cleanup (EBUSY on a temp dir). That flake is #227 / #235, which this
branch does not touch. Empty commit to re-run hosted CI.

Signed-off-by: FredApps <[email protected]>

---------

Signed-off-by: FredApps <[email protected]>
adityankale190895 pushed a commit that referenced this pull request Nov 18, 2026
… rerun (#280)

* fix(release): replace a local action-v tag left by a rejected push on rerun

Fixes #279

Signed-off-by: FredApps <[email protected]>

* ci: rerun checks (Windows rust-adapter flake, #235)

Signed-off-by: FredApps <[email protected]>

---------

Signed-off-by: FredApps <[email protected]>
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.

Flaky on Windows: Cargo fixture cleanup in rust-adapter.test.ts fails with EPERM

2 participants