Commit graph

12 commits

Author SHA1 Message Date
Ben Madore
3b39ce577a
docs: update user-facing URLs from steveyegge/beads to gastownhall/beads
Co-authored-by: Ben Madore <823868+madorb@users.noreply.github.com>
2026-04-24 08:17:42 -07:00
matt wilkie
2ade22e84c
chore(build): codify the gms_pure_go build-tag policy (GH#3303)
Converges the sprinkle of -tags=gms_pure_go fixes into a single source plus a source-time CI guard. .buildflags is now canonical (exports GOFLAGS, CGO_ENABLED), scripts source it, scripts/check-build-tags.sh runs in CI to catch bare go commands. Fixes 5 latent bugs the guard caught (regression.yml, Makefile bench/test-regression, devcontainer, embedded-test-shard fallback, smoke-test scripts).
2026-04-16 12:28:11 -07:00
matt wilkie
a3923edf41 fix: narrow cross-version smoke CI triggers and warn on high skip rate
Remove push-to-main and PR triggers from cross-version smoke test
workflow — 30-45 min runtime is too costly for every push. Keep tag
pushes (releases/RCs) and manual dispatch.

Add a visible warning when >80% of tested versions are skipped, printed
to stderr and GitHub step summary. Prevents silent "all passed" when
nearly nothing actually ran.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 23:17:34 -07:00
Dmitry Verkhoturov
05734b2979
fix: commit test data and use --from-jsonl for JSONL recovery in smoke test
Pre-embeddeddolt versions only populate issues.jsonl via git hooks on
commit. Without committing, the JSONL stays empty and recovery is
impossible.

- Add git commit after creating test data with the old binary
- Use bd init --from-jsonl when candidate suggests bd init and JSONL
  has data, enabling recovery from SQLite/server-mode eras
- Fix bash 3.x compatibility (${array[-1]} not supported on macOS)

This turns v0.50.x from FAIL to PASS (recovered via init --from-jsonl).
2026-04-05 03:28:51 +02:00
Dmitry Verkhoturov
6686e1d69e
fix: remove set -e to prevent dolt server crashes killing the script
The dolt-server-era binaries (v0.57-v0.62) start background processes
that cause set -e to trigger on non-zero exits deep in subshells.
set -uo pipefail is sufficient for error detection.

Also kill auto-started candidate dolt servers after verify, and use
pkill by workspace path for thorough cleanup.
2026-04-04 17:47:39 +00:00
Dmitry Verkhoturov
c99cf4b32a
add bd init fallback when candidate suggests it
When direct read fails and the candidate tells the user to
"run bd init", follow that advice and retest. This is fair play
since the user would see and follow the hint.

Catches additional bugs:
- dash in prefix breaks embedded Dolt database naming
- auto-import from issues.jsonl doesn't fire after bd init
2026-04-04 16:54:25 +00:00
Dmitry Verkhoturov
5e6e5ede96
remove migration fallback — candidate doesn't suggest it to users
The candidate says "no beads database found" without mentioning
init --from-jsonl or any migration path. Testing a path that no
user would discover makes the test dishonest.
2026-04-04 16:50:55 +00:00
Dmitry Verkhoturov
149938ac0d
add migration fallback and prefix with special chars
When direct read fails but old version exported issues.jsonl,
retry with candidate's init --from-jsonl. Reports "passed (after
migration)" to distinguish from direct compatibility.

Also use prefix with underscore and dash (sm-o_ke) to catch
special character issues in issue IDs.
2026-04-04 16:48:35 +00:00
Dmitry Verkhoturov
65f75215e0
fix: use bd daemon/dolt stop for reliable server cleanup
Instead of raw kill, use the old binary's own stop commands
(bd daemon stop, bd dolt stop) for clean shutdown. Falls back
to pid files only if the commands fail.
2026-04-04 16:46:19 +00:00
Dmitry Verkhoturov
23bfd058e3
fix: parse create output for versions without --silent flag
Versions before ~v0.30.0 don't have --silent. Fall back to parsing
the "Created issue: <id>" line from verbose output.
2026-04-04 16:28:12 +00:00
Dmitry Verkhoturov
f7007967cb
fix: proper failure reporting for cross-version smoke test
- run old binaries from workspace cwd (not --db flag, breaks old versions)
- install dolt in CI for server-mode versions (v0.56-v0.62)
- fix pipefail handling that silently killed the script mid-run
- add results table output and GitHub Actions step summary
- report real failures instead of silently skipping broken upgrades
2026-04-04 16:05:40 +00:00
Dmitry Verkhoturov
48f611ab65
add cross-version smoke test for upgrade compatibility (GH#2968)
Tests that data created with old bd versions (epic, issues, dependencies)
is readable after upgrading to the candidate binary. Covers the last 30
release tags by default, with --from flag for broader sweeps.
2026-04-04 15:23:24 +00:00