You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is related to a bug in dfx. When it gets fixed we can verify and close out this issue
update dfx
verify fix
remove both of the multi_deploy examples from the Unstable Tests
Bug Report: Azle seems to generate binaries non-deterministically
Description
If you deploy twice in a row without changing the code sometimes it will treat the second deploy as a no change and do nothing, and sometimes it will treat it as a second deploy and run postupgrade.
Steps to Reproduce
Create canister with someway to see if init and post upgrade gets run
Deploy the canister
Verify that init was called
Deploy again
Expected Behavior
On the second deploy neither the init nor the post upgrade methods should have been called, because the deploy should have been skipped.
Actual Behavior
Sometimes the deploy happens and post upgrade method is called.
The text was updated successfully, but these errors were encountered:
bdemann
added
the
bug
A known issue where behavior deviates from expectations
label
Sep 26, 2024
I have started working on a new test to make sure this doesn't happen in the future and hopefully it will help us troubleshoot the currently problem.
basically it builds the wasm binary several times in a row and makes sure that the hash is the same every time. Then we go ahead and deploy the canister and make sure that the init and postUpgrade methods are called as we expect.
UPDATE
This issue is related to a bug in dfx. When it gets fixed we can verify and close out this issue
Bug Report: Azle seems to generate binaries non-deterministically
Description
If you deploy twice in a row without changing the code sometimes it will treat the second deploy as a no change and do nothing, and sometimes it will treat it as a second deploy and run postupgrade.
Steps to Reproduce
Expected Behavior
On the second deploy neither the init nor the post upgrade methods should have been called, because the deploy should have been skipped.
Actual Behavior
Sometimes the deploy happens and post upgrade method is called.
The text was updated successfully, but these errors were encountered: