beads/.github/workflows/migration-test.yml
matt wilkie 530ffbc636
fix(ci): remove BEADS_TEST_MODE override and add gms_pure_go tag in migration-test (#3106) (#3108)
The workflow was setting BEADS_TEST_MODE=1 which disables Dolt auto-start,
breaking all server-era versions (v0.50-v0.62). Commit 4fc04597 intentionally
defaulted the harness to 0 but the workflow was not updated.

Also adds -tags gms_pure_go to the candidate build, consistent with
build_candidate() in binary.sh.

Fixes #3106

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 12:28:20 -07:00

76 lines
2 KiB
YAML

name: Migration Test Harness
on:
push:
tags: ['v*']
workflow_dispatch:
inputs:
versions:
description: 'Specific versions to test (space-separated), or empty for all eras'
required: false
default: ''
mode:
description: 'Test mode'
required: false
default: 'all'
type: choice
options:
- all
- direct-only
- stepping-only
jobs:
migration-test:
name: Migration fidelity
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libicu-dev jq sqlite3
- name: Install Dolt
run: |
curl -fsSL https://github.com/dolthub/dolt/releases/latest/download/install.sh | sudo bash
dolt version
- name: Configure Git
run: |
git config --global user.name "CI Bot"
git config --global user.email "ci@beads.test"
- name: Cache old binaries
uses: actions/cache@v5
with:
path: ~/.cache/beads-regression
key: migration-test-${{ runner.os }}-${{ runner.arch }}
- name: Build candidate
run: go build -tags gms_pure_go -o bd ./cmd/bd
- name: Run migration test harness
env:
CANDIDATE_BIN: ./bd
GIT_CONFIG_NOSYSTEM: "1"
run: |
ARGS=""
if [ "${{ github.event.inputs.mode }}" = "direct-only" ]; then
ARGS="--direct-only"
elif [ "${{ github.event.inputs.mode }}" = "stepping-only" ]; then
ARGS="--stepping-only"
fi
if [ -n "${{ github.event.inputs.versions }}" ]; then
./scripts/migration-test/run.sh ${{ github.event.inputs.versions }}
else
./scripts/migration-test/run.sh $ARGS
fi