Skip to content

test(solx-dev): run OpenZeppelin on Hardhat 3 with the slang compiler - #804

Merged
vladimirradosavljevic merged 2 commits into
split_deploy_and_runtime_modulesfrom
slang-hardhat3-openzeppelin
Oct 13, 2026
Merged

vladimirradosavljevic merged 2 commits into
split_deploy_and_runtime_modulesfrom
slang-hardhat3-openzeppelin

Conversation

@nebasuke

@nebasuke nebasuke commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude summary

The Hardhat integration tests run upstream OpenZeppelin on Hardhat 3 with the slang compiler, and the hardhat-v3 example project compiles with slang again.

@nebasuke nebasuke added the ci:integration Trigger integration tests workflow on PR label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Coverage Summary

Crate Line Coverage Function Coverage
solx 🟢 83.8% 🔴 20.0%
solx-benchmark-converter 🔴 0.0% 🔴 0.0%
solx-codegen-evm 🟡 56.6% 🟡 51.5%
solx-compiler-downloader 🔴 0.0% 🔴 0.0%
solx-core 🔴 45.7% 🟡 54.8%
solx-dev 🔴 3.1% 🔴 4.0%
solx-mlir 🔴 49.7% 🔴 47.9%
solx-slang 🔴 28.5% 🔴 34.5%
solx-solc-test-adapter 🔴 1.7% 🔴 2.1%
solx-standard-json 🔴 40.7% 🔴 45.2%
solx-tester 🔴 36.6% 🔴 34.6%
solx-utils 🔴 36.4% 🔴 39.3%
Total 🔴 13.1% 🔴 16.5%

Codecov Report | HTML Report | Workflow Run

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

🧪 Integration tests — standard · PR vs main

⚠️ Output changed — 188 of 26,276 size comparisons differ (-6,948 B total); 139 of 36,126 solx-tester gas comparisons differ. If this PR is meant to be output-preserving, investigate before merging.
✅ No new failures — Foundry's 25 / Hardhat's 10 failures already present on main.
⚠️ Suite step failed — solx-tester exited nonzero after its report was written; results may be incomplete.
⚠️ No baseline — solx-tester: 54 runs (0 failures) have no main counterpart; their failures are not compared.

Suite New failures Size Δ Gas Δ Report
solx-tester ✅ 0 ⚠️ 188 of 26,276 (-6,948 B) ⚠️ 139 of 36,126 solx-tester-report.xlsx ↓
Foundry · 25 proj ✅ 0 (25 pre-existing) ⚪ not collected ⚪ not collected foundry-report.xlsx ↓
Hardhat · 3 proj ✅ 0 (10 pre-existing) ⚪ not collected ⚪ not collected hardhat-report.xlsx ↓

solx-tester — largest size changes:

  • tests/solidity/simple/algorithm/arrays/standard_functions_high_order.sol::complex [EVMLA M3B3 0.8.37, deploy] 4,696 → 4,508 B (-4.0%)
  • tests/solidity/simple/algorithm/arrays/standard_functions_high_order.sol::complex [EVMLA M3B3 0.8.37, runtime] 4,597 → 4,409 B (-4.1%)
  • tests/solidity/simple/algorithm/arrays/standard_functions_high_order.sol::filterDivide [EVMLA M3B3 0.8.37, deploy] 4,696 → 4,508 B (-4.0%)
  • tests/solidity/simple/algorithm/arrays/standard_functions_high_order.sol::filterDivide [EVMLA M3B3 0.8.37, runtime] 4,597 → 4,409 B (-4.1%)
  • tests/solidity/simple/algorithm/arrays/standard_functions_high_order.sol::filterGreater [EVMLA M3B3 0.8.37, deploy] 4,696 → 4,508 B (-4.0%)
  • +183 more — see solx-tester-report.xlsx

solx-tester — largest gas changes:

  • tests/solidity/simple/algorithm/arrays/standard_functions_high_order.sol::complex[complex:1] [EVMLA MzB3 0.8.37] 19,044 → 20,154 (+5.8%)
  • tests/solidity/simple/internal_function_pointers/sort/bubble.sol::descending[main:1] [EVMLA MzB3 0.8.37] 13,791 → 14,847 (+7.7%)
  • tests/solidity/simple/internal_function_pointers/sort/bubble.sol::ascending[main:1] [EVMLA MzB3 0.8.37] 11,934 → 11,094 (-7.0%)
  • tests/solidity/simple/algorithm/arrays/standard_functions_high_order.sol::filterDivide[filterDivide:1] [EVMLA MzB3 0.8.37] 6,221 → 6,996 (+12.5%)
  • tests/solidity/simple/algorithm/arrays/standard_functions_high_order.sol::filterDivide[filterDivide:1] [EVMLA M3B3 0.8.37] 6,282 → 6,903 (+9.9%)
  • +134 more — see solx-tester-report.xlsx

Compile time — wall-clock tripwire, positive = PR slower (authoritative Δ in ci:compile-benchmark)

Suite legacy (agg / median)
Hardhat · 3 proj -42.8% / -4.6%

Project outliers (≥15%): openzeppelin legacy -49.1%

@nebasuke
nebasuke force-pushed the slang-hardhat3-openzeppelin branch from f16c0a5 to 8204c48 Compare October 13, 2026 09:45
@nebasuke
nebasuke changed the base branch from main to split_deploy_and_runtime_modules October 13, 2026 09:45
@nebasuke
nebasuke added this pull request to stack #839 October 13, 2026 09:45
@nebasuke
nebasuke marked this pull request as ready for review October 13, 2026 09:46
@nebasuke
nebasuke requested a review from a team October 13, 2026 09:46
@nebasuke
nebasuke force-pushed the slang-hardhat3-openzeppelin branch from 8204c48 to 682a7bb Compare October 13, 2026 10:27

@hedgar2017 hedgar2017 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@nebasuke
nebasuke force-pushed the slang-hardhat3-openzeppelin branch from 682a7bb to a335b9c Compare October 13, 2026 10:55
Upstream OpenZeppelin moved to Hardhat 3, and the Hardhat 2 fork the
integration job pinned cannot run under slang: hardhat-exposed reads the
solc AST, and EDR refuses to start on slang's. On Hardhat 3, OZ's
exposed task always takes its AST from the default profile, so keeping
solc there and compiling with slang in a second profile solves the
first; replacing slang's ASTs in the build info with empty solc source
units solves the second until EDR reads slang's debug symbols.

Hardhat 3's own `path` option rejects the slang binary's --version
output, so both Hardhat 3 projects go through hardhat-slang-solx.
@nebasuke
nebasuke force-pushed the slang-hardhat3-openzeppelin branch from a335b9c to 7014270 Compare October 13, 2026 13:28
@nebasuke nebasuke added feat New feature or request and removed ci:integration Trigger integration tests workflow on PR labels Oct 13, 2026
@vladimirradosavljevic
vladimirradosavljevic added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit c052dc8 Oct 13, 2026
64 of 66 checks passed
@vladimirradosavljevic
vladimirradosavljevic deleted the slang-hardhat3-openzeppelin branch October 13, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants