Skip to content

Conversation

Enselic
Copy link
Member

@Enselic Enselic commented Sep 15, 2025

@rustbot rustbot added A-CI Area: Our Github Actions CI 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-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Sep 15, 2025
@Enselic Enselic added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 15, 2025
@rust-log-analyzer

This comment has been minimized.

@Enselic Enselic changed the title ci: x86_64-gnu-tools: Add ad-hoc --test-args regression test ci: x86_64-gnu-tools: Add --test-args regression test Sep 16, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@Enselic
Copy link
Member Author

Enselic commented Sep 16, 2025

The test run was without the fix. So the test catches the bug, because the test fails without the fix. From the log:

2025-09-16T07:00:10.3144326Z ERROR: --test-args functionality is broken
2025-09-16T07:00:10.3144887Z + echo ERROR: --test-args functionality is broken
2025-09-16T07:00:10.3145317Z + exit 1

I will now rebase on master which has the fix. So if the test then passes, we know the test works as intended.

@rustbot
Copy link
Collaborator

rustbot commented Sep 16, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@Enselic
Copy link
Member Author

Enselic commented Sep 17, 2025

The test passed after rebasing on the fix. So the test works and would have caught the bug (and will prevent regressions).

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 17, 2025
# Any test can be used. We arbitrarily chose `tests/ui/lint/unused/unused-result.rs`.
python3 "$X_PY" test tests/ui --test-args tests/ui/lint/unused/unused-result.rs --force-rerun |
grep --fixed-strings 'test result: ok. 1 passed; 0 failed; 0 ignored;' ||
( echo "ERROR: --test-args functionality is broken" && exit 1 )
Copy link
Member

Choose a reason for hiding this comment

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

Hm, I was thinking of more of a unit test directly in compiletest, but I think this seems OK too.

@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Sep 21, 2025

📌 Commit 91cf067 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors 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 Sep 21, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 21, 2025
…ulacrum

ci: x86_64-gnu-tools: Add `--test-args` regression test

See rust-lang#146601 (comment)

r? `@Mark-Simulacrum`
bors added a commit that referenced this pull request Sep 21, 2025
Rollup of 4 pull requests

Successful merges:

 - #143857 (Port #[macro_export] to the new attribute parsing infrastructure)
 - #146486 (Improve `core::sync::atomic` coverage)
 - #146606 (ci: x86_64-gnu-tools: Add `--test-args` regression test)
 - #146639 (std: merge definitions of `StdioPipes`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit af315d3 into rust-lang:master Sep 21, 2025
10 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Sep 21, 2025
rust-timer added a commit that referenced this pull request Sep 21, 2025
Rollup merge of #146606 - Enselic:test-test-args, r=Mark-Simulacrum

ci: x86_64-gnu-tools: Add `--test-args` regression test

See #146601 (comment)

r? ``@Mark-Simulacrum``
Muscraft pushed a commit to Muscraft/rust that referenced this pull request Sep 24, 2025
…ulacrum

ci: x86_64-gnu-tools: Add `--test-args` regression test

See rust-lang#146601 (comment)

r? ``@Mark-Simulacrum``
Muscraft pushed a commit to Muscraft/rust that referenced this pull request Sep 24, 2025
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#143857 (Port #[macro_export] to the new attribute parsing infrastructure)
 - rust-lang#146486 (Improve `core::sync::atomic` coverage)
 - rust-lang#146606 (ci: x86_64-gnu-tools: Add `--test-args` regression test)
 - rust-lang#146639 (std: merge definitions of `StdioPipes`)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Area: Our Github Actions CI 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-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants