Skip to content

test(runtime): make the monorepo push tests pass on Windows - #1494

Merged
Pijukatel merged 1 commit into
actor-runtimefrom
fix/windows-runtime-tests
Oct 12, 2026
Merged

Pijukatel merged 1 commit into
actor-runtimefrom
fix/windows-runtime-tests

Conversation

@Pijukatel

@Pijukatel Pijukatel commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What

The CI probe #1493 showed Local Tests (windows-2025) red on actor-runtime because two branch-only tests assume POSIX paths and modes. The CLI code is fine on Windows; only the assertions were wrong.

  • test/local/lib/runtime-source-context.test.ts: expected roots were built with join('/repo'), which is \repo on Windows, while resolveDockerContext uses resolve() and gets D:\repo. The test now resolves the same way.
  • test/local/commands/push-monorepo.test.ts: the tarball mode assertion expected 0o755 after chmod, but Windows has no execute bit, so the archive records 0o666. That one assertion is skipped on Windows, as the existing mode tests in auth-file and credentials already do; the rest of the test still runs there.

Test-only change; no CLI behavior changes.

Two actor-runtime tests assumed POSIX paths and modes:

- resolveDockerContext's expected roots were built with join('/repo'),
  which on Windows gives '\repo' while the command's resolve() gives
  'D:\repo'. The test now resolves the same way.
- The tarball mode assertion expected 0o755 after chmod, but Windows has
  no execute bit, so the archive records 0o666. The assertion is skipped
  there, as the other mode tests already do.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015JzfLYa5CHCXxfzC1No3gV
@Pijukatel Pijukatel changed the title test: make the monorepo push tests pass on Windows test(runtime): make the monorepo push tests pass on Windows Oct 12, 2026
@Pijukatel
Pijukatel merged commit 821a4bc into actor-runtime Oct 12, 2026
20 of 21 checks passed
@Pijukatel
Pijukatel deleted the fix/windows-runtime-tests branch October 12, 2026 12:09
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.

2 participants