Skip to content

Rerun tests/debuginfo tests if repr data has changed - #161967

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Walnut356:stamp_repr_data
Aug 30, 2026
Merged

Rerun tests/debuginfo tests if repr data has changed#161967
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Walnut356:stamp_repr_data

Conversation

@Walnut356

Copy link
Copy Markdown
Contributor

Resolves #161138

This also includes the necessary checking for GDB's data even though none exists atm (#160377 will contain the first set). The extra handling doesn't hurt anything since we have to account for all the other tests that don't have repr data anyway.

In a followup, I can rename the lldb_input directory to something else (see: #160137 (comment)). Doing so requires me to touch a bunch of other places where the name is used, so it should probably be it's own PR. Making sure the tests rerun when the data changes is higher priority though atm.

r? @jieyouxu , @Kobzol

cc @Mark-Simulacrum

@rustbot

rustbot commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@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) labels Aug 29, 2026

@jieyouxu jieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, one suggestion

View changes since this review

related.push(path);
}

// `minicore.rs` test auxiliary: we need to make sure tests get rerun if this changes.
related.push(config.src_root.join("tests").join("auxiliary").join("minicore.rs"));

// `tests/debuginfo` blessed files
match variant.debugger {
Some(debugger @ Debugger::Lldb | debugger @ Debugger::Gdb) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we exhaustively match Debugger kinds here?

@jieyouxu jieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@rust-bors

rust-bors Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 63adf37 has been approved by jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 30, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 30, 2026
Rerun `tests/debuginfo` tests if repr data has changed

Resolves rust-lang#161138

This also includes the necessary checking for GDB's data even though none exists atm (rust-lang#160377 will contain the first set). The extra handling doesn't hurt anything since we have to account for all the other tests that don't have repr data anyway.

In a followup, I can rename the `lldb_input` directory to something else (see: rust-lang#160137 (comment)). Doing so requires me to touch a bunch of other places where the name is used, so it should probably be it's own PR. Making sure the tests rerun when the data changes is higher priority though atm.

r? @jieyouxu , @Kobzol

cc @Mark-Simulacrum
rust-bors Bot pushed a commit that referenced this pull request Aug 30, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - #162004 (Remove unneeded clone in macro deriving)
 - #161902 (coverage: Rename the three main coverage-info structs)
 - #161967 (Rerun `tests/debuginfo` tests if repr data has changed)
 - #161977 (update target-cpus test)
@rust-bors
rust-bors Bot merged commit 4712915 into rust-lang:main Aug 30, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Aug 30, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 30, 2026
Rollup merge of #161967 - Walnut356:stamp_repr_data, r=jieyouxu

Rerun `tests/debuginfo` tests if repr data has changed

Resolves #161138

This also includes the necessary checking for GDB's data even though none exists atm (#160377 will contain the first set). The extra handling doesn't hurt anything since we have to account for all the other tests that don't have repr data anyway.

In a followup, I can rename the `lldb_input` directory to something else (see: #160137 (comment)). Doing so requires me to touch a bunch of other places where the name is used, so it should probably be it's own PR. Making sure the tests rerun when the data changes is higher priority though atm.

r? @jieyouxu , @Kobzol

cc @Mark-Simulacrum
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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compiletest: audit what files we need to track for change tracking under lldb-repr scheme

3 participants