filecoin-project / specs-actors

DEPRECATED Specification of builtin actors, in the form of executable code.
Other
86 stars 102 forks source link

Actors Testing - that will be used to validate changes we made for SnapDeals implementation #1513

Closed BlocksOnAChain closed 2 years ago

ZenGround0 commented 3 years ago

Description

Add VM tests to the actors/tests package that exercise the ProveCommitUpdateReplica method

Success cases:

Error cases:

Done criteria

Dependencies

Ongoing work

Not yet started

arajasek commented 2 years ago

Add a test for insufficient pledge when it goes up

arajasek commented 2 years ago

Check that in the happy path, your sector still gets faulty if post missed, and still gets recovered and such

arajasek commented 2 years ago

Add a test that actually has a batch -- some sectors in the same partition, others not.

arajasek commented 2 years ago

Test that sectors are still extensible and terminatable.

arajasek commented 2 years ago

edited by @jennijuju

(didnt realize i have so many typos in our slack messages lmao) @jennijuju asks:

now seems like we removed ReplaceCapacity completely, what will happen if:

arajasek commented 2 years ago

Add to TestFullPathSuccess

// TODO: miss a post, lose power
// miss another, get slashed
// submit post, recover

// TODO: update another sector, and immediately miss post, lose power
// submit post, recover
arajasek commented 2 years ago

More for TestUnhealthySectorFailure

More variants: testing that unproven, and terminated sectors fail.

anorth commented 2 years ago

@Kubuxu do you have testing points to contibute?

arajasek commented 2 years ago

Closed in #1552, though more tests welcome