archive-ape-starknet icon indicating copy to clipboard operation
archive-ape-starknet copied to clipboard

Wrongful re-compilation and inconsistent caching behaviors

Open 0xSidius opened this issue 3 years ago • 4 comments

Ape will not always see contracts that need re-compilation upon changes, this was noticed both in standalone compilation mode (single command) and also as part of ape-starknet flow for running tests, furthermore, during the latter Ape will output that relevant contracts are being re-compiled however test behavior remains unchanged until the .pytest_cache folder is deleted (signaling that Ape either A) did not correctly re-compile all contracts that needed to B) is still loading the old artifacts for running the test)

0xSidius avatar Jun 30 '22 07:06 0xSidius

FTR I also reported several issues related to contracts (re)compilation here: https://github.com/ApeWorX/ape/issues/822.

ca11ab1e avatar Jun 30 '22 07:06 ca11ab1e

How are you compiling + making changes the source code? Are the sources being changed mid test?

antazoey avatar Jun 30 '22 21:06 antazoey

How are you compiling + making changes the source code? Are the sources being changed mid test?

nope, no changes during test run ofc

as for compilation 👇 image

0xLaplace avatar Jul 01 '22 13:07 0xLaplace

if there is any easy way to help reproduce this, it would be much appreciated!

antazoey avatar Aug 09 '22 22:08 antazoey