Skip to content

test: Skip atomic write replacement test on WASI - #343

Merged
scouten-adobe merged 2 commits into
mainfrom
fix-wasi-atomic-write-test
Sep 22, 2026
Merged

scouten-adobe merged 2 commits into
mainfrom
fix-wasi-atomic-write-test

Conversation

@scouten-adobe

Copy link
Copy Markdown
Collaborator

Summary

  • Skip atomic_write_file_writes_and_replaces on WASI, where the tempdirectory cleanup path reaches unsupported std::process::id().

Validation

  • cargo test
  • CARGO_TARGET_WASM32_WASIP2_RUNNER="wasmtime -S cli -S http --dir . --env GITHUB_ACTIONS=${GITHUB_ACTIONS}" CC=clang RUST_MIN_STACK=16777216 cargo +nightly-2026-07-12 test --target wasm32-wasip2 -- --no-capture

std::process::id() is unsupported on WASI, and tempfile's tempdirectory cleanup path uses it when removing the directory. The test exercises native atomic replacement behavior, so keep it on native targets only.

Co-authored-by: Copilot App <[email protected]>
@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.32%. Comparing base (c729387) to head (68834d9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #343   +/-   ##
=======================================
  Coverage   72.32%   72.32%           
=======================================
  Files           4        4           
  Lines        1066     1066           
=======================================
  Hits          771      771           
  Misses        295      295           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scouten-adobe
scouten-adobe merged commit 67ba94e into main Sep 22, 2026
17 checks passed
@scouten-adobe
scouten-adobe deleted the fix-wasi-atomic-write-test branch September 22, 2026 14:18
@scouten-adobe scouten-adobe added the backport-stable Cherry-pick this merged main PR onto the stable release line label Sep 22, 2026
@caiopensrc

caiopensrc commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Backport-action failed to backport this pull request in workflow run 35739403152.

Target Status
stable ❌ Failed
❌ stable — unable to cherry-pick

Tried to cherry-pick commits onto stable, but the cherry-pick failed.

Please cherry-pick the changes locally and resolve any conflicts:

git fetch origin stable
git worktree add -d .worktree/backport-343-to-stable origin/stable
cd .worktree/backport-343-to-stable
git switch --create backport-343-to-stable
git cherry-pick -x 67ba94e0c880a1b13df4c2cff6774f8295a6bd61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stable Cherry-pick this merged main PR onto the stable release line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants