Skip to content

test(core): show captured stderr when owned-deadline assertions fail - #843

Merged
agenteinstinct1-max merged 1 commit into
dev-vibecodedfrom
diag-owned-stderr
Nov 11, 2026
Merged

agenteinstinct1-max merged 1 commit into
dev-vibecodedfrom
diag-owned-stderr

Conversation

@agenteinstinct1-max

@agenteinstinct1-max agenteinstinct1-max commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Issue for this PR

Closes #842, which only asks for the missing measurement (captured stderr shown on failure). This PR does not fix or explain the underlying CI failure; #830 and #841 remain open.

Development link: #842 is linked in this PR's Development sidebar (GraphQL closingIssuesReferences = #842), because "Closes" in the body is not recognized for a non-default base branch. State at head d01d602 on 2026-11-11: typecheck, unit (linux), unit (windows), Kilo review, check-standards and check-compliance completed with success. Local qualification: core suite 1545 pass, 9 skip, 0 fail, no "[diag]" output.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds failure-only diagnostics to the test "cancelling an unsettled scoped effect surfaces finalizer defects and reports to stderr" in packages/core/test/lib/effect.test.ts. Before each of the two stderr assertions, if the assertion's predicate is false, it prints one "[diag]" line with the captured stderr count, up to 50 lines (each cut to 1000 characters) and the cancel result. Nothing prints when the assertions hold. The printing is wrapped in a nested try/catch so a serialization or reporter error cannot stop the following expect from running.

38 lines added, none removed. All existing assertions, their order and text, timeouts and other tests are unchanged. No production code, workflow, dependency or package-script changes. Base: 32c33f4 on dev-vibecoded.

It does not claim a root cause or a fix. The Linux failure it targets (#842) has not been reproduced locally.

How did you verify your code works?

Linux, Bun 1.3.14, CI-style env. On this base: effect.test.ts 4 pass; full core suite 1545 pass, 9 skip, 0 fail, no "[diag]" output. Scratch variants (not part of this PR): a forced assertion failure printed the dump, and a throwing stack getter and a throwing reporter did not stop the following assertion from running and reporting its own failure. An independent source review found no must-fix or should-fix items.

Not verified: Windows, typecheck (left to CI), and whether the CI failure recurs.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@kilo-code-bot

kilo-code-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • packages/core/test/lib/effect.test.ts

Reviewed by free · Input: 32.1K · Output: 5.2K · Cached: 78K

@agenteinstinct1-max
agenteinstinct1-max merged commit 2ab1fca into dev-vibecoded Nov 11, 2026
11 checks passed
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.

test: show captured stderr when owned-deadline finalizer defect assertion fails in Linux CI

1 participant