Skip to content

Compare decompressed corpus contents in CI - #29

Merged
andrew merged 2 commits into
mainfrom
fix-go127-corpus-reproducibility
Aug 21, 2026
Merged

Compare decompressed corpus contents in CI#29
andrew merged 2 commits into
mainfrom
fix-go127-corpus-reproducibility

Conversation

@andrew

@andrew andrew commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Go 1.27 changed the exact output produced by compress/flate, so the stable jobs generate a different gzip stream even though the decoded corpus is unchanged. The latest main run fails at byte 13 for this reason.

Compare decompressed corpus bytes in the reproducibility job. Both gzip streams are still decoded first, so corrupt artifacts fail before comparison.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the corpus reproducibility CI job to avoid failing when Go’s compress/flate produces different (but semantically equivalent) gzip byte streams, by comparing the decompressed corpus bytes instead of the compressed artifact bytes.

Changes:

  • Replace raw gzip-bytes comparison (cmp on .gz) with a comparison of decompressed corpus contents.
  • Ensure both artifacts are decompressed before performing the byte-for-byte comparison of decoded output.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/ci.yml Outdated
@andrew
andrew merged commit 39dbaea into main Aug 21, 2026
9 checks passed
@andrew
andrew deleted the fix-go127-corpus-reproducibility branch August 21, 2026 08:34
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.

2 participants