~bigbes/sr-ht-compare · parade

main · last commit 17 hours ago · skqvdbd8

← Back to the parade

sr-ht-compare-jdq Untrack the compiled CSS/JS bundle that make css deletes in sourcehut-compare Lined Up

status: open P1 bug
bd update sr-ht-compare-jdq --claim bd close sr-ht-compare-jdq
Created bybigbes
Ownerbigbes@gmail.com
Created2026-08-17T21:36:10Z
Updated2026-08-17T21:36:10Z
Description
What is wrong: sourcehut-compare/web/static/main.min.79713f25.css (142 KB) and web/static/bundle.a62c2e63.js (10 MB) are both tracked in git, while sourcehut-compare/.gitignore already has the patterns /web/static/main.css and /web/static/main.min.*.css (with a NOTE that removal from the index 'waits on the first CI run'). A tracked file is unaffected by a later-added ignore pattern, and 'make css' opens with 'rm -f web/static/main.css $(CSS)' — it deletes a tracked file.

Why it matters: every developer who runs 'make css' gets a dirty working tree, and Go stamps every binary built afterwards vcs.modified=true, which is exactly what check-version exists to catch — and compare is one of the four repos that has no check-version target (see D12/sr-ht-compare issue for that). Separately, install-files copies web/static/*, so a stale tracked CSS would be staged if make css is skipped.

Correct variant: the seven sibling services, all of which gitignore the compiled stylesheet and cannot hit this class of bug.

Fix: git rm --cached web/static/main.min.79713f25.css (the ignore entry already exists). Separately decide whether the 10 MB esbuild bundle from frontend/ (web/static/bundle.a62c2e63.js) should be built in CI like the CSS rather than committed, and gitignore it too if so.

Audit: D09 (cross-repo audit, 2026-08-17)

Depends on

No outgoing dependencies.

Depended on by

Nothing depends on this issue.

No comments.

  • bigbes created the issue · 2026-08-18T00:36:10Z
Stored rows — what this pane was built from, as read
issues 1 row
id sr-ht-compare-jdq
content_hash cea9b707c3ee54120545e344272afc44380b8c68685835f8c7aba5ec03e59276
title Untrack the compiled CSS/JS bundle that make css deletes in sourcehut-compare
description What is wrong: sourcehut-compare/web/static/main.min.79713f25.css (142 KB) and web/static/bundle.a62c2e63.js (10 MB) are both tracked in git, while sourcehut-compare/.gitignore already has the patterns /web/static/main.css and /web/static/main.min.*.css (with a NOTE that removal from the index 'waits on the first CI run'). A tracked file is unaffected by a later-added ignore pattern, and 'make css' opens with 'rm -f web/static/main.css $(CSS)' — it deletes a tracked file. Why it matters: every developer who runs 'make css' gets a dirty working tree, and Go stamps every binary built afterwards vcs.modified=true, which is exactly what check-version exists to catch — and compare is one of the four repos that has no check-version target (see D12/sr-ht-compare issue for that). Separately, install-files copies web/static/*, so a stale tracked CSS would be staged if make css is skipped. Correct variant: the seven sibling services, all of which gitignore the compiled stylesheet and cannot hit this class of bug. Fix: git rm --cached web/static/main.min.79713f25.css (the ignore entry already exists). Separately decide whether the 10 MB esbuild bundle from frontend/ (web/static/bundle.a62c2e63.js) should be built in CI like the CSS rather than committed, and gitignore it too if so. Audit: D09 (cross-repo audit, 2026-08-17)
design
acceptance_criteria
notes
status open
priority 1
issue_type bug
assignee NULL
estimated_minutes NULL
created_at 2026-08-17T21:36:10Z
created_by bigbes
owner bigbes@gmail.com
updated_at 2026-08-17T21:36:10Z
closed_at NULL
closed_by_session
external_ref NULL
spec_id
compaction_level 0
compacted_at NULL
compacted_at_commit NULL
original_size NULL
sender
ephemeral 0
wisp_type
pinned 0
is_template 0
mol_type
work_type
source_system
metadata �{}
source_repo
close_reason
event_kind
actor
target
payload
await_type
await_id
timeout_ns 0
waiters
hook_bead
role_bead
agent_state
last_activity NULL
role_type
rig
due_at NULL
defer_until NULL
no_history 0
started_at NULL
is_blocked 0
events 1 row
id 01a011a7-46a9-7981-8869-a9be0d5fea54
issue_id sr-ht-compare-jdq
event_type created
actor bigbes
old_value
new_value
comment NULL
created_at 2026-08-18T00:36:10Z