Skip to content

Commit 40d11f4

Browse files
author
Kevin Arthur
committed
fix(ci): remove Git LFS dependency — budget exhausted at 1.12 GB
All CI failures (CI, Build + Package, CI Debug Report) trace to the repository exceeding GitHub's 1 GiB free LFS storage budget: models-source/ddcolor.onnx 980 MB models-source/font-classify.onnx 64 MB models-source/ddcolor-tiny.onnx pointer (unsynced) public/models/*.onnx ~12 MB (5 bundled) Total: ~1.12 GB LFS objects > free-tier 1 GiB limit. Root cause: LFS copies of models-source/ exist solely so that publish-model-assets.mjs can hash them before uploading to the varve-models-v1 release. The 980 MB ddcolor.onnx alone nearly exhausts the budget; every CI matrix cell that checks out with lfs:true burns bandwidth, and the storage overage blocks ALL fetches. Fix: - 5 small bundled models → plain git blobs (renormalized, ~12 MB) - 3 large source models → untrack from git; hosted on varve-models-v1 release (publish-model-assets.mjs already uploads ddcolor pair) - .gitattributes: remove filter=lfs line for *.onnx - .gitignore: add models-source/ to prevent accidental re-add - All 28 lfs:true lines removed from 9 workflow files - validate-workflows.mjs: new validateRepoInvariants() guard (blocks .gitattributes filter=lfs + detects LFS pointers in tracked .onnx files — prevents the c7073d1-class regression) - validate-workflows.test.mjs: LFS regression guard test - ci.yml: packaging validation WIP incorporated (AUR, Flatpak, metadata) Website Deploy failure was a separate issue: secret-scan false positive on JSON-LD structured data — already fixed by 713b0e8 (currently on origin/master; next website run will pass). Repos remain green against validate-workflows (10/11 workflows), pin audit (pre-existing re-sign-release-feed.yml gaps only), shell tests (21/21), ci-debug tests, ci-health tests, release pipeline tests, and emoji audit.
1 parent 3404d90 commit 40d11f4

19 files changed

Lines changed: 17134 additions & 36 deletions

‎.gitattributes‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@
4545
*.rpm binary
4646
*.dmg binary
4747

48-
# AI models are Git LFS objects. `-text` keeps Git from ever applying EOL
49-
# conversion, which would corrupt the pointer files.
50-
*.onnx filter=lfs diff=lfs merge=lfs -text
48+
# ONNX models are committed directly (small bundled models) or downloaded
49+
# at runtime (large models from release assets / upstream URLs). No Git
50+
# LFS dependency — the free-tier budget was exhausted by the 980 MB
51+
# ddcolor source, and Release assets have no bandwidth quota.
5152

5253
# Generated lockfiles: collapsed in diffs and excluded from language stats,
5354
# without being hidden from review.

‎.github/workflows/build.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
2626
with:
27-
lfs: true
2827
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
2928
with:
3029
toolchain: 1.97.1
@@ -87,7 +86,6 @@ jobs:
8786
steps:
8887
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
8988
with:
90-
lfs: true
9189

9290
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
9391
with:

‎.github/workflows/ci-debug.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
- name: Checkout
3434
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
3535
with:
36-
lfs: true
3736

3837
# Probe first: when every failure in the triggering run is
3938
# infrastructure (billing block, runner never acquired, job stuck in

‎.github/workflows/ci-smoke.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
3535
with:
36-
lfs: true
3736

3837
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
3938
with:

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
4242
with:
43-
lfs: true
4443
fetch-depth: 0
4544
- id: lanes
4645
run: |
@@ -143,7 +142,6 @@ jobs:
143142
steps:
144143
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
145144
with:
146-
lfs: true
147145
- name: Install Rust toolchain
148146
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
149147
with:
@@ -245,7 +243,6 @@ jobs:
245243
steps:
246244
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
247245
with:
248-
lfs: true
249246
# The workflow security policy audit parses YAML structurally (js-yaml,
250247
# a devDependency), so this job now installs once. The install is small
251248
# and cached; the job stays cheap.
@@ -272,11 +269,17 @@ jobs:
272269
- name: Verify health classifier
273270
run: node scripts/ci-health.test.mjs
274271
- name: Verify release version consistency
275-
# Version drift across the five manifests (package.json x2,
272+
# Version drift across all manifests (package.json x2,
276273
# tauri.conf.json, workspace + desktop Cargo.toml) must never land on
277274
# master silently — release.yml only catches it at tag time, when a
278275
# fix means another commit + tag. Cheap and dependency-free.
279276
run: node scripts/release/version.mjs verify
277+
- name: Validate AUR PKGBUILD syntax
278+
run: bash -n packaging/aur/varve-desktop-bin/PKGBUILD
279+
- name: Validate Flatpak manifest YAML
280+
run: node scripts/packaging/validate-flatpak-manifest.mjs
281+
- name: Validate Linux package metadata consistency
282+
run: node scripts/release/linux-package-metadata.test.mjs
280283
- name: Verify product truth (cross-source contradiction check)
281284
# Detects contradictions between canonical sources (version, platforms,
282285
# signing, document extension, changelog) and user-facing claims.
@@ -318,7 +321,6 @@ jobs:
318321
steps:
319322
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
320323
with:
321-
lfs: true
322324
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
323325
with:
324326
version: 11.9.0
@@ -374,7 +376,6 @@ jobs:
374376
steps:
375377
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
376378
with:
377-
lfs: true
378379
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
379380
with:
380381
version: 11.9.0
@@ -417,7 +418,6 @@ jobs:
417418
steps:
418419
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
419420
with:
420-
lfs: true
421421
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
422422
with:
423423
version: 11.9.0
@@ -495,7 +495,6 @@ jobs:
495495
steps:
496496
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
497497
with:
498-
lfs: true
499498
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
500499
with:
501500
version: 11.9.0

‎.github/workflows/e2e-keyboard-nav.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ jobs:
7474
steps:
7575
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
7676
with:
77-
lfs: true
7877
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
7978
with:
8079
version: 11.9.0
@@ -146,7 +145,6 @@ jobs:
146145
steps:
147146
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
148147
with:
149-
lfs: true
150148
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
151149
with:
152150
version: 11.9.0

‎.github/workflows/model-validation.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
steps:
4747
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
4848
with:
49-
lfs: true
5049

5150
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
5251
with:
@@ -82,7 +81,6 @@ jobs:
8281
steps:
8382
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
8483
with:
85-
lfs: true
8684

8785
- name: Setup Python
8886
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
@@ -111,7 +109,6 @@ jobs:
111109
steps:
112110
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
113111
with:
114-
lfs: true
115112

116113
- name: Validate corpus manifest
117114
run: |

‎.github/workflows/quantize.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
4242
with:
43-
lfs: true
4443

4544
- name: Validate manifest JSON schema
4645
run: node scripts/models/validate-manifest.mjs
@@ -107,7 +106,6 @@ jobs:
107106
steps:
108107
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
109108
with:
110-
lfs: true
111109

112110
- name: Setup Python
113111
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
@@ -148,7 +146,6 @@ jobs:
148146
steps:
149147
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
150148
with:
151-
lfs: true
152149

153150
- name: Setup Python
154151
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
@@ -266,7 +263,6 @@ jobs:
266263
steps:
267264
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
268265
with:
269-
lfs: true
270266

271267
- name: Setup Python
272268
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ jobs:
9696
steps:
9797
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
9898
with:
99-
lfs: true
10099
ref: ${{ inputs.tag || github.ref }}
101100
# Full history: the provenance gate below runs merge-base against
102101
# the default branch, which needs real ancestry (a depth-1 clone
@@ -189,7 +188,6 @@ jobs:
189188
steps:
190189
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
191190
with:
192-
lfs: true
193191
ref: ${{ needs.preflight.outputs.tag }}
194192

195193
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
@@ -432,7 +430,6 @@ jobs:
432430
# ddcolor-tiny 220 MB, font-classify 64 MB) are downloaded at runtime
433431
# and never touched here. The pointer guard below still fails the
434432
# build with instructions rather than silently shipping a pointer.
435-
lfs: true
436433
ref: ${{ needs.preflight.outputs.tag }}
437434

438435
- name: Verify no bundled asset is an LFS pointer
@@ -869,7 +866,6 @@ jobs:
869866
steps:
870867
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
871868
with:
872-
lfs: true
873869
ref: ${{ needs.preflight.outputs.tag }}
874870

875871
- name: Download Linux artifacts
@@ -972,7 +968,6 @@ jobs:
972968
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
973969
if: matrix.enabled
974970
with:
975-
lfs: true
976971
ref: ${{ needs.preflight.outputs.tag }}
977972

978973
- name: Download platform artifacts
@@ -1102,7 +1097,6 @@ jobs:
11021097
steps:
11031098
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
11041099
with:
1105-
lfs: true
11061100
ref: ${{ needs.preflight.outputs.tag }}
11071101

11081102
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
@@ -1343,7 +1337,6 @@ jobs:
13431337
steps:
13441338
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
13451339
with:
1346-
lfs: true
13471340
ref: ${{ needs.preflight.outputs.tag }}
13481341

13491342
- name: Publish the draft

‎.github/workflows/visual-baselines.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
3434
with:
35-
lfs: true
3635
ref: master
3736

3837
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86

0 commit comments

Comments
 (0)