Skip to content

test: backward-compatibility regression test suite#74

Open
marcus wants to merge 1 commit intomainfrom
backward-compat/checks
Open

test: backward-compatibility regression test suite#74
marcus wants to merge 1 commit intomainfrom
backward-compat/checks

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Mar 23, 2026

Summary

  • Adds automated backward-compatibility regression tests across 5 test files covering schema migrations, config loading, event taxonomy, schema drift detection, and CLI command stability
  • Migration chain tests verify continuous version sequence (v2–v29), idempotent re-runs, intermediate version forward-migration, and presence of all expected tables/columns
  • Event taxonomy tests guard against canonical set shrinkage and verify all legacy entity/action aliases still resolve correctly
  • CLI snapshot tests ensure expected commands, aliases, global flags (--work-dir), and --format flags are never accidentally removed

Test plan

  • All new tests pass: go test ./internal/db/... ./internal/config/... ./internal/events/... ./test/compat/...
  • Existing tests in modified packages still pass
  • No code changes to production files — test-only PR

Nightshift-Task: backward-compat
Nightshift-Ref: https://github.com/marcus/nightshift

🤖 Generated with Claude Code


Automated by nightshift

Add automated tests covering:
- Schema migration chain: verify continuous version sequence, idempotent
  re-runs, all expected tables/columns exist, intermediate version
  migration forward, and built-in board presence
- Schema drift detection: validate DDL constants match migration output,
  all tables have primary keys, SchemaVersion matches highest migration
- Config loading compat: missing file, empty JSON, partial fields,
  unknown extra fields (forward compat), round-trip, defaults
- Event taxonomy stability: canonical set count regression guards,
  legacy entity/action alias mapping, case-insensitive normalization,
  unknown type rejection, valid combination checks
- CLI command snapshot: expected commands, global flags (--work-dir),
  aliases, --format flag on show/list

Nightshift-Task: backward-compat
Nightshift-Ref: https://github.com/marcus/nightshift

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant