Skip to content

builder: unify target/doc finding, support json file in get_coverage - #3430

Merged
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:fix-json-output
Aug 5, 2026
Merged

builder: unify target/doc finding, support json file in get_coverage#3430
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:fix-json-output

Conversation

@syphar

@syphar syphar commented Aug 5, 2026

Copy link
Copy Markdown
Member

This is coming from a bugfix in rustdoc which changes behaviour for the coverage output.

Before we always got the coverage output in stdout. Now, the -o arg is used, which is set to ./target/doc by cargo when it calls rustdoc.

Without dropping to raw rustdoc, the only option is to switch our coverage-reading to reading the local file.

While I'm on it, I unified the logic to find the doc output directory, and the logic to find a single json file in the output dir.

The legacy stdout logic I left in for now, so we can deploy this change with the old frozen nightly version, and then unfreeze nightly as we wish. Later I can remove that part too.

this also fixes the currently failing CI on main

@syphar syphar self-assigned this Aug 5, 2026
@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Aug 5, 2026
@syphar
syphar marked this pull request as ready for review August 5, 2026 00:45
@syphar
syphar requested a review from a team as a code owner August 5, 2026 00:45
@GuillaumeGomez

Copy link
Copy Markdown
Member

Thanks!

@GuillaumeGomez
GuillaumeGomez merged commit e437ed2 into rust-lang:main Aug 5, 2026
14 checks passed
@GuillaumeGomez
GuillaumeGomez deleted the fix-json-output branch August 5, 2026 08:37
@github-actions github-actions Bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Aug 5, 2026
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Aug 6, 2026
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.

2 participants