Bytecode comparison run with extra input files #14495
Labels
low effort
There is not much implementation work to be done. The task is very easy or tiny.
medium impact
Default level of impact
must have
Something we consider an essential part of Solidity 1.0.
testing 🔨
Issues where changing something inconsequential in compiler input affects the bytecode keep popping up. We should be able to detect them in testing. A very common trigger for this is adding or reordering input files, which affects AST IDs (#14494, #11907, #9573).
One idea to detect this is to have an extra bytecode comparison run, that adds an extra, unrelated file to the original compiler invocation and makes sure that it does not affect the bytecode of other contracts. It would be enough to do this just on Linux, since running it on all platforms is quite resource intensive.
The content of the extra file is to be determined by trial and error. It might be enough to include some pragmas in it. The primary benchmark is whether it would detect the recent issue from #14494.
The text was updated successfully, but these errors were encountered: