Skip to content

Commit

Permalink
bug repro for dropping a field
Browse files Browse the repository at this point in the history
  • Loading branch information
crusso committed Jan 15, 2025
1 parent cef9238 commit 4df4599
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/run-drun/ok/tmp_upgrade.drun.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ingress Completed: Reply: 0x4449444c016c01b3c4b1f204680100010a00000000000000000101
ingress Completed: Reply: 0x4449444c0000
ingress Err: IC0503: Error from Canister rwlgt-iiaaa-aaaaa-aaaaa-cai: Canister called `ic0.trap` with message: RTS error: Memory-incompatible program upgrade.
Consider gracefully handling failures from this canister or altering the canister to handle exceptions. See documentation: http://internetcomputer.org/docs/current/references/execution-errors#trapped-explicitly
3 changes: 3 additions & 0 deletions test/run-drun/tmp_upgrade.drun
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SKIP ic-ref-run
install $ID tmp_upgrade/version0.mo ""
upgrade $ID tmp_upgrade/version1.mo ""
6 changes: 6 additions & 0 deletions test/run-drun/tmp_upgrade/version0.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
persistent actor {

var four : [var (Nat, Text)] = [var];
var zero = 0;

}
6 changes: 6 additions & 0 deletions test/run-drun/tmp_upgrade/version1.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
persistent actor {

var three : [var (Nat, Text)] = [var];
var zero = 0;

}

0 comments on commit 4df4599

Please sign in to comment.