Skip to content

Allow running coretests/alloctests without corebenches/allocbenches#2183

Merged
bors-ferrocene[bot] merged 3 commits intomainfrom
jh/no-doc-is-not-yes-bench
Mar 24, 2026
Merged

Allow running coretests/alloctests without corebenches/allocbenches#2183
bors-ferrocene[bot] merged 3 commits intomainfrom
jh/no-doc-is-not-yes-bench

Conversation

@Urhengulas
Copy link
Copy Markdown
Member

@Urhengulas Urhengulas commented Feb 25, 2026

After this PR corebenches and allocbenches will not be run for gathering code coverage anymore. Firstly this is the correct thing to do from a certification perspective, since benches should not be used for coverage. Secondly this speeds up compile and execution times noticeably.

Most of the work happened upstream: rust-lang/rust#153143.

Test coverage diff

Executing ./x test library/core library/alloc --coverage=library --no-doc on both this branch and main (46b1135) shows that this PR changes coverage (with "count annotated lines as tested") like following:

main this PR Diff
Lines 99.92% (26576/26596 lines) 99.90% (26569/26596 lines) -0.02%
Fully Tested 6064 6061 -3
Partially tested 5 7 +2
Fully untested 3 4 +1
Fully ignored 302 302 +0
Total 6374 6374 +0

@Urhengulas Urhengulas requested a review from jyn514 February 25, 2026 20:45
@Urhengulas Urhengulas marked this pull request as draft February 26, 2026 11:34
@Urhengulas Urhengulas force-pushed the jh/no-doc-is-not-yes-bench branch 4 times, most recently from 63b3615 to 4eb2420 Compare February 27, 2026 16:53
@jyn514 jyn514 added blocked waiting on another change labels Mar 9, 2026
@Urhengulas Urhengulas force-pushed the jh/no-doc-is-not-yes-bench branch from 4eb2420 to 8ac09bc Compare March 19, 2026 09:46
@Urhengulas Urhengulas marked this pull request as ready for review March 19, 2026 09:48
@Urhengulas Urhengulas added waiting-on-review and removed blocked waiting on another change labels Mar 19, 2026
Copy link
Copy Markdown
Contributor

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

This looks good! Just one comment.

# HACK: work around incorrect caching for profiler_builtins.
rm -rf build/host/stage1-std
./x test --stage 1 --coverage=library --no-doc library/core library/alloc -- --list
./x test --stage 1 --coverage=library --tests library/core library/alloc -- --list
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.

I think we also need to update .circleci/workflow.yml, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There are no --no-docs in that file anymore, they have been changed in the Upstream Pull PR already

@jyn514 jyn514 added waiting-on-author If this PR was opened by an automation, the "author" is the assignee. and removed waiting-on-review labels Mar 19, 2026
@Urhengulas Urhengulas added waiting-on-review and removed waiting-on-author If this PR was opened by an automation, the "author" is the assignee. labels Mar 19, 2026
@Urhengulas Urhengulas requested a review from jyn514 March 19, 2026 15:20
@Urhengulas Urhengulas force-pushed the jh/no-doc-is-not-yes-bench branch from 8ac09bc to 89ea530 Compare March 19, 2026 15:27
Copy link
Copy Markdown
Contributor

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

bors merge

@Urhengulas Urhengulas force-pushed the jh/no-doc-is-not-yes-bench branch from 89ea530 to e96874f Compare March 24, 2026 10:56
Copy link
Copy Markdown
Contributor

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

bors merge

@bors-ferrocene
Copy link
Copy Markdown
Contributor

Build succeeded:

@bors-ferrocene bors-ferrocene Bot merged commit 4b439c6 into main Mar 24, 2026
4 checks passed
@bors-ferrocene bors-ferrocene Bot deleted the jh/no-doc-is-not-yes-bench branch March 24, 2026 14:40
@github-actions github-actions Bot added backport:maybe PR candidate for backport merged-in:1.96 labels Mar 24, 2026
@github-actions github-actions Bot removed the backport:maybe PR candidate for backport label Mar 24, 2026
ferrocene-automations Bot pushed a commit that referenced this pull request Mar 25, 2026
bors-ferrocene Bot added a commit that referenced this pull request Mar 25, 2026
2240: Backport to `release/1.95` r=tshepang a=ferrocene-automations[bot]

This PR backports the following PRs to the `release/1.95` branch:

* #2183

Note that the automation failed to backport some PRs automatically. Check out the [backport:manual](https://github.com/ferrocene/ferrocene/pulls?q=is%3Apr+label%3Abackport%3Amanual) for a list of them.

Co-authored-by: Urhengulas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants