Skip to content

tests: regen tests and add CI to catch stale generated code - #41

Merged
cce merged 2 commits into
masterfrom
regen-tests
Oct 9, 2026
Merged

cce merged 2 commits into
masterfrom
regen-tests

Conversation

@cce

@cce cce commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Because #39 was generated before #37 was merged, it contained old struct-from-array code in the generated test code. This fixes that and adds a make target & github action step to prevent it from happening again.

cce added 2 commits October 9, 2026 15:04
anydecl_gen.go was generated by #39 before #37 landed, so it still contained the struct-from-array decode fallback.
Add a make test-gen target that regenerates tests/ with the msgp built from the tree, and have the Build workflow run it and fail if the working tree is dirty afterwards.
@cce
cce merged commit 8c1a6aa into master Oct 9, 2026
2 checks passed
@cce
cce deleted the regen-tests branch October 9, 2026 19:06
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