Repository navigation
os-smoke on Windows: fix the three test bodies that always failed - #59
Merged
Merged
Conversation
…ests The Windows smoke job (release.yml, continue-on-error) failed on every release from alpha.1 to alpha.7 with the same three bodies. In each case the extension behaves as intended on Windows; the tests assumed a POSIX machine. - quote: the POSIX terminal-command check read the real OS, so on Windows it got the (correct) Windows line. It now sets os.name to Linux, like its Windows twin sets it to Windows. - trust: six checks (group/other write bits, schema next to the entry) are POSIX-only by contract (Tools HOST_PARITY trust vectors, posix_only; the Python registry checks them under os.name == "posix"). They are skipped on Windows with a printed NOTE. The prefix-is-root and outside-prefix checks apply everywhere but used /bin/sh, which does not exist on Windows; they now use ComSpec (cmd.exe) and its drive root there. - retention RET-10: the path was compared with resultsRoot.path + "/", but Windows paths use backslashes. It now compares Paths. release.yml: a pull request that changes tests/smoke_* , ci_setup_os.sh or one of the four bodies smoke_os.sh runs now gets the release dry run too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
IvanHCenalmor
added a commit
that referenced
this pull request
Nov 17, 2026
…ixed-name jar change Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
os-smoke (windows-latest)job ofrelease.ymlhas failed on every release, alpha.1 to alpha.7, with the same three test bodies (for example, alpha.7 was run 43601105155). The job hascontinue-on-error: true, so nobody saw it. In all three, the extension does the right thing on Windows. The tests assumed a POSIX machine. No extension code changes.gui_test_parity_quote_bodyposix_terminal_command_gives_the_shell_the_typed_valueos.nameto Linux for this check, the way its Windows twin sets it to Windowsgui_test_parity_trust_bodydocs/HOST_PARITY.md) mark themposix_only, and the Python registry checks them only whenos.name == "posix". The QuPath registry follows the same rule.NOTE POSIX-only checks skipped ...gui_test_parity_trust_bodyprefix_is_root,interp_outside_prefix/bin/sh. On Windows that file doesn't exist, so the entry was refused as "interpreter missing" before these rules were checked.ComSpec(cmd.exe) and its drive root on Windows. On Linux and macOS the test still uses/bin/shand/.gui_test_retention_bodyRET-10_the_reported_path_is_under_results_and_has_the_dataresultsRoot.path + "/", and Windows paths use\Paths (startsWithcompares whole path parts)release.yml. Before this change, a PR ran the release dry run only if it changed
release.yml,build.shortests/smoke_jar.*. A change to the bodies thatsmoke_os.shruns was never checked on Windows or macOS. Now the filter also coverstests/smoke_*,tests/ci_setup_os.shand those four bodies. This PR triggers its own dry run that way. A comment insmoke_os.shsays to keep the two lists the same.Not changed:
continue-on-error: truestays onos-smoke. The job's comment says it is best effort and never blocks a release. Making it required is a release decision.🤖 Generated with Claude Code