Repository navigation
Rollup of 7 pull requests - #165286
Rollup of 7 pull requests#165286
Conversation
If a busy CI network or a Quirky EMUlator is used, then the OS default connection timeout may not be enough in order to successfully reach the remote device in time, leading to flaky test failures. As a first attempt to address the slight problem, this therefore proposes to extend the already-existing timeout configuration to the remaining performed connections. This way, all connections are effectively configured by the tool's dedicated environment variable or its default. In practice, it seems to have successfully fixed the issues we had. Signed-off-by: Paul Mabileau <[email protected]>
Verbose suggestions are much easier to read for people, at the cost of marginal additional vertical real estate in some cases.
```
error[E0423]: cannot find value `SomeStruct` in crate `remapped_dep`
--> $DIR/remap-path-prefix-reverse.rs:15:27
|
LL | let _ = remapped_dep::SomeStruct;
| ^^^^^^^^^^
|
::: remapped-aux/remapped_dep.rs:4:1
|
LL | pub struct SomeStruct {} // This line should be show as part of the error.
| --------------------- `remapped_dep::SomeStruct` defined here
|
= note: a struct named `remapped_dep::SomeStruct` exists in another namespace
help: use struct literal syntax instead
|
LL | let _ = remapped_dep::SomeStruct {};
| ++
```
instead of
```
error[E0423]: cannot find value `SomeStruct` in crate `remapped_dep`
--> $DIR/remap-path-prefix-reverse.rs:15:27
|
LL | let _ = remapped_dep::SomeStruct;
| --------------^^^^^^^^^^
| |
| help: use struct literal syntax instead: `remapped_dep::SomeStruct {}`
|
::: remapped-aux/remapped_dep.rs:4:1
|
LL | pub struct SomeStruct {} // This line should be show as part of the error.
| --------------------- `remapped_dep::SomeStruct` defined here
|
= note: a struct named `remapped_dep::SomeStruct` exists in another namespace
```
When encountering a tuple struct that can't be constructed because of private fields, do not suggest local binding typo, as the only valid case would be a local closure but during resolve we can't confirm that is the case.
In production, the only use of read_file() is a hardcoded read of `/proc/self/auxv`. Allocating to add a NUL to the path was a bit wasteful. Use a CStr literal for the path instead. Use CStr::display in error paths.
Previously, creating an issue with this template would produce an issue with no labels.
…, r=Mark-Simulacrum lib: specialize vec extend_with specializes `Vec::extend_with` for `T: TrivialClone`, which in turn affects `Vec::resize`, `alloc::vec::from_elem`, and the `vec![]` macro. perf: https://rust.godbolt.org/z/8P5M3fP9e LLM's were not utilized for the making of this PR or the description.
…out, r=Mark-Simulacrum Chore(remote-test-client): Generalize the timeout to all connections If a busy CI network or a Quirky EMUlator is used, then the OS default connection timeout may not be enough in order to successfully reach the remote device in time, leading to flaky test failures. As a first attempt to address the slight problem, this therefore proposes to extend the already-existing timeout configuration to the remaining performed connections. This way, all connections are effectively configured by the tool's dedicated environment variable or its default. In practice, it seems to have successfully fixed the issues we had.
…rkingjubilee std_detect(linux): Use static CStr over allocating for terminator In production, the only use of read_file() is a hardcoded read of `/proc/self/auxv`. Allocating to add a NUL to the path was a bit wasteful. Use a CStr literal for the path instead. Use CStr::display in error paths.
Refactor box downcasting methods We are doing this too often: ```rust let (raw, alloc) = Box::into_raw_with_allocator(this); Box::from_raw_in(raw.cast(), alloc) ``` So I factored it out into its own function. Also the downcasting methods for `dyn Any/Error + AutoTraits` are all doing the same thing, and can be implemented using the same generic function. The code transmuting `Box<dyn Error>` back to `Box<dyn Error + AutoTraits>` was also super dubious for no good reason (other than convenience)
…65, r=joboet Improve mem::take wording Closes rust-lang#165065 Updated to use “switch” instead of “replace”.
[small] Tweak suggestions in struct literal resolve errors When encountering a tuple struct that can't be constructed because of private fields, do not suggest local binding typo, as the only valid case would be a local closure but during resolve we can't confirm that is the case. Fix rust-lang#66067. Make incorrect struct literal syntax suggestion verbose. Verbose suggestions are much easier to read for people, at the cost of marginal additional vertical real estate in some cases. ``` error[E0423]: cannot find value `SomeStruct` in crate `remapped_dep` --> $DIR/remap-path-prefix-reverse.rs:15:27 | LL | let _ = remapped_dep::SomeStruct; | ^^^^^^^^^^ | ::: remapped-aux/remapped_dep.rs:4:1 | LL | pub struct SomeStruct {} // This line should be show as part of the error. | --------------------- `remapped_dep::SomeStruct` defined here | = note: a struct named `remapped_dep::SomeStruct` exists in another namespace help: use struct literal syntax instead | LL | let _ = remapped_dep::SomeStruct {}; | ++ ``` instead of ``` error[E0423]: cannot find value `SomeStruct` in crate `remapped_dep` --> $DIR/remap-path-prefix-reverse.rs:15:27 | LL | let _ = remapped_dep::SomeStruct; | --------------^^^^^^^^^^ | | | help: use struct literal syntax instead: `remapped_dep::SomeStruct {}` | ::: remapped-aux/remapped_dep.rs:4:1 | LL | pub struct SomeStruct {} // This line should be show as part of the error. | --------------------- `remapped_dep::SomeStruct` defined here | = note: a struct named `remapped_dep::SomeStruct` exists in another namespace ```
…ls, r=Kivooeo Fix FCW issue template labels Previously, creating an issue with this template would produce an issue with no labels.
This comment has been minimized.
This comment has been minimized.
Rollup of 7 pull requests try-job: dist-various-1 try-job: test-various try-job: test-x86_64-gnu-aux try-job: test-x86_64-msvc-1 try-job: test-aarch64-apple-1 try-job: test-aarch64-apple-2 try-job: test-x86_64-mingw-1 try-job: test-i686-msvc try-job: test-armhf-gnu try-job: test-x86_64-gnu-llvm-22-3 try-job: test-aarch64-msvc-2
|
💔 Test for bbd00cc failed: CI. Failed job:
|
|
Trying commonly failed jobs |
Rollup of 7 pull requests try-job: dist-various-1 try-job: test-various try-job: test-x86_64-gnu-aux try-job: test-x86_64-msvc-1 try-job: test-aarch64-apple-1 try-job: test-x86_64-mingw-1 try-job: test-i686-msvc try-job: test-armhf-gnu try-job: test-x86_64-gnu-llvm-22-3 try-job: test-aarch64-msvc-2
This comment has been minimized.
This comment has been minimized.
|
A job failed! Check out the build log: (web) (plain enhanced) (plain) Click to see the possible cause of the failure (guessed by this bot) |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 3b5aab2 (parent) -> 3e92e1a (this PR) Test differencesShow 592 test diffsStage 1
Stage 2
Additionally, 586 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 3e92e1a2d20b991ef23a6c6064c34d57ee8c98d3 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (3e92e1a): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -2.2%, secondary 0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.1%, secondary 3.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 487.913s -> 488.523s (0.13%) |
|
📌 Perf builds for each rolled up PR:
parent commit: 3b5aab2cea In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: |
|
@rust-timer triage all |
Running triage with 11 benchmarksTriage only executes the benchmarks on rollup members, that were changed significantly on the rollup.
#163757 140dcff lib: specialize vec extend_withInstruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary -2.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -1.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
#164262 ecfacd5 Chore(remote-test-client): Generalize the timeout to all connectionsThis perf run didn't have relevant results for the `instruction count` metric.Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. #165245 0e5dd4f std_detect(linux): Use static CStr over allocating for terminatorThis perf run didn't have relevant results for the `instruction count` metric.Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. #164359 84fa45a Refactor box downcasting methodsThis perf run didn't have relevant results for the `instruction count` metric.Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (secondary -2.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
#165086 f7c9ccb Improve mem::take wordingThis perf run didn't have relevant results for the `instruction count` metric.Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. #165088 76cd467 [small] Tweak suggestions in struct literal resolve errorsThis perf run didn't have relevant results for the `instruction count` metric.Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (secondary -2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. #165276 4e210b2 Fix FCW issue template labelsThis perf run didn't have relevant results for the `instruction count` metric.Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (secondary -2.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. |
Successful merges:
r? @ghost
Create a similar rollup