Skip to content

[codex] Fix RowBinary benchmark workflow env#350

Merged
ruslandoga merged 1 commit into
masterfrom
ruslandoga-conductor/fix-rowbinary-benchmarks
May 18, 2026
Merged

[codex] Fix RowBinary benchmark workflow env#350
ruslandoga merged 1 commit into
masterfrom
ruslandoga-conductor/fix-rowbinary-benchmarks

Conversation

@ruslandoga
Copy link
Copy Markdown
Collaborator

Summary

Switch the RowBinary benchmark GitHub Actions job from MIX_ENV=bench to MIX_ENV=dev.

Why

The benchmark scripts depend on modules under dev/support, including Ch.Bench.RowBinaryBenchmarkData and GitHubActionBenchmarkFormatter. The project already compiles those support modules and includes Benchee in the dev environment. Running the workflow with MIX_ENV=bench skipped that setup and caused the encode/decode benchmark jobs to fail before running.

Validation

  • MIX_ENV=dev mix deps.get --only dev
  • MIX_ENV=dev mix compile --warnings-as-errors
  • MIX_ENV=dev mix run -e 'alias Ch.Bench.RowBinaryBenchmarkData; alias Ch.RowBinary; types = RowBinaryBenchmarkData.types(); rows = RowBinaryBenchmarkData.rows(10); encoded = RowBinary.encode_rows(rows, types) |> IO.iodata_to_binary(); true = RowBinary.decode_rows(encoded, types) == rows; true = Code.ensure_loaded?(GitHubActionBenchmarkFormatter); IO.puts("dev benchmark support OK")'

@ruslandoga ruslandoga marked this pull request as ready for review May 18, 2026 01:54
@ruslandoga ruslandoga merged commit b94b512 into master May 18, 2026
2 checks passed
@ruslandoga ruslandoga deleted the ruslandoga-conductor/fix-rowbinary-benchmarks branch May 18, 2026 01:55
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