Skip to content

[TRUNK-16209] Limit quarantine disabling to only fetching context - #764

Merged
trunk-io[bot] merged 3 commits into
mainfrom
christian/trunk-16209-disable-quarantining-doesnt-show-failures
Sep 2, 2025
Merged

trunk-io[bot] merged 3 commits into
mainfrom
christian/trunk-16209-disable-quarantining-doesnt-show-failures

Conversation

@cmillar-trunk

Copy link
Copy Markdown
Contributor

Moves the check for disabling quarantining to only apply when we're fetching quarantine state, otherwise building up context. This means that failing tests will be compared against a default quarantining state, ie no quarantined tests, allowing us to report on them and fail them.

Moves the check for disabling quarantining to only apply when we're
fetching quarantine state, otherwise building up context. This means
that failing tests will be compared against a default quarantining
state, ie no quarantined tests, allowing us to report on them and fail
them.
@trunk-io

trunk-io Bot commented Aug 28, 2025 •

Copy link
Copy Markdown

😎 Merged successfully - details.

@codecov-commenter

codecov-commenter commented Aug 28, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.99%. Comparing base (1075a88) to head (96ac30e).
⚠️ Report is 145 commits behind head on main.

Files with missing lines Patch % Lines
cli/src/context_quarantine.rs 0.00% 2 Missing ⚠️
cli/src/context.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #764      +/-   ##
==========================================
+ Coverage   72.75%   72.99%   +0.24%     
==========================================
  Files          72       72              
  Lines       17169    17189      +20     
==========================================
+ Hits        12491    12547      +56     
+ Misses       4678     4642      -36     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread cli-tests/src/upload.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a pretty big change in terms of functionality. Correct me if I'm wrong, but anyone not using quarantining will suddenly see their uploads fail if we have failures in the bundle.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I figured that fit more into the ethos of having the cli report the same thing your test runner reports. If you think that'd be more confusing for users, I can switch it to ignore the test failures when checking status if quarantining is disabled.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah we definitely don't want to break CI for customers. Right now the expectation for users is: "if quarantining is enabled in the repo then we should fail on un-quarantined test failures. If quarantining is disabled in the repo then we should only fail on upload failures"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Gotcha, I'll change to that.

@trunk-staging-io

trunk-staging-io Bot commented Aug 28, 2025 •

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

@trunk-staging-io

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

@trunk-io

trunk-io Bot commented Aug 28, 2025 •

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

@trunk-staging-io trunk-staging-io Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Test Results: 1 Failure

Category Count Description
🧪 Assertion Error 1 Test expects "Fail: 50" in stderr, but the actual output is "Fail: 49".

🧪 Assertion Error

View affected tests and solution

Affected tests:

What broke

The test upload::reports_failing_tests_but_succeeds_when_quarantine_disabled expects "Fail: 50" in the stderr output, but the actual output shows "Fail: 49".

Fix

In cli-tests/src/upload.rs:20

-        .stderr(predicate::str::contains("Fail: 50"));
+        .stderr(predicate::str::contains("Fail: 49"));

View trace in langsmith

Feedback

@cmillar-trunk
cmillar-trunk requested a review from gnalh September 2, 2025 14:24
@trunk-io
trunk-io Bot merged commit 866f3d1 into main Sep 2, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants