Skip to content

conformance: read solc's compilation outside its resources - #414

Merged
gnidan merged 1 commit into
mainfrom
conformance-solc-compilation
Nov 16, 2026
Merged

gnidan merged 1 commit into
mainfrom
conformance-solc-compilation

Conversation

@gnidan

@gnidan gnidan commented Nov 16, 2026

Copy link
Copy Markdown
Member

The solc + soldb conformance job has failed on main since the scheduled run on 2026-11-16, and on every PR since.

solc stopped repeating the compilation record inside ethdebug.resources in argotorg/solidity@44f8371cdc ("ethdebug: Separate compilation from resources", argotorg/solidity#17179, merged 2026-11-12). The compilation now comes only from the ethdebug.compilation output, which the harness already requests. The last green run built solc at argotorg/solidity@bc8337dd and the first red one at argotorg/solidity@41d9e65b; this is the only ethdebug output change in that range. SolDB (v0.4.0) and solc-bench did not change between the two runs, and nothing in packages/conformance changed on our side.

solc's output still conforms: compilation is optional in ethdebug/format/info/resources. The harness assumed it was there:

  • EthdebugArtifact.resources.compilation was required, and validateStaticConformance read resources.compilation.sources without a guard, which threw in the solc tests.
  • writeSoldbDebugDir wrote solc's resources as they are. SolDB reads source contents only from the compilation of the resources file in its debug directory (EthdebugInfo::from_artifacts in crates/soldb-ethdebug/src/metadata.rs), and otherwise from disk next to the artifacts. The debug directory holds no source files, so SolDB found no sources: info resources --json printed nothing and the breakpoint on Counter.sol:8 was never set.

This PR makes resources.compilation optional in the harness, and makes writeSoldbDebugDir put the separate compilation into the resources file it writes. A resources object with a compilation is valid, so SolDB still gets conformant input. The SolDB resources test now compares SolDB's output with the file the harness wrote. A new offline test covers the merge.

No tracking issue: neither tool diverges from the format. SolDB accepts both valid shapes of the resources object; only our harness built its input from the wrong one.

solc no longer repeats the compilation inside ethdebug.resources
(argotorg/solidity#17179); it emits it only as ethdebug.compilation.
The compilation is optional in ethdebug/format/info/resources, so the
harness now treats it as optional, and it puts the separate
compilation into the resources file it writes for SolDB, which reads
source contents only from there.
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-16 22:01 UTC

@gnidan
gnidan merged commit bcad8ab into main Nov 16, 2026
14 of 15 checks passed
@gnidan
gnidan deleted the conformance-solc-compilation branch November 16, 2026 21:57
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