Skip to content

Commit 4db5142

Browse files
ci: bisect the diagnostic workflow
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
1 parent 369697b commit 4db5142

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

‎.github/workflows/zz-probe-a.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ZZ probe a
2+
3+
on:
4+
push:
5+
branches: [arena/5b8efe75-echidna]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
diag:
12+
timeout-minutes: 25
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v7.0.1
17+
18+
- name: Install Rust toolchain
19+
uses: dtolnay/rust-toolchain@v1
20+
with:
21+
toolchain: stable
22+
components: clippy, rustfmt
23+
24+
- name: Say hi
25+
run: echo hi

‎.github/workflows/zz-probe-b.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ZZ probe b
2+
3+
on:
4+
push:
5+
branches: [arena/5b8efe75-echidna]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
diag:
13+
timeout-minutes: 25
14+
runs-on: ubuntu-latest
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
steps:
18+
- name: Install native schema compilers
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y capnproto protobuf-compiler pkg-config libssl-dev
22+
23+
- name: Run the gates
24+
run: |
25+
set +e
26+
{
27+
echo '=== cargo fmt ==='
28+
cargo fmt --all -- --check 2>&1 | head -n 150
29+
} > /tmp/diag.txt
30+
cat /tmp/diag.txt
31+
32+
- name: Comment the diagnostics
33+
if: always()
34+
run: |
35+
{
36+
echo '### Diagnostics (temporary)'
37+
echo
38+
echo '```'
39+
head -c 50000 /tmp/diag.txt
40+
echo
41+
echo '```'
42+
} > /tmp/body.md

0 commit comments

Comments
 (0)