Skip to content

Commit e197684

Browse files
committed
ci: temporary cache diagnostics
1 parent bd4eafe commit e197684

2 files changed

Lines changed: 109 additions & 1 deletion

File tree

‎.github/workflows/rust-cache.yml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Rust Build Cache
77
# lockfile and toolchain. Release distributions never use these caches.
88
on:
99
push:
10-
branches: [main]
10+
branches: [main, wip/rust-build-cache]
1111
# A new stable toolchain changes the key without a push to main.
1212
schedule:
1313
- cron: "30 4 * * *"
@@ -51,6 +51,12 @@ jobs:
5151
- name: Build the extension as Verify does
5252
if: steps.lookup.outputs.cache-hit != 'true'
5353
run: uv sync --locked --all-groups --all-extras
54+
- name: Report the native build (temporary diagnostic)
55+
shell: bash
56+
run: |
57+
du -sh target target/* 2>/dev/null || true
58+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
59+
| xargs -0 sha256sum || true
5460
5561
checks:
5662
name: Linux extension and native checks
@@ -82,6 +88,12 @@ jobs:
8288
- name: Build the extension as Verify does
8389
if: steps.lookup.outputs.cache-hit != 'true'
8490
run: uv sync --locked --all-groups --all-extras
91+
- name: Report the native build (temporary diagnostic)
92+
shell: bash
93+
run: |
94+
du -sh target target/* 2>/dev/null || true
95+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
96+
| xargs -0 sha256sum || true
8597
- name: Build the native checks as make rust-check does
8698
if: steps.lookup.outputs.cache-hit != 'true'
8799
run: |
@@ -124,3 +136,9 @@ jobs:
124136
- name: Build the extension as Verify does
125137
if: steps.lookup.outputs.cache-hit != 'true'
126138
run: uv sync --locked --no-dev --python 3.12
139+
- name: Report the native build (temporary diagnostic)
140+
shell: bash
141+
run: |
142+
du -sh target target/* 2>/dev/null || true
143+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
144+
| xargs -0 sha256sum || true

‎.github/workflows/verify.yml‎

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ jobs:
279279
run: uv python install 3.12
280280
- name: Install dependencies
281281
run: uv sync --locked --all-groups --all-extras
282+
- name: Report the native build (temporary diagnostic)
283+
shell: bash
284+
run: |
285+
du -sh target target/* 2>/dev/null || true
286+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
287+
| xargs -0 sha256sum || true
282288
- name: Run static checks
283289
run: make check-ci
284290
- name: Run native checks
@@ -330,6 +336,12 @@ jobs:
330336
run: uv python install 3.12
331337
- name: Install dependencies
332338
run: uv sync --locked --all-groups --all-extras
339+
- name: Report the native build (temporary diagnostic)
340+
shell: bash
341+
run: |
342+
du -sh target target/* 2>/dev/null || true
343+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
344+
| xargs -0 sha256sum || true
333345
- name: Report runner CPU topology
334346
run: |
335347
echo "nproc=$(nproc)"
@@ -374,6 +386,12 @@ jobs:
374386
run: uv python install 3.12
375387
- name: Install dependencies
376388
run: uv sync --locked --all-groups --all-extras
389+
- name: Report the native build (temporary diagnostic)
390+
shell: bash
391+
run: |
392+
du -sh target target/* 2>/dev/null || true
393+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
394+
| xargs -0 sha256sum || true
377395
- name: Check fixtures, examples, generated seeds and the failure corpus against the goldens
378396
run: >-
379397
make compiler-differential
@@ -421,6 +439,12 @@ jobs:
421439
run: uv python install ${{ matrix.python }}
422440
- name: Install dependencies
423441
run: uv sync --locked --all-groups --all-extras --python ${{ matrix.python }}
442+
- name: Report the native build (temporary diagnostic)
443+
shell: bash
444+
run: |
445+
du -sh target target/* 2>/dev/null || true
446+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
447+
| xargs -0 sha256sum || true
424448
- name: Check fixtures, examples, the failure corpus and a few seeds against the goldens
425449
env:
426450
PYTHONUNBUFFERED: "1"
@@ -462,6 +486,12 @@ jobs:
462486
run: |
463487
uv sync --locked --no-dev --python 3.12
464488
uv pip install "pytest>=8.4.2" "pytest-xdist>=3.8.0"
489+
- name: Report the native build (temporary diagnostic)
490+
shell: bash
491+
run: |
492+
du -sh target target/* 2>/dev/null || true
493+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
494+
| xargs -0 sha256sum || true
465495
- name: Check the native YAML and TOML readers and the lineage fingerprint with this Python
466496
run: >-
467497
uv run --no-sync pytest
@@ -512,6 +542,12 @@ jobs:
512542
run: uv python install 3.12
513543
- name: Install dependencies
514544
run: uv sync --locked --all-groups --all-extras --python 3.12
545+
- name: Report the native build (temporary diagnostic)
546+
shell: bash
547+
run: |
548+
du -sh target target/* 2>/dev/null || true
549+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
550+
| xargs -0 sha256sum || true
515551
- name: Run formatter performance guards
516552
timeout-minutes: 10
517553
run: >-
@@ -547,6 +583,12 @@ jobs:
547583
run: uv python install 3.12
548584
- name: Install dependencies
549585
run: uv sync --locked --all-groups --all-extras
586+
- name: Report the native build (temporary diagnostic)
587+
shell: bash
588+
run: |
589+
du -sh target target/* 2>/dev/null || true
590+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
591+
| xargs -0 sha256sum || true
550592
- name: Run performance guards
551593
run: make test-e2e-performance
552594

@@ -580,6 +622,12 @@ jobs:
580622
run: uv python install 3.12
581623
- name: Install dependencies
582624
run: uv sync --locked --all-groups --all-extras
625+
- name: Report the native build (temporary diagnostic)
626+
shell: bash
627+
run: |
628+
du -sh target target/* 2>/dev/null || true
629+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
630+
| xargs -0 sha256sum || true
583631
- name: Run fresh-process compile guard under 4 GiB
584632
env:
585633
BENCHMARK_MODELS: ${{ matrix.models }}
@@ -632,6 +680,12 @@ jobs:
632680
run: uv python install 3.12
633681
- name: Install dependencies
634682
run: uv sync --locked --all-groups --all-extras
683+
- name: Report the native build (temporary diagnostic)
684+
shell: bash
685+
run: |
686+
du -sh target target/* 2>/dev/null || true
687+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
688+
| xargs -0 sha256sum || true
635689
- name: Run dense all-rules and delta edit-loop guards under 4 GiB
636690
env:
637691
BENCHMARK_MODELS: ${{ matrix.models }}
@@ -720,9 +774,21 @@ jobs:
720774
fi
721775
- name: Install head dependencies
722776
run: uv sync --locked --all-groups --all-extras
777+
- name: Report the native build (temporary diagnostic)
778+
shell: bash
779+
run: |
780+
du -sh target target/* 2>/dev/null || true
781+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
782+
| xargs -0 sha256sum || true
723783
- name: Install base dependencies
724784
working-directory: base
725785
run: uv sync --locked --all-groups --all-extras
786+
- name: Report the native build (temporary diagnostic)
787+
shell: bash
788+
run: |
789+
du -sh target target/* 2>/dev/null || true
790+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
791+
| xargs -0 sha256sum || true
726792
- name: Compare base and head phase CPU
727793
if: matrix.gate_phase
728794
env:
@@ -790,6 +856,12 @@ jobs:
790856
run: uv python install 3.12
791857
- name: Install dependencies
792858
run: uv sync --locked --all-groups --all-extras
859+
- name: Report the native build (temporary diagnostic)
860+
shell: bash
861+
run: |
862+
du -sh target target/* 2>/dev/null || true
863+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
864+
| xargs -0 sha256sum || true
793865
- name: Run fresh-process compile cache guard under 4 GiB
794866
timeout-minutes: 15
795867
env:
@@ -861,6 +933,12 @@ jobs:
861933
run: uv python install 3.12
862934
- name: Install dependencies
863935
run: uv sync --locked --all-groups --all-extras
936+
- name: Report the native build (temporary diagnostic)
937+
shell: bash
938+
run: |
939+
du -sh target target/* 2>/dev/null || true
940+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
941+
| xargs -0 sha256sum || true
864942
- name: Run required Rules performance profile
865943
timeout-minutes: 10
866944
run: >-
@@ -911,6 +989,12 @@ jobs:
911989
run: uv python install 3.12
912990
- name: Install dependencies
913991
run: uv sync --locked --all-groups --all-extras
992+
- name: Report the native build (temporary diagnostic)
993+
shell: bash
994+
run: |
995+
du -sh target target/* 2>/dev/null || true
996+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
997+
| xargs -0 sha256sum || true
914998
- name: Verify Docker
915999
run: docker info
9161000
- name: Run PostgreSQL tests
@@ -948,6 +1032,12 @@ jobs:
9481032
run: uv python install 3.12
9491033
- name: Install dependencies
9501034
run: uv sync --locked --all-groups --all-extras
1035+
- name: Report the native build (temporary diagnostic)
1036+
shell: bash
1037+
run: |
1038+
du -sh target target/* 2>/dev/null || true
1039+
find .venv src \( -name '_native*' -o -name sqb -o -name sqb.exe \) -type f -print0 \
1040+
| xargs -0 sha256sum || true
9511041
- name: Verify Docker
9521042
run: docker info
9531043
- name: Run ClickHouse tests

0 commit comments

Comments
 (0)