Skip to content

./x.py test panics #113963

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

Closed
RalfJung opened this issue Jul 22, 2023 · 9 comments · Fixed by #113965
Closed

./x.py test panics #113963

RalfJung opened this issue Jul 22, 2023 · 9 comments · Fixed by #113965
Assignees
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@RalfJung
Copy link
Member

$ ./x.py test
Building bootstrap
    Finished dev [unoptimized] target(s) in 0.18s
thread 'main' panicked at 'fs::read_dir(builder.src.join(&relative_path).join("redirects")) failed with No such file or directory (os error 2)', doc.rs:228:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:00:01

This might not be a valid request (I have to tell it what to test), but surely it shouldn't just result in such an obscure panic.

Cc @rust-lang/bootstrap

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 22, 2023
@chenyukang
Copy link
Member

you don't have dir src/doc/book/redirects?

@onur-ozkan
Copy link
Member

it doesn't exists until fetching the submodule

@RalfJung
Copy link
Member Author

Seems like I don't have that submodule checked out; I don't work on the book so it's not needed (and I keep the checked-out submodules to a minimum to avoid having to update them all the time).

@chenyukang
Copy link
Member

chenyukang commented Jul 22, 2023

I reproduced it in local, without

submodules = false

in config.toml and don't update submodule manually, x.py test will fail like this.

@onur-ozkan
Copy link
Member

I can fix it tomorrow, feel free to work on it if you want to fix it earlier.

@chenyukang chenyukang self-assigned this Jul 22, 2023
@chenyukang
Copy link
Member

@ozkanonur by the way, do you know why we use those panic! for compiletest here?

@chenyukang chenyukang added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jul 22, 2023
@onur-ozkan
Copy link
Member

@ozkanonur by the way, do you know why we use those panic! for compiletest here?

Not particularly, I am not so familiar with the compiletest code. Probably we panic there so the compiletest runner process can handle(being able to understand compiletest was failed) that.

@onur-ozkan
Copy link
Member

onur-ozkan commented Jul 22, 2023

The fix shouldn't make any changes on the compiletest side. We just need to avoid using submodules(if doesn't exists) instead of assuming that they exist.

@chenyukang
Copy link
Member

Yes, that's another issue, I just met it today.

@bors bors closed this as completed in d9d80e2 Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants