Skip to content

Run docket-rs's tests on Windows in CI - #638

Merged
chrisguidry merged 4 commits into
mainfrom
rust-windows-ci
Nov 25, 2026
Merged

chrisguidry merged 4 commits into
mainfrom
rust-windows-ci

Conversation

@chrisguidry

@chrisguidry chrisguidry commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Every Rust job ran on Ubuntu, so nothing built or tested docket-rs on Windows. A new job runs the workspace's tests on windows-latest against memory://, the same way pydocket's Windows jobs do, since GitHub's Windows runners cannot run Redis containers. It leaves out the conformance agent, which stops on SIGTERM through tokio::signal::unix and runs only under the Linux conformance driver.

The first Windows runs turned up three problems in the tests, none in docket-rs itself. Windows checkouts turned the Lua scripts' line endings into CRLF, which broke the test that checks each script's header, so .gitattributes now keeps *.lua at LF. A saturation test built a SystemTime 20,000 years before the epoch, which Windows cannot represent, so that half runs only on Unix. The unreachable-Redis test looked for Linux's wording of a refused connection, and now compares against the platform's own.

🤖 Generated with Claude Code

Every Rust job ran on Ubuntu, so nothing built or tested docket-rs on Windows, where SystemTime cannot represent times before 1601 and cli.rs takes its non-Unix branch. The new job runs the workspace's tests on windows-latest against memory://, the same way pydocket's Windows jobs do, since GitHub's Windows runners cannot run Redis containers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T14:01:18.819751Z bb80629 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb80629bb6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/rust.yml Resolved
chrisguidry and others added 3 commits November 25, 2026 09:08
The agent stops on SIGTERM through tokio::signal::unix, which Tokio does not build on Windows, so the job failed to compile it before running docket-rs's tests. The agent runs only under the Linux conformance driver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Windows checkout turned the Lua scripts' line endings into CRLF, so docket-rs's include_str! copies no longer started with the header its test expects; .gitattributes now keeps *.lua at LF everywhere. The saturation test built a SystemTime 20,000 years before the epoch, which Windows's SystemTime cannot represent, so that half now runs only on Unix, where a time before Timestamp::MIN exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test looked for Linux's "Connection refused", and Windows words the same error "No connection could be made because the target machine actively refused it". It now refuses a plain TcpStream to the same port and looks for that error's text in the worker's logs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chrisguidry
chrisguidry merged commit 618d2f0 into main Nov 25, 2026
58 checks passed
@chrisguidry
chrisguidry deleted the rust-windows-ci branch November 25, 2026 14:36
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.

1 participant