Skip to content

Commit c666873

Browse files
committed
ci: add more debug info - compare registry src timestamps and fingerprint content
1 parent c4176da commit c666873

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/build-and-test.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ jobs:
3636
ls target/debug/.fingerprint/ 2>/dev/null | wc -l || echo "No fingerprints"
3737
echo "=== registry/src ==="
3838
ls ~/.cargo/registry/src/ 2>/dev/null | head -5 || echo "No registry src"
39+
echo "=== memchr source file timestamp ==="
40+
ls -la ~/.cargo/registry/src/*/memchr-*/src/lib.rs 2>/dev/null || echo "No memchr src"
3941
echo "=== sample dep fingerprint (memchr) ==="
4042
ls -la target/debug/.fingerprint/memchr-* 2>/dev/null || echo "No memchr fingerprint"
43+
echo "=== memchr fingerprint content ==="
44+
cat target/debug/.fingerprint/memchr-*/lib-memchr.json 2>/dev/null | head -5 || echo "No fingerprint json"
4145
shell: bash
4246
- name: Build workspace
4347
run: cargo test --workspace --all-features --no-run ${{ inputs.exclude-crates && format('--exclude {0}', inputs.exclude-crates) || '' }}
@@ -70,23 +74,20 @@ jobs:
7074
shared-key: "${{ inputs.os }}"
7175
save-if: false
7276
cache-all-crates: true
73-
- name: Debug cache state (after cache restore, before artifact)
77+
- name: Debug cache state (after cache restore)
7478
run: |
7579
echo "=== target/ directory ==="
7680
ls -la target/ 2>/dev/null | head -20 || echo "No target dir"
7781
echo "=== fingerprint count ==="
7882
ls target/debug/.fingerprint/ 2>/dev/null | wc -l || echo "No fingerprints"
7983
echo "=== registry/src ==="
8084
ls ~/.cargo/registry/src/ 2>/dev/null | head -5 || echo "No registry src"
85+
echo "=== memchr source file timestamp ==="
86+
ls -la ~/.cargo/registry/src/*/memchr-*/src/lib.rs 2>/dev/null || echo "No memchr src"
8187
echo "=== sample dep fingerprint (memchr) ==="
8288
ls -la target/debug/.fingerprint/memchr-* 2>/dev/null || echo "No memchr fingerprint"
83-
shell: bash
84-
- name: Debug state (after artifact download)
85-
run: |
86-
echo "=== fingerprint count ==="
87-
ls target/debug/.fingerprint/ | wc -l
88-
echo "=== sample dep fingerprint (memchr) ==="
89-
ls -la target/debug/.fingerprint/memchr-*
89+
echo "=== memchr fingerprint content ==="
90+
cat target/debug/.fingerprint/memchr-*/lib-memchr.json 2>/dev/null | head -5 || echo "No fingerprint json"
9091
shell: bash
9192
- uses: actions/setup-python@v5
9293
with:

0 commit comments

Comments
 (0)