Skip to content

trunk-merge/pr-1196/ac3ad0eb-08e7-417e-a9be-2acd690ca7d7 - #1200

Closed
trunk-io[bot] wants to merge 2 commits into
mainfrom
trunk-merge/pr-1196/ac3ad0eb-08e7-417e-a9be-2acd690ca7d7
Closed

trunk-io[bot] wants to merge 2 commits into
mainfrom
trunk-merge/pr-1196/ac3ad0eb-08e7-417e-a9be-2acd690ca7d7

Conversation

@trunk-io

@trunk-io trunk-io Bot commented Sep 14, 2026

Copy link
Copy Markdown
Trunk Merge Pull Request Banner

This pull request was created and is being managed by Trunk Merge.

This pull request is based on the main branch at SHA ccaad7f8b75339cdf8bed42459ff69a54e637da5.

See more details here.

When CI completes, this pull request will be closed automatically.

Pull Requests Being Tested

This pull request is testing the changes from pull request 1196.

max-trunk and others added 2 commits September 9, 2026 20:13
…inks

The report table's per-test links now use the ADR-0019 GUID — a UUIDv8 hash of
`(test_collection_id, repo_id, test_case_id)` — addressing the canonical
`collections/<short_id>/tests/<guid>` page directly instead of the `/t/<id>`
short link the webapp has to resolve a repo for and redirect.

The two server-owned legs of the tuple come from `createBundleUpload`, which
now returns `repoId` and `testCollectionId` (trunk-io/trunk#33761). Both are
`Option` with `serde(default)`: a server predating that PR sends neither,
`testCollectionId` is absent under maintenance mode and for orgs with the
receipt-inserts flag off, and the CLI must keep working against all of them.

Every way the GUID can be unavailable funnels through one decision point in
`url_for_test_case` and falls back to today's link:

- no collection short id, or links hidden
- the server returned no ids
- `test_case.id` is not a UUID — a report-supplied id passes through verbatim
  (RSpec emits `trunk:<id>-<location>`), and hashing one would mint a
  well-formed GUID that addresses nothing

`gen_test_case_guid` is the same compiled `context` crate ingest runs, so there
is no second implementation of the frozen hash. The URL test pins ADR-0019's
first golden vector rather than recomputing the hash, so a drift in either the
contract or the URL shape fails the build.

The pre-upload `log_failure` lane still prints the short link: it runs before
`createBundleUpload`, so the ids do not exist yet. Hoisting that call is the
follow-up.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@trunk-staging-io

trunk-staging-io Bot commented Sep 14, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
pending_quarantine_test should be quarantined when run with variant A test marked as pending was expected to fail but unexpectedly passed. Logs ↗︎
variant_quarantine_test should be quarantined when run with variant A test expected the sum of 2 + 2 to be 5, but it was actually 4, indicating a failing assertion. Logs ↗︎

View Full Report ↗︎Docs

@codecov-commenter

codecov-commenter commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.92%. Comparing base (ccaad7f) to head (a9a0503).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1200      +/-   ##
==========================================
+ Coverage   83.63%   83.92%   +0.29%     
==========================================
  Files          74       74              
  Lines       17573    17652      +79     
==========================================
+ Hits        14697    14815     +118     
+ Misses       2876     2837      -39     

☔ View full report in Codecov by Harness.
📢 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.

@trunk-io

trunk-io Bot commented Sep 14, 2026

Copy link
Copy Markdown
Author

Static BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@trunk-io trunk-io Bot closed this Sep 14, 2026
@trunk-io
trunk-io Bot deleted the trunk-merge/pr-1196/ac3ad0eb-08e7-417e-a9be-2acd690ca7d7 branch September 14, 2026 14:15
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.

2 participants