Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report line number of test when should_panic test failed #138603

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xizheyin
Copy link
Contributor

Closing #137405

r? @joshka

@rustbot
Copy link
Collaborator

rustbot commented Mar 17, 2025

Failed to set assignee to joshka: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Mar 17, 2025
@rustbot
Copy link
Collaborator

rustbot commented Mar 17, 2025

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@xizheyin

This comment was marked as outdated.

@rustbot
Copy link
Collaborator

rustbot commented Mar 17, 2025

Could not assign reviewer from: jieyouxu.
User(s) jieyouxu are either the PR author, already assigned, or on vacation. Please use r? to specify someone else to assign.

@rust-log-analyzer

This comment has been minimized.

@jieyouxu
Copy link
Member

This looks like a libtest change, so r? libs (or testing-devex?)

@jieyouxu

This comment was marked as resolved.

@rustbot rustbot assigned joboet and unassigned Mark-Simulacrum Mar 17, 2025
@xizheyin xizheyin marked this pull request as draft March 17, 2025 14:03
@xizheyin xizheyin marked this pull request as ready for review March 17, 2025 14:23
@rust-log-analyzer

This comment has been minimized.

Copy link
Contributor

@joshka joshka left a comment

Choose a reason for hiding this comment

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

Test names are nits, but make the reason for each test self describing.

I think it probably makes sense to also fix the substring tests if they're also broken (I haven't manually checked those messages to see if there's span info coming from elsewhere in the stack, but these seem like they should be tested with the same tests as are introduced here).

@xizheyin xizheyin force-pushed the issue-137405 branch 2 times, most recently from 21b9d4f to c7b4523 Compare March 18, 2025 01:17
Copy link
Contributor

@joshka joshka left a comment

Choose a reason for hiding this comment

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

Generally LGTM - small nits

(Note: I'm not a member of the rust project, so this likely still requires approval from someone who is)

@rust-log-analyzer

This comment has been minimized.

@jieyouxu
Copy link
Member

(Note: I'm not a member of the rust project, so this likely still requires approval from someone who is)

Though reviews are still very much appreciated 😁

Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
@weihanglo
Copy link
Member

@bors try

Before the change fails snapshots in Cargo's test testsuite

@bors
Copy link
Contributor

bors commented Mar 18, 2025

⌛ Trying commit a164290 with merge b7cffdf...

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 18, 2025
Report line number of test when should_panic test failed

Closing rust-lang#137405

r? `@joshka`
@bors
Copy link
Contributor

bors commented Mar 18, 2025

☀️ Try build successful - checks-actions
Build commit: b7cffdf (b7cffdfcf2ab6d783e833e46b5dd168197dbcd3e)

@joboet
Copy link
Member

joboet commented Mar 21, 2025

I've never touched the test crate before so I don't feel qualified to review this.
r? @thomcc
as you are a member of testing-devex

@rustbot rustbot assigned thomcc and unassigned joboet Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants