Closed
Description
CI has failed a few times with the following error on x86_64-apple-2:
---- [rustdoc] tests/rustdoc/primitive/no_std.rs stdout ----
thread '[rustdoc] tests/rustdoc/primitive/no_std.rs' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', src/tools/compiletest/src/runtest.rs:130:43
or:
---- [rustdoc] src/test/rustdoc/primitive/primitive-generic-impl.rs stdout ----
thread '[rustdoc] src/test/rustdoc/primitive/primitive-generic-impl.rs' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', src/tools/compiletest/src/runtest.rs:125:43
Some tests failed in compiletest suite=rustdoc mode=rustdoc host=x86_64-apple-darwin target=x86_64-apple-darwin
I don't have any immediate theories as to the cause. It is conspicuous that it almost always happens on the same test.
The particular line in question is a call to the standard create_dir_all
:
rust/src/tools/compiletest/src/runtest.rs
Line 130 in 13b7aa4
I don't see anything particularly unusual in the implementation: std::fs::create_dir_all
. The impl does a fairly standard libc call to mkdir
. The macOS man page doesn't mention EINVAL, and I'm not sure under what circumstances that could happen with mkdir
.
- 2022-05-26: macros: introduce
fluent_messages
macro #97327 (comment) - 2022-12-05: Rollup of 8 pull requests #105308 (comment)
- 2022-12-07: Start emitting labels even if their pointed to file is not available locally #104449 (comment)
- 2022-12-09: Rollup of 8 pull requests #105448 (comment)
- 2022-12-14: Rollup of 6 pull requests #105649 (comment)
- 2022-12-15: Use impl's def id when calculating type to specify in UFCS #104334 (comment)
- 2022-12-16: always use
anonymize_bound_vars
#105717 (comment) - 2022-12-26: Remove unreasonable help message for auto trait #105817 (comment)
- 2022-12-26: Suggest
Pin::as_mut
when encountering borrow error #106095 (comment) - 2023-01-18: Do not filter substs in
remap_generic_params_to_declaration_params
. #106503 (comment) - 2023-01-23: Compute generator saved locals on MIR #101692 (comment)
- 2023-02-01: [beta] Cargo 1.68.0 backports #107504 (comment)
- 2023-03-13: remove obsolete
givens
from regionck #107376 (comment) - 2023-03-20: Revert "Auto merge of #107224 - nikic:llvm-16, r=cuviper" #109326 (comment)