Repository navigation
conformance: read solc's compilation outside its resources - #414
Merged
Merged
Conversation
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.
Contributor
|
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
solc + soldb conformancejob 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.resourcesin argotorg/solidity@44f8371cdc ("ethdebug: Separate compilation from resources", argotorg/solidity#17179, merged 2026-11-12). The compilation now comes only from theethdebug.compilationoutput, 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) andsolc-benchdid not change between the two runs, and nothing inpackages/conformancechanged on our side.solc's output still conforms:
compilationis optional in ethdebug/format/info/resources. The harness assumed it was there:EthdebugArtifact.resources.compilationwas required, andvalidateStaticConformancereadresources.compilation.sourceswithout a guard, which threw in the solc tests.writeSoldbDebugDirwrote solc's resources as they are. SolDB reads source contents only from thecompilationof the resources file in its debug directory (EthdebugInfo::from_artifactsincrates/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 --jsonprinted nothing and the breakpoint onCounter.sol:8was never set.This PR makes
resources.compilationoptional in the harness, and makeswriteSoldbDebugDirput 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.