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

Migrate pdb-buildinfo-cl-cmd and pgo-indirect-call-promotion run-make tests to rmake #128363

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

Oneirical
Copy link
Contributor

@Oneirical Oneirical commented Jul 29, 2024

Part of #121876 and the associated Google Summer of Code project.

Please try:

try-job: x86_64-msvc
try-job: x86_64-mingw
try-job: i686-msvc
try-job: i686-mingw
try-job: x86_64-gnu-llvm-17
try-job: aarch64-apple

@rustbot
Copy link
Collaborator

rustbot commented Jul 29, 2024

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs 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 Jul 29, 2024
@jieyouxu
Copy link
Member

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 30, 2024
… r=<try>

Migrate `pdb-buildinfo-cl-cmd` and `pgo-indirect-call-promotion` `run-make` tests to rmake

Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).

Please try:

try-job: x86_64-msvc
@bors
Copy link
Contributor

bors commented Jul 30, 2024

⌛ Trying commit c866959 with merge 0c4a7a4...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jul 30, 2024

💔 Test failed - checks-actions

@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-review Status: Awaiting review from the assignee but also interested parties. labels Jul 30, 2024
@rustbot
Copy link
Collaborator

rustbot commented Jul 30, 2024

This PR modifies tests/run-make/. If this PR is trying to port a Makefile
run-make test to use rmake.rs, please update the
run-make port tracking issue
so we can track our progress. You can either modify the tracking issue
directly, or you can comment on the tracking issue and link this PR.

cc @jieyouxu

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@Oneirical
Copy link
Contributor Author

Invalid UTF-8 error. Maybe this will fare better, but I have doubts.

assert_contains(String::from_utf8_lossy(&rfs::read("my_crate_name.pdb")), env_var("RUSTC"));

@rustbot ready

Please run try again, if you think this stands a shot.

@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 Jul 30, 2024
@jieyouxu
Copy link
Member

Invalid UTF-8 error. Maybe this will fare better, but I have doubts.

assert_contains(String::from_utf8_lossy(&rfs::read("my_crate_name.pdb")), env_var("RUSTC"));

Shouldn't we use something like assert_invalid_utf8_contains, because AFAIK pdb debug info files don't need to be UTF-8 (and it wouldn't make sense if it did).

@ChrisDenton
Copy link
Member

ChrisDenton commented Jul 30, 2024

Yeah. PDB is a binary format so it's highly unlikely to be valid UTF-8 and doing a lossy conversion seems like a lot of unnecessary work. Basically this should read the file as bytes (fs::read) then search within it using env_var("RUSTC").as_bytes() or some helper that does that.

EDIT: I think bstr would be ideal for this and is exported from run-make-support.

@jieyouxu
Copy link
Member

Yeah we could use something like bstr::ByteSlice::find_iter.

@rustbot author

@rustbot rustbot 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 Jul 30, 2024
@bors
Copy link
Contributor

bors commented Jul 31, 2024

☔ The latest upstream changes (presumably #128075) made this pull request unmergeable. Please resolve the merge conflicts.

@Oneirical Oneirical force-pushed the not-to-be-undertestimated branch 2 times, most recently from 446da3a to 76c5149 Compare July 31, 2024 15:29
@Oneirical
Copy link
Contributor Author

Okay, I gave the bstr implementation a try, but I am of little faith - I tried to run this locally without the .pdb extension on a Linux system and failed at the RUSTC assertion. It's possible that the pdb file on MSVC is different and that this is the whole point of the test, though.

@rustbot review

@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 Jul 31, 2024
@tgross35
Copy link
Contributor

tgross35 commented Aug 7, 2024

@Oneirical github still says there is a conflict in allowed_run_make_makefiles (maybe another one merged?)

@Oneirical
Copy link
Contributor Author

Oneirical commented Aug 7, 2024

@Oneirical github still says there is a conflict in allowed_run_make_makefiles (maybe another one merged?)

Yes, it was caused by #128757 which just got merged.

Edit: I rebased it, it showed some conflicts which I deleted, and force pushed, but it doesn't seem that anything is appearing in this PR webpage? Maybe it just needs time.

@Oneirical
Copy link
Contributor Author

This is very weird, my Github branch here is different from the files changed tab in this PR.

Note the run-make/pgo-gen-lto/Makefile.

@rustbot
Copy link
Collaborator

rustbot commented Aug 7, 2024

Some changes occurred in compiler/rustc_codegen_gcc

cc @antoyo, @GuillaumeGomez

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

HIR ty lowering was modified

cc @fmease

Some changes occurred in src/doc/rustc/src/platform-support

cc @Noratrieb

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

@rustbot rustbot added has-merge-commits PR has merge commits, merge with caution. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 7, 2024
@rustbot
Copy link
Collaborator

rustbot commented Aug 7, 2024

There are merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged.

You can start a rebase with the following commands:

$ # rebase
$ git pull --rebase https://github.com/rust-lang/rust.git master
$ git push --force-with-lease

The following commits are merge commits:

@Oneirical
Copy link
Contributor Author

???

@rustbot rustbot removed has-merge-commits PR has merge commits, merge with caution. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 7, 2024
@Oneirical
Copy link
Contributor Author

I'm not too sure what happened there, but it seems like everything is back the way it should, and that the ghost merge conflict is gone.

Please re-approve.

@tgross35
Copy link
Contributor

tgross35 commented Aug 7, 2024

Maybe you rebased onto the local master without pulling first? In any case, looks like it worked now.

@bors r=jieyouxu

@bors
Copy link
Contributor

bors commented Aug 7, 2024

📌 Commit 7d1a97f has been approved by jieyouxu

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 Aug 7, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 7, 2024
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#128363 (Migrate `pdb-buildinfo-cl-cmd` and `pgo-indirect-call-promotion` `run-make` tests to rmake)
 - rust-lang#128384 (Add tests to ensure MTE tags are preserved across FFI boundaries)
 - rust-lang#128636 (migrate `thumb-none-cortex-m` to rmake)
 - rust-lang#128696 (Migrate `staticlib-dylib-linkage` `run-make` test to rmake)

Failed merges:

 - rust-lang#128407 (Migrate `min-global-align` and `no-alloc-shim` `run-make` tests to rmake)
 - rust-lang#128639 (migrate `thumb-none-qemu` to rmake)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit a36bf74 into rust-lang:master Aug 8, 2024
6 checks passed
@rustbot rustbot added this to the 1.82.0 milestone Aug 8, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Aug 8, 2024
Rollup merge of rust-lang#128363 - Oneirical:not-to-be-undertestimated, r=jieyouxu

Migrate `pdb-buildinfo-cl-cmd` and `pgo-indirect-call-promotion` `run-make` tests to rmake

Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).

Please try:

try-job: x86_64-msvc
try-job: x86_64-mingw
try-job: i686-msvc
try-job: i686-mingw
try-job: x86_64-gnu-llvm-17
try-job: aarch64-apple
@bors
Copy link
Contributor

bors commented Aug 8, 2024

⌛ Testing commit 7d1a97f with merge 86e7875...

@tgross35
Copy link
Contributor

tgross35 commented Aug 8, 2024

This merged already, why did it get picked up?

@bors retry

@compiler-errors
Copy link
Member

@bors r-

@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 Aug 8, 2024
@tgross35
Copy link
Contributor

tgross35 commented Aug 8, 2024

Bors didn't correctly mark a couple PRs as merged, isn't r-ing merge conflicts (prints the message but didn't update the queue, #128407), and doesn't seem to be picking anything new up. I'm going to do a resync to see if it sorts things.

@bors treeclosed=100

edit: resync started
edit 2: guess the resync reopens the tree. Nothing else to do here then.

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-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

8 participants