Skip to content

Add CI workflow for ev module - #214

Merged
lalinsky merged 3 commits into
mainfrom
add-test-ev-workflow
Jan 17, 2026
Merged

lalinsky merged 3 commits into
mainfrom
add-test-ev-workflow

Conversation

@lalinsky

Copy link
Copy Markdown
Owner

Summary

  • Add test-ev.yml workflow similar to test-coro.yml
  • Tests ev module across multiple OS/architecture combinations
  • Tests multiple backends per platform (io_uring/epoll/poll on Linux, kqueue/poll on macOS/BSD, iocp/poll on Windows)

Test plan

  • Verify workflow runs successfully on push to main

@coderabbitai

coderabbitai Bot commented Jan 17, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds a new GitHub Actions workflow to run EV subsystem tests across multiple Zig/target/backends (including VM-based FreeBSD/NetBSD runs) and updates EV unit tests to introduce blocking/synchronization to validate cancel semantics for queued work.

Changes

Cohort / File(s) Summary
CI/CD Workflow
​.github/workflows/test-ev.yml
New GitHub Actions workflow "Test ev". Matrix-driven CI across Zig versions, OS targets, native vs VM targets, and multiple backends. Runs in-repo tests for native targets; emits test binaries and executes them on FreeBSD/NetBSD VMs for VM targets.
EV test changes
src/ev/test/cancel.zig
Introduces BlockingFn and explicit event synchronization (started/blocker events) to deterministically exercise cancel-before-run scenarios. Applies blocking pattern across multiple cancel-related tests, asserts canceled state, ensures idempotent cancels, and defers unblocking for clean teardown.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Poem

Threads wait on a signal, tests hold their breath—
A cancel flicks the light; queues learn to rest.
VMs hum in the wings, CI maps the plan,
Zig prowls the matrix, checks each race and span.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding a CI workflow for the ev module, which aligns with the primary file change (.github/workflows/test-ev.yml) and the PR objectives.
Description check ✅ Passed The description is directly related to the changeset, clearly explaining the workflow's purpose, which backends are tested per platform, and includes a test plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-test-ev-workflow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@lalinsky
lalinsky merged commit 8c8f9f3 into main Jan 17, 2026
@lalinsky
lalinsky deleted the add-test-ev-workflow branch January 17, 2026 08:54
This was referenced Feb 5, 2026
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