Skip to content

Commit 705d195

Browse files
committed
[testing] print CI kernel version, run under estrace, more debugging
1 parent ec6c55d commit 705d195

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ jobs:
146146
- name: ensure the channel matches the target branch
147147
run: src/ci/scripts/verify-channel.sh
148148

149+
- name: print kernel/libc versions
150+
if: runner.os == 'Linux'
151+
run: |
152+
uname -a
153+
149154
- name: collect CPU statistics
150155
run: src/ci/scripts/collect-cpu-stats.sh
151156

library/std/src/sys/fd/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ impl FileDesc {
680680
if let Some(err) = e.raw_os_error()
681681
&& (err == libc::EOPNOTSUPP || err == libc::ENOSYS) =>
682682
{
683+
eprintln!("pwritev2 NOAPPEND error: {err}");
683684
NOAPPEND_SUPPORTED.store(false, core::sync::atomic::Ordering::Relaxed);
684685
return None;
685686
}

src/ci/docker/host-x86_64/pr-check-2/Dockerfile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1818
xz-utils \
1919
libssl-dev \
2020
pkg-config \
21+
strace \
2122
mingw-w64 \
2223
&& rm -rf /var/lib/apt/lists/*
2324

@@ -27,16 +28,6 @@ COPY scripts/sccache.sh /scripts/
2728
RUN sh /scripts/sccache.sh
2829

2930
ENV SCRIPT \
30-
python3 ../x.py check && \
31-
python3 ../x.py clippy ci && \
32-
python3 ../x.py test --stage 1 core alloc std test proc_macro && \
33-
python3 ../x.py doc --stage 0 bootstrap && \
34-
# Build both public and internal documentation.
35-
RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 0 compiler && \
36-
RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 1 library && \
37-
mkdir -p /checkout/obj/staging/doc && \
38-
cp -r build/x86_64-unknown-linux-gnu/doc /checkout/obj/staging && \
39-
RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 1 library/test && \
40-
# The BOOTSTRAP_TRACING flag is added to verify whether the
41-
# bootstrap process compiles successfully with this flag enabled.
42-
BOOTSTRAP_TRACING=1 python3 ../x.py --help
31+
ldd --version && \
32+
python3 ../x.py test --stage 1 std -- "write_at" || \
33+
strace -ffe write,pwritev2,pwrite64,pwritev python3 ../x.py test --stage 1 std -- "write_at"

0 commit comments

Comments
 (0)