Skip to content

chore(brillig_gen): Brillig artifact display for unit testing #10165

Merged
vezenovm merged 9 commits intogd/brillig_gen_greenlight3from
mv/brillig-artifact-snaps
Oct 10, 2025
Merged

chore(brillig_gen): Brillig artifact display for unit testing #10165
vezenovm merged 9 commits intogd/brillig_gen_greenlight3from
mv/brillig-artifact-snaps

Conversation

@vezenovm
Copy link
Contributor

Description

Problem*

Resolves #10130 (review)

Summary*

I implemented the BrilligArtifact display mentioned in #10130 (review). I also migrated over the Brillig gen binary unit tests to show the benefits in checking the display of a single Brillig artifact. The binary unit tests are now much more self contained and less reliant on changes elsewhere in the compiler except for the code gen of the instruction in the test itself.

The remaining tests in #10130 should be switched over to use the BrilligArtifact display. We should then have separate tests with comments like in brillig_add specifically for testing entry point linking.

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Execution Time'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 80e96ff Previous: b5ece4a Ratio
sha512-100-bytes 0.071 s 0.059 s 1.20

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Test Suite Duration'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: a59adf9 Previous: b5ece4a Ratio
test_report_zkpassport_noir-ecdsa_ 3 s 2 s 1.50

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Compilation Time'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 45430f1 Previous: b5ece4a Ratio
rollup-tx-base-private 23.78 s 18.4 s 1.29

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

@vezenovm vezenovm merged commit b5a5ebb into gd/brillig_gen_greenlight3 Oct 10, 2025
22 checks passed
@vezenovm vezenovm deleted the mv/brillig-artifact-snaps branch October 10, 2025 19:08
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