Skip to content

ci cleanup: rustdoc-gui-test now installs browser-ui-test #143851

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lolbinarycat
Copy link
Contributor

this removes the need for --unsafe-perm in the Dockerfile.

cc @GuillaumeGomez @Kobzol

@rustbot
Copy link
Collaborator

rustbot commented Jul 12, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
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-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) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jul 12, 2025
@rust-log-analyzer

This comment has been minimized.

@lolbinarycat lolbinarycat force-pushed the bootstrap-node_modules branch from c070840 to 5bc18df Compare July 12, 2025 18:50
@rust-log-analyzer

This comment has been minimized.

@lolbinarycat lolbinarycat force-pushed the bootstrap-node_modules branch from 5bc18df to 4254f64 Compare July 12, 2025 20:10
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thanks, I think it's much nicer to make sure that we have a known and exact environment, than trying to guess and compare what comes from the outside world.

@@ -100,6 +100,5 @@ COPY scripts/shared.sh /scripts/
# The `browser-ui-test.version` file is also used by bootstrap to emit warnings in case
# the local version of the package is different than the one used by the CI.
ENV SCRIPT /tmp/checktools.sh ../x.py && \
Copy link
Member

Choose a reason for hiding this comment

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

You can now delete the comment above, it's outdated. The version file itself can also be deleted, and rustdoc-gui-test can just hardcode the version for now, later we'll switch it to package.json.

Btw the same outdated comment is also in x86_64-gnu-miri/Dockerfile, could you please also delete it from there? Thanks.

@Kobzol
Copy link
Member

Kobzol commented Jul 12, 2025

r? @Kobzol

@rustbot rustbot assigned Kobzol and unassigned Mark-Simulacrum Jul 12, 2025
@lolbinarycat lolbinarycat force-pushed the bootstrap-node_modules branch 2 times, most recently from 8a1869c to 4028b6d Compare July 12, 2025 21:04
@rust-log-analyzer

This comment has been minimized.

this removes the need for --unsafe-perm in the Dockerfile.
@lolbinarycat lolbinarycat force-pushed the bootstrap-node_modules branch from 4028b6d to 2f62ee4 Compare July 12, 2025 21:19
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
   Compiling rustdoc-gui-test v0.1.0 (/checkout/src/tools/rustdoc-gui-test)
error: unused import: `fs`
 --> src/tools/rustdoc-gui-test/src/main.rs:4:16
  |
4 | use std::{env, fs, io};
  |                ^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`

---

error[E0308]: mismatched types
  --> src/tools/rustdoc-gui-test/src/main.rs:14:8
   |
14 |     Ok("0.21.1")
   |     -- ^^^^^^^^- help: try using a conversion method: `.to_string()`
   |     |  |
   |     |  expected `String`, found `&str`
   |     arguments to this enum variant are incorrect
   |
help: the type constructed contains `&'static str` due to the type of the argument passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc 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