Skip to content

Commit 4576f6c

Browse files
committed
ci: diagnose issue 974 verification failures
1 parent 906c28c commit 4576f6c

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Diagnose issue 974 verification failures
2+
3+
on:
4+
push:
5+
branches:
6+
- feat/issue-974-client-response-cache
7+
paths:
8+
- .github/workflows/diagnose-issue-974-failures.yml
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
diagnose:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 90
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: feat/issue-974-client-response-cache
21+
fetch-depth: 0
22+
23+
- uses: dtolnay/rust-toolchain@stable
24+
with:
25+
components: clippy
26+
27+
- run: rustup toolchain install nightly --component rustfmt
28+
29+
- name: Apply nightly formatting
30+
run: |
31+
cargo +nightly fmt --all
32+
cargo +nightly fmt --all -- --check
33+
git diff --check
34+
35+
- name: Capture failing commands
36+
shell: bash
37+
run: |
38+
set +e
39+
cargo check --workspace --all-targets --all-features > .issue974-workspace-check.log 2>&1
40+
echo "workspace_check_exit=$?" > .issue974-diagnosis.txt
41+
FEATURES=$(cargo metadata --no-deps --format-version 1 \
42+
| jq -r '[.packages[] | select(.name == "rmcp") | .features | keys[] \
43+
| select(startswith("__") | not) \
44+
| select(. != "local")] | join(",")')
45+
cargo test -p rmcp --features "$FEATURES" > .issue974-no-local.log 2>&1
46+
echo "no_local_exit=$?" >> .issue974-diagnosis.txt
47+
48+
- name: Commit formatting and diagnostics
49+
run: |
50+
rm .github/workflows/diagnose-issue-974-failures.yml
51+
git config user.name "github-actions[bot]"
52+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
53+
git add -A
54+
git commit -m "ci: capture issue 974 verification diagnostics"
55+
git push origin HEAD:feat/issue-974-client-response-cache

0 commit comments

Comments
 (0)