fabro/lib/apps/fabro-cli/tests
Amp b550b79db5
Stop rebuilding fabro-cli and fabro-server when the branch ref is packed
Both build scripts watch the current branch's loose ref file so the
embedded Git SHA follows new commits. A packed ref has no loose file, and
Cargo treats a missing rerun-if-changed path as always stale, so both
crates recompiled on every build. A fresh clone packs its refs, which is
the state of every Amp orb and CI checkout.

When the loose ref is missing, watch the nearest existing directory
instead (usually .git/refs/heads). The branch's next commit writes its
loose ref there, so the SHA still updates. While the ref stays packed, a
commit on another local branch reruns the two build scripts once.

A no-op `cargo nextest run --workspace --no-run` drops from 17.4s to 0.5s.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d1cb-9abf-76aa-be86-d84487f672e7
Co-authored-by: Scott Werner <scott@lithos.computer>
2026-11-13 00:03:37 +00:00
..
it Merge pull request #1093 from fabro-sh/codex/model-probe-report 2026-11-03 15:30:34 -05:00
build_git_metadata.rs Stop rebuilding fabro-cli and fabro-server when the branch ref is packed 2026-11-13 00:03:37 +00:00