Skip to content

acc: fix Windows failures in prevent-destroy and shell/cmd - #6287

Merged
denik merged 1 commit into
mainfrom
denik/failures
Aug 17, 2026
Merged

denik merged 1 commit into
mainfrom
denik/failures

Conversation

@denik

@denik denik commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Why

Two tests assert Files: N uploaded, which is not stable on Windows:

  • bundle/lifecycle/prevent-destroy is the only test that redirects bundle deploy
    output away from output.txt, so nothing writes to output.txt between the two
    deploys. Its mtime stays put on Linux and macOS, but on Windows the last-write-time
    update on the still-open handle lands late and the file looks modified, giving
    Files: 3 instead of 2. Deterministic, both engines.
  • bundle/artifacts/shell/cmd only runs on Windows, so -update elsewhere skips it.
    acc: merge repls.json into ACC_REPLS and move it out of the test directory #6264 took repls.json out of the synced tree
    and moved the four sibling shell tests from 6 to 5, leaving this one stale at 6.

Changes

Add -qq to those deploys. The count is noise in both: prevent-destroy asserts the
prevent_destroy error, and shell/cmd asserts which shell ran the build via
out.shell.txt.

Both assert an uploaded file count that is not stable on Windows.
Add -qq so the count is not part of the golden.
@denik
denik enabled auto-merge August 17, 2026 13:14
@denik
denik disabled auto-merge August 17, 2026 13:24
@denik
denik merged commit 75020a5 into main Aug 17, 2026
25 of 26 checks passed
@denik
denik deleted the denik/failures branch August 17, 2026 13:24
janniklasrose pushed a commit that referenced this pull request Sep 15, 2026
## Why
Two tests assert `Files: N uploaded`, which is not stable on Windows:

- `bundle/lifecycle/prevent-destroy` is the only test that redirects
`bundle deploy`
output away from `output.txt`, so nothing writes to `output.txt` between
the two
deploys. Its mtime stays put on Linux and macOS, but on Windows the
last-write-time
update on the still-open handle lands late and the file looks modified,
giving
  `Files: 3` instead of `2`. Deterministic, both engines.
- `bundle/artifacts/shell/cmd` only runs on Windows, so `-update`
elsewhere skips it.
#6264 took repls.json out of the
synced tree
and moved the four sibling shell tests from 6 to 5, leaving this one
stale at 6.

## Changes
Add `-qq` to those deploys. The count is noise in both: prevent-destroy
asserts the
`prevent_destroy` error, and shell/cmd asserts which shell ran the build
via
`out.shell.txt`.
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.

3 participants