Skip to content

tests/ui/io-checks fail locally on master #110794

Closed
@WaffleLapkin

Description

@WaffleLapkin

The tests/ui/io-checks/inaccessbile-temp-dir.rs test fails for me locally on the master branch (and was failing for a while now). I can of course ignore it, but it's annoying. tests/ui/io-checks/non-ice-error-on-worker-io-fail.rs also fails if run after/with inaccessbile-temp-dir.rs.

It looks like inaccessbile-temp-dir.rs successfully creates a temp directory even if it's parent does not exist:

output

:~/rust-b (master); git log -1 --oneline
91b61a4ad61 (HEAD -> master, upstream/master) Auto merge of #110389 - mazong1123:add-shortcut-for-grisu3, r=Mark-Simulacrum
:~/rust-b (master); ls /does-not-exist
ls: cannot access '/does-not-exist': No such file or directory
:~/rust-b (master) [2]; x t tests/ui/io-checks/inaccessbile-temp-dir.rs
Building bootstrap
    Finished dev [unoptimized] target(s) in 0.06s
Building stage0 library artifacts (aarch64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.18s
Building compiler artifacts (stage0 -> stage1, aarch64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.29s
Assembling stage1 compiler
Building stage1 library artifacts (aarch64-unknown-linux-gnu)
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Finished release [optimized + debuginfo] target(s) in 0.21s
Building stage0 tool compiletest (aarch64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.19s
Check compiletest suite=ui mode=ui (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu)

running 1 tests
F

failures:

---- [ui] tests/ui/io-checks/inaccessbile-temp-dir.rs stdout ----

error: ui test compiled successfully!
status: exit status: 0
command: "/home/gh-WaffleLapkin/rust-b/build/aarch64-unknown-linux-gnu/stage1/bin/rustc" "/home/gh-WaffleLapkin/rust-b/tests/ui/io-checks/inaccessbile-temp-dir.rs" "-Zthreads=1" "--sysroot" "/home/gh-WaffleLapkin/rust-b/build/aarch64-unknown-linux-gnu/stage1" "--target=aarch64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/home/gh-WaffleLapkin/rust-b/build/aarch64-unknown-linux-gnu/test/ui/io-checks/inaccessbile-temp-dir" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/home/gh-WaffleLapkin/rust-b/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/gh-WaffleLapkin/rust-b/build/aarch64-unknown-linux-gnu/test/ui/io-checks/inaccessbile-temp-dir/auxiliary" "-Z" "temps-dir=/does-not-exist/output"
stdout: none
stderr: none



failures:
    [ui] tests/ui/io-checks/inaccessbile-temp-dir.rs

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 14869 filtered out; finished in 60.70ms

Some tests failed in compiletest suite=ui mode=ui host=aarch64-unknown-linux-gnu target=aarch64-unknown-linux-gnu
Build completed unsuccessfully in 0:00:03
:~/rust-b (master) [1]; ls /does-not-exist
output
:~/rust-b (master); 

This causes the failure (as the test is expected to not compile) and also creates the directory, which non-ice-error-on-worker-io-fail.rs then observes and also fails.

This happens for me on the dev-desktop-eu-1.

cc @fee1-dead iirc you had the same problems
cc @cuviper you changed those tests at some point, so maybe you know something

Metadata

Metadata

Assignees

Labels

A-testsuiteArea: The testsuite used to check the correctness of rustc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions