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

tests: Port jobserver-error to rmake.rs #135461

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Jan 13, 2025

Part of #121876.

This PR ports tests/run-make/jobserver-error to rmake.rs, and is basically #128789 slightly adjusted.

The complexity involved here is mostly how to get /dev/null/ piping to fd 3 working with std Command, whereas with a shell this is much easier (as is evident with the Makefile version).

Supersedes #128789.
This PR is co-authored with @Oneirical and @coolreader18.

try-job: aarch64-gnu
try-job: i686-gnu-1
try-job: x86_64-gnu-debug
try-job: x86_64-gnu-llvm-18-1

@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs A-tidy Area: The tidy tool 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. labels Jan 13, 2025
@jieyouxu

This comment was marked as off-topic.

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 13, 2025
…=<try>

tests: Port `jobserver-error.rs` to rmake.rs

Part of rust-lang#121876.

This PR ports `jobserver-error.rs` to rmake.rs, and is basically rust-lang#128789 slightly adjusted. Namely, `set_aux_fd` is made `unsafe`, alongside some doc updates.

The complexity involved here is mostly how to get `/dev/null/` piping to fd 3 working with std `Command`, whereas with a shell this is much easier (as is evident with the `Makefile` version).

Supersedes rust-lang#128789.
This PR is co-authored with `@Oneirical` and `@coolreader18.`

r? `@ghost`

try-job: aarch64-gnu
try-job: i686-gnu-1
try-job: x86_64-gnu-debug
try-job: x86_64-gnu-llvm-18-1
@bors

This comment was marked as off-topic.

@rust-log-analyzer

This comment was marked as off-topic.

@jieyouxu jieyouxu 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 Jan 13, 2025
@jieyouxu jieyouxu changed the title tests: Port jobserver-error.rs to rmake.rs tests: Port jobserver-error to rmake.rs Jan 13, 2025
@jieyouxu
Copy link
Member Author

@bors try

@bors
Copy link
Contributor

bors commented Jan 14, 2025

⌛ Trying commit aaddf77 with merge 163ddb1...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 14, 2025
…=<try>

tests: Port `jobserver-error` to rmake.rs

Part of rust-lang#121876.

This PR ports `tests/run-make/jobserver-error` to rmake.rs, and is basically rust-lang#128789 slightly adjusted. Namely, `set_aux_fd` is made `unsafe`, alongside some doc updates.

The complexity involved here is mostly how to get `/dev/null/` piping to fd 3 working with std `Command`, whereas with a shell this is much easier (as is evident with the `Makefile` version).

Supersedes rust-lang#128789.
This PR is co-authored with `@Oneirical` and `@coolreader18.`

r? `@ghost`

try-job: aarch64-gnu
try-job: i686-gnu-1
try-job: x86_64-gnu-debug
try-job: x86_64-gnu-llvm-18-1
@bors
Copy link
Contributor

bors commented Jan 14, 2025

☀️ Try build successful - checks-actions
Build commit: 163ddb1 (163ddb169c67425e679c412d12576fae3f34df92)

@jieyouxu jieyouxu 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 Jan 14, 2025
@jieyouxu jieyouxu marked this pull request as ready for review January 14, 2025 03:06
@jieyouxu jieyouxu closed this Jan 14, 2025
@jieyouxu jieyouxu reopened this Jan 14, 2025
@jieyouxu
Copy link
Member Author

r? compiler

tests/run-make/jobserver-error/rmake.rs Outdated Show resolved Hide resolved
src/tools/run-make-support/src/command.rs Outdated Show resolved Hide resolved
@Noratrieb Noratrieb assigned Noratrieb and unassigned chenyukang Jan 19, 2025
@jieyouxu jieyouxu removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 20, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 21, 2025
…=Noratrieb

tests: Port `jobserver-error` to rmake.rs

Part of rust-lang#121876.

This PR ports `tests/run-make/jobserver-error` to rmake.rs, and is basically rust-lang#128789 slightly adjusted. Namely, `set_aux_fd` is made `unsafe`, alongside some doc updates.

The complexity involved here is mostly how to get `/dev/null/` piping to fd 3 working with std `Command`, whereas with a shell this is much easier (as is evident with the `Makefile` version).

Supersedes rust-lang#128789.
This PR is co-authored with `@Oneirical` and `@coolreader18.`

try-job: aarch64-gnu
try-job: i686-gnu-1
try-job: x86_64-gnu-debug
try-job: x86_64-gnu-llvm-18-1
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jan 21, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 21, 2025
@Noratrieb
Copy link
Member

hiii bors

@jieyouxu jieyouxu 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 Jan 22, 2025
@jieyouxu jieyouxu force-pushed the migrate-jobserver-errors branch from b595764 to 8f00fbe Compare January 22, 2025 02:35
@jieyouxu
Copy link
Member Author

Rescoped the import to the cfg(unix)'d code path.
@bors r=@Noratrieb

@bors
Copy link
Contributor

bors commented Jan 22, 2025

📌 Commit 8f00fbe has been approved by Noratrieb

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 22, 2025
@bors
Copy link
Contributor

bors commented Jan 22, 2025

🔒 Merge conflict

This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again.

How do I rebase?

Assuming self is your fork and upstream is this repository, you can resolve the conflict following these steps:

  1. git checkout migrate-jobserver-errors (switch to your branch)
  2. git fetch upstream master (retrieve the latest master)
  3. git rebase upstream/master -p (rebase on top of it)
  4. Follow the on-screen instruction to resolve conflicts (check git status if you got lost).
  5. git push self migrate-jobserver-errors --force-with-lease (update this PR)

You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial.

Please avoid the "Resolve conflicts" button on GitHub. It uses git merge instead of git rebase which makes the PR commit history more difficult to read.

Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Cargo.lock conflict is handled during merge and rebase. This is normal, and you should still perform step 5 to update this PR.

Error message
Removing tests/run-make/jobserver-error/Makefile
Auto-merging src/tools/tidy/src/allowed_run_make_makefiles.txt
CONFLICT (content): Merge conflict in src/tools/tidy/src/allowed_run_make_makefiles.txt
Automatic merge failed; fix conflicts and then commit the result.

@bors bors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 22, 2025
jieyouxu and others added 2 commits January 22, 2025 12:26
@jieyouxu jieyouxu force-pushed the migrate-jobserver-errors branch from 8f00fbe to 2022920 Compare January 22, 2025 04:27
@jieyouxu
Copy link
Member Author

Merge conflicted due to allow-list.
@bors r=Noratrieb

@bors
Copy link
Contributor

bors commented Jan 22, 2025

📌 Commit 2022920 has been approved by Noratrieb

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 22, 2025
@bors
Copy link
Contributor

bors commented Jan 23, 2025

⌛ Testing commit 2022920 with merge cf577f3...

@bors
Copy link
Contributor

bors commented Jan 23, 2025

☀️ Test successful - checks-actions
Approved by: Noratrieb
Pushing cf577f3 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 23, 2025
@bors bors merged commit cf577f3 into rust-lang:master Jan 23, 2025
7 checks passed
@rustbot rustbot added this to the 1.86.0 milestone Jan 23, 2025
@jieyouxu jieyouxu deleted the migrate-jobserver-errors branch January 23, 2025 08:42
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (cf577f3): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (secondary -1.8%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.8% [-4.1%, -0.6%] 3
All ❌✅ (primary) - - 0

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 776.393s -> 776.757s (0.05%)
Artifact size: 325.90 MiB -> 325.99 MiB (0.03%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-run-make Area: port run-make Makefiles to rmake.rs A-tidy Area: The tidy tool merged-by-bors This PR was explicitly merged by bors. 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) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants