Repository navigation
test(core): show captured stderr when owned-deadline assertions fail - #843
Merged
Merged
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by free · Input: 32.1K · Output: 5.2K · Cached: 78K |
3 of 6 tasks
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.
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
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