Skip to content

Try fixing CI#392

Merged
walles merged 7 commits intomasterfrom
johan/fix-ci-2026
Mar 10, 2026
Merged

Try fixing CI#392
walles merged 7 commits intomasterfrom
johan/fix-ci-2026

Conversation

@walles
Copy link
Copy Markdown
Owner

@walles walles commented Mar 9, 2026

On both Linux and Windows.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to stabilize CI on both Linux and Windows by adjusting how interruptableReader waits for input readiness (especially for Windows pipe handles), adding targeted tests around that behavior, and bumping the golangci-lint version used in Linux CI.

Changes:

  • Update interruptableReader.waitForReadReady() to accept a timeout and use it on Unix via select().
  • Add a Windows pipe-specific readiness check using PeekNamedPipe instead of relying solely on WaitForSingleObject.
  • Add unit tests for read-readiness on pipes and files; bump golangci-lint in Linux CI.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
twin/screen_test.go Adds tests for waitForReadReady() on pipes and files to catch platform-specific behavior.
twin/screen-setup.go Updates Unix readiness waiting to take an explicit timeout.
twin/screen-setup-windows.go Implements pipe readiness detection using PeekNamedPipe and adds timeout handling.
twin/interruptablereader.go Renames poll interval constant and passes timeout through to waitForReadReady().
.github/workflows/linux-ci.yml Bumps golangci-lint install version used by CI.

@walles walles merged commit cc10fd4 into master Mar 10, 2026
2 checks passed
@walles walles deleted the johan/fix-ci-2026 branch March 10, 2026 18:53
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