Repository navigation
conformance: track SolDB reading sources only from resources - #417
Merged
Merged
Conversation
Mark the compilation merge in the SolDB adapter as a shim for #416 and add a tripwire: SolDB gets the debug directory as solc writes it, with the compilation in its own file, and the test fails once SolDB reports the sources from it.
Contributor
|
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.
Tracks #416.
SolDB reads source contents only from the
compilationinside its resources file. Since argotorg/solidity#17179, solc emits the compilation on its own, so #414 merges it into theethdebug.jsonthe harness writes for SolDB. This marks that merge inethdebugResourcesas the shim for #416 and adds the tripwire that goes with it, as described under "Expected failures" in the conformance README.The tripwire writes the debug directory the way solc's
--ethdebugoutput does:ethdebug_resources.jsonwithout a compilation andethdebug_compilation.jsonnext to it, plus the program files. It runssoldb info resources --jsonon it and expects no sources. Today SolDB rejects that resources file ("does not contain resources or compilation"). The test fails once SolDB reports the compilation's sources from that directory, and the message names the shim and #416.