Skip to content

Commit 777c463

Browse files
committed
[testing] print CI kernel version, run under estrace, more debugging
1 parent 738b1d5 commit 777c463

3 files changed

Lines changed: 10 additions & 18 deletions

File tree

.github/workflows/ci.yml

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

157+
- name: print kernel/libc versions
158+
if: runner.os == 'Linux'
159+
run: |
160+
uname -a
161+
157162
- name: collect CPU statistics
158163
run: src/ci/scripts/collect-cpu-stats.sh
159164

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ impl FileDesc {
702702
if let Some(err) = e.raw_os_error()
703703
&& (err == libc::EOPNOTSUPP || err == libc::ENOSYS) =>
704704
{
705+
eprintln!("pwritev2 NOAPPEND error: {err}");
705706
NOAPPEND_SUPPORTED.store(false, core::sync::atomic::Ordering::Relaxed);
706707
return None;
707708
}

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

Lines changed: 4 additions & 18 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

@@ -31,21 +32,6 @@ COPY scripts/sccache.sh /scripts/
3132
RUN sh /scripts/sccache.sh
3233

3334
ENV SCRIPT \
34-
python3 ../x.py check && \
35-
python3 ../x.py clippy ci --stage 2 && \
36-
python3 ../x.py test --stage 1 core alloc std test proc_macro && \
37-
# Elsewhere, we run all tests for the host. A number of codegen tests are sensitive to the target pointer
38-
# width, for example because they mention a usize. wasm32-wasip1 in test-various, so using it here can't make
39-
# PR CI more strict than full CI.
40-
python3 ../x.py test --stage 1 tests/codegen-llvm --target wasm32-wasip1 && \
41-
python3 ../x.py test --stage 1 src/tools/compiletest && \
42-
python3 ../x.py doc bootstrap --stage 1 && \
43-
# Build both public and internal documentation.
44-
RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc compiler --stage 1 && \
45-
RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc library --stage 1 && \
46-
mkdir -p /checkout/obj/staging/doc && \
47-
cp -r build/x86_64-unknown-linux-gnu/doc /checkout/obj/staging && \
48-
RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc library/test --stage 1 && \
49-
# The BOOTSTRAP_TRACING flag is added to verify whether the
50-
# bootstrap process compiles successfully with this flag enabled.
51-
BOOTSTRAP_TRACING=1 python3 ../x.py --help
35+
ldd --version && \
36+
python3 ../x.py test --stage 1 std -- "write_at" || \
37+
strace -ffe write,pwritev2,pwrite64,pwritev python3 ../x.py test --stage 1 std -- "write_at"

0 commit comments

Comments
 (0)