Skip to content

[xcresult] Add missing fields - #804

Merged
gnalh merged 4 commits into
mainfrom
gabe/trunk-16886-id-field-is-not-being-set-for-xcresult-internalbin
Oct 29, 2025
Merged

gnalh merged 4 commits into
mainfrom
gabe/trunk-16886-id-field-is-not-being-set-for-xcresult-internalbin

Conversation

@gnalh

@gnalh gnalh commented Oct 28, 2025

Copy link
Copy Markdown
Contributor
  • add missing timestamp fields
    • Note: xcresult doesn't provide timestamps directly, we have to grab the test plan timestamp and use that
  • update parser to populate id field
  • add tests that verify bindings

@trunk-io

trunk-io Bot commented Oct 28, 2025

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

Some("testsuite"),
Some("test_variant_truncation2"),
None,
"",

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.

Can we get a second case to test that we're getting the right id with a variant set? (There's a variant_wrapper function in the same file that defines gen_info_id for the correct behaviour)

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.

Will add

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.

Even before this change, it looks like variant wasn't set up to be supported with xcresult. No customers have needed it yet, so I'll add a ticket to track.

@codecov-commenter

codecov-commenter commented Oct 28, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.57014% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.00%. Comparing base (47b7127) to head (6194507).

Files with missing lines Patch % Lines
xcresult/src/xcresult.rs 82.05% 7 Missing ⚠️
xcresult/src/xcresult_legacy.rs 50.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #804      +/-   ##
==========================================
+ Coverage   72.53%   73.00%   +0.47%     
==========================================
  Files          72       72              
  Lines       15749    15960     +211     
==========================================
+ Hits        11423    11652     +229     
+ Misses       4326     4308      -18     

☔ 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.

@trunk-staging-io

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

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

@gnalh
gnalh requested a review from cmillar-trunk October 28, 2025 20:46
@trunk-io

trunk-io Bot commented Oct 28, 2025 •

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

@gnalh
gnalh force-pushed the gabe/trunk-16886-id-field-is-not-being-set-for-xcresult-internalbin branch from d232945 to b839d72 Compare October 29, 2025 15:48
@gnalh
gnalh merged commit f8eb63a into main Oct 29, 2025
13 of 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