Repository navigation
Run docket-rs's tests on Windows in CI - #638
Merged
Merged
Conversation
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>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
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>
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.
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::unixand 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
.gitattributesnow keeps*.luaat 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