Skip to content

ci: add bytecode comparison workflow#244

Open
drappi-ai wants to merge 2 commits intoseismicfrom
cdai__ci-bytecode-compare
Open

ci: add bytecode comparison workflow#244
drappi-ai wants to merge 2 commits intoseismicfrom
cdai__ci-bytecode-compare

Conversation

@drappi-ai
Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/bytecode-compare.yml that verifies deterministic bytecode compilation across CLI and standard-json compiler interfaces
  • Builds ssolc once (Debug, same config as test.yml), then runs prepare_report.py for each of the 4 presets with both --interface cli and --interface standard-json in a matrix strategy
  • Compares the CLI and standard-json reports for each preset using diff, failing the job if they differ
  • Uploads both reports as artifacts on failure for debugging

Test plan

  • Verify workflow triggers on PRs and pushes to seismic
  • Confirm build job completes and uploads the ssolc binary artifact
  • Confirm all 4 preset matrix jobs run and reports match
  • Verify failure artifacts are uploaded when reports differ

Adds a GitHub Actions workflow that builds ssolc and compares bytecode
output between CLI and standard-json interfaces across all 4 presets
(legacy-optimize, legacy-no-optimize, via-ir-optimize, via-ir-no-optimize)
to ensure deterministic compilation regardless of interface used.
@drappi-ai drappi-ai requested a review from cdrappi as a code owner March 12, 2026 12:58
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