lotus/itests
Phi-rjan 6f7498b622
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton

Addition of Network Version 22 skeleton

* update FFI

* feat: drand: refactor round verification

* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)

* Initial work supporting DDO pieces in lotus-miner

* sealing: Update pipeline input to operate on UniversalPiece

* sealing: Update pipeline checks/sealing states to operate on UniversalPiece

* sealing: Make pipeline build with UniversalPiece

* move PieceDealInfo out of api

* make gen

* make sealing pipeline unit tests pass

* fix itest ensemble build

* don't panic in SectorsStatus with deals

* stop linter from complaining about checkPieces

* fix sector import tests

* mod tidy

* sealing: Add logic for (pre)committing DDO sectors

* sealing: state-types with method defs

* DDO non-snap pipeline works(?), DDO Itests

* DDO support in snapdeals pipeline

* make gen

* update actor bundles

* update the gst market fix

* fix: chain: use PreCommitSectorsBatch2 when setting up genesis

* some bug fixes

* integration working changes

* update actor bundles

* Make TestOnboardRawPieceSnap pass

* Appease the linter

* Make deadlines test pass with v12 actors

* Update go-state-types, abstract market DealState

* make gen

* mod tidy, lint fixes

* Fix some more tests

* Bump version in master

Bump version in master

* Make gen

Make gen

* fix sender

* fix: lotus-provider: Fix winning PoSt

* fix: sql Scan cannot write to an object

* Actually show miner-addrs in info-log

Actually show miner-addrs in lotus-provider info-log

* [WIP] feat: Add nv22 skeleton

Addition of Network Version 22 skeleton

* update FFI

* ddo is now nv22

* make gen

* temp actor bundle with ddo

* use working go-state-types

* gst with v13 market migration

* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3

* actually working v13 migration, v13 migration itest

* Address review

* sealing: Correct DDO snap pledge math

* itests: Mixed ddo itest

* pipeline: Fix sectorWeight

* sealing: convert market deals into PAMs in mixed sectors

* sealing: make market to ddo conversion work

* fix lint

* update gst

* Update actors and GST to lastest integ branch

* commit batcher: Update ProveCommitSectors3Params builder logic

* make gen

* use builtin-actors master

* ddo: address review

* itests: Add commd assertions to ddo tests

* make gen

* gst with fixed types

* config knobs for RequireActivationSuccess

* storage: Drop obsolete flaky tasts

---------

Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>

* feat: implement FIP-0063

* chore: deps: update to go-multiaddr v0.12.2 (#11602)

* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)

This:

1. Adds nv22 support.
2. Updates the message tracing format.

Co-authored-by: Steven Allen <steven@stebalien.com>

* AggregateProofType nil when doing batch updates

Use latest nv22 go-state-types version with matching update

* Update to v13.0.0-rc.2 bundle

* chore: Upgrade heights and codename

Update upgrade heights

Co-Authored-By: Steven Allen <steven@stebalien.com>

* Update epoch after nv22 DRAND switch

Update epoch after nv22 DRAND switch

* Update Mango codename to Phoneix

Make the codename for the Drand-change inline with Dragon style.

* Add UpgradePhoenixHeight to API params

* set UpgradePhoenixHeight to be one hour after Dragon

* Make gen

Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet

* Update epoch heights (#11637)

Update epoch heights

* new: add forest bootstrap nodes (#11636)

Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>

* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes

Remove PL operated bootstrap nodes from mainnet.pi

* feat: api: new verified registry methods to get all allocations and claims (#11631)

* new verireg methods

* update changelog and add itest

* update itest and cli

* update new method's support till v9

* remove gateway APIs

* fix cli internal var names

* chore:: backport #11609 to the feat/nv22 branch (#11644)

* feat: api: improve the correctness of Eth's trace_block (#11609)

* Improve the correctness of Eth's trace_block

- Improve encoding/decoding of parameters and return values:
  - Encode "native" parameters and return values with Solidity ABI.
  - Correctly decode parameters to "create" calls.
  - Use the correct (ish) output for "create" calls.
  - Handle all forms of "create".
- Make robust with respect to reverts:
  - Use the actor ID/address from the trace instead of looking it up in
    the state-tree (may not exist in the state-tree due to a revert).
  - Gracefully handle failed actor/contract creation.
- Improve performance:
  - We avoid looking anything up in the state-tree when translating the
    trace, which should significantly improve performance.
- Improve code readability:
  - Remove all "backtracking" logic.
  - Use an "environment" struct to store temporary state instead of
    attaching it to the trace.
- Fix random bugs:
  - Fix an allocation bug in the "address" logic (need to set the
    capacity before modifying the slice).
  - Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
  - And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.

* Make gen

Make gen

---------

Co-authored-by: Steven Allen <steven@stebalien.com>

* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)

* chore: deps: update to go-state-types v13.0.0-rc.1

* do NOT update the cache when running the real migration

* Merge pull request #11632 from hanabi1224/hm/drand-test

feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet

* chore: deps: update to go-state-types v13.0.0-rc.2

chore: deps: update to go-state-types v13.0.0-rc.2

* feat: set migration config UpgradeEpoch for v13 actors upgrade

* Built-in actor events first draft

* itest for DDO non-market verified data w/ builtin actor events

* Tests for builtin actor events API

* Clean up DDO+Events tests, add lots of explainer comments

* Minor tweaks to events types

* Avoid duplicate messages when looking for receipts

* Rename internal events modules for clarity

* Adjust actor event API after review

* s/ActorEvents/Events/g in global config

* Manage event sending rate for SubscribeActorEvents

* Terminate SubscribeActorEvents chan when at max height

* Document future API changes

* More clarity in actor event API docs

* More post-review changes, lots of tests for SubscribeActorEvents

Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.

* Remove duplicate code from actor event type marshalling tests

Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.

* Rename actor events test to follow go convention

Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.

* Run actor events table tests in deterministic order

Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.

* Reduce scope for filter removal failure when getting actor events

Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.

Refactor removal into a `defer` statement for a more readable, concise
return statement.

* Use fixed RNG seed for actor event tests

Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.

* Use provided libraries to assert eventual conditions

Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.

Remove duplicate code in utility functions that are already defined.

Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.

* Update changelog for actor events APIs

* Fix concerns and docs identified by review

* Update actor bundle to v13.0.0-rc3

Update actor bundle to v13.0.0-rc3

* Prep Lotus v1.26.0-rc1

- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release

-Update Calibnet CIDs to v13.0.0-rc3

- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog

Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Masih H. Derkani <m@derkani.org>

* Make gen

Make gen

* fix: beacon: validate drand change at nv16 correctly

* bump to v1.26.0-rc2

* test: cleanup ddo verified itest, extract steps to functions

also add allocation-removed event case

* test: extract verified DDO test to separate file, add more checks

* test: add additional actor events checks

* Add verification for "deal-activated" actor event

* docs(drand): document the meaning of "IsChained" (#11692)

* Resolve conflicts

I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`

* fixup imports, make jen

* Update version

Update version in master to v1.27.0-dev

* Update node/impl/full/dummy.go

Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>

* Adjust ListClaimsCmd

Adjust ListClaimsCmd according to review

---------

Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 10:33:58 +01:00
..
contracts tests: itests: blocktest properties (#10304) 2023-02-17 14:32:54 -08:00
fixtures Add tests cementing the DM-level behavior on simple paths 2021-11-24 15:31:15 +01:00
kit chore: Merge nv22 into master (#11699) 2024-03-12 10:33:58 +01:00
multisig more fixes 2022-09-10 12:37:03 -04:00
specs change rpc types from uint to hash to match fevm implementation 2023-02-16 17:55:04 -07:00
api_test.go master-to-sturdy 2023-09-21 10:37:02 -05:00
batch_deal_test.go master-to-sturdy 2023-09-21 10:37:02 -05:00
cli_test.go fix make gen 2022-08-29 16:25:30 +02:00
deadlines_test.go chore: Merge nv22 into master (#11699) 2024-03-12 10:33:58 +01:00
deals_512mb_test.go fix make gen 2022-08-29 16:25:30 +02:00
deals_anycid_test.go chore: migrate to boxo 2023-06-19 14:45:05 -07:00
deals_concurrent_test.go feat(deps): update to go-data-transfer v2, still wip 2023-03-07 11:44:29 -08:00
deals_invalid_utf8_label_test.go chore: fix imports 2022-06-14 17:00:51 +02:00
deals_max_staging_deals_test.go fix make gen 2022-08-29 16:25:30 +02:00
deals_offline_test.go review fixes 2022-10-06 11:06:21 -04:00
deals_padding_test.go add integration test to catch tipset CID flakiness. (#10071) 2023-01-19 18:25:23 +00:00
deals_partial_retrieval_dm-level_test.go feat: deflake TestDMLevelPartialRetrieval (#10972) 2023-06-12 16:49:13 -07:00
deals_partial_retrieval_test.go chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
deals_power_test.go add integration test to catch tipset CID flakiness. (#10071) 2023-01-19 18:25:23 +00:00
deals_pricing_test.go fix make gen 2022-08-29 16:25:30 +02:00
deals_publish_test.go fix make gen 2022-08-29 16:25:30 +02:00
deals_remote_retrieval_test.go netbs: Add an integration test 2022-11-08 13:38:28 +01:00
deals_retry_deal_no_funds_test.go deflake TestRetryDealsNoFunds: increase wait 10x 2022-09-23 12:43:00 -04:00
deals_test.go master-to-sturdy 2023-09-21 10:37:02 -05:00
decode_params_test.go Review fixes 2023-02-02 16:46:08 -05:00
direct_data_onboard_test.go chore: Merge nv22 into master (#11699) 2024-03-12 10:33:58 +01:00
direct_data_onboard_verified_test.go chore: Merge nv22 into master (#11699) 2024-03-12 10:33:58 +01:00
doc.go
dup_mpool_messages_test.go Add stateWaitMsg before checking last balance 2022-08-17 14:48:44 -04:00
eth_account_abstraction_test.go Make block param to EthEstimateGas optional 2023-11-29 10:26:22 +00:00
eth_api_test.go fix imports. 2023-03-12 00:42:56 +00:00
eth_balance_test.go Refactor EthBlockNumberOrHash and remove the number field 2023-06-22 17:18:50 +00:00
eth_block_hash_test.go test: eth: deflake multiblock lookup test (#10769) 2023-04-26 15:10:43 -07:00
eth_bytecode_test.go Refactor EthBlockNumberOrHash and remove the number field 2023-06-22 17:18:50 +00:00
eth_config_test.go itests: Fix TestEthFilterAPIDisabledViaConfig 2023-02-02 15:59:55 +01:00
eth_conformance_test.go Make block param to EthEstimateGas optional 2023-11-29 10:26:22 +00:00
eth_deploy_test.go Make block param to EthEstimateGas optional 2023-11-29 10:26:22 +00:00
eth_fee_history_test.go feat: deflake TestEthFeeHistory 2023-05-04 10:01:40 -04:00
eth_filter_test.go eth_filter flake debug 2023-09-08 11:17:51 -05:00
eth_hash_lookup_test.go Make block param to EthEstimateGas optional 2023-11-29 10:26:22 +00:00
eth_transactions_test.go Merge pull request #11462 from filecoin-project/update-estimate-gas 2023-11-29 15:45:14 +00:00
fevm_address_test.go feat: eth: encode eth tx input as solidity ABI (#11402) 2023-11-17 20:46:49 +01:00
fevm_events_test.go test: fevm: add in tests for deploying, destroying contracts, recursive calls, sending value (#10082) 2023-01-31 19:13:13 -10:00
fevm_test.go Make block param to EthEstimateGas optional 2023-11-29 10:26:22 +00:00
gas_estimation_test.go fix: gas: update ffi & correct the message inclusion cost in nv18 (#10228) 2023-02-10 12:48:20 +00:00
gateway_test.go gateway: eth_subscribe support 2023-01-31 10:28:12 +01:00
get_messages_in_ts_test.go fix make gen 2022-08-29 16:25:30 +02:00
harmonydb_test.go itests: Enable harmonydb in harmonydb tests 2023-11-23 21:51:34 +01:00
harmonytask_test.go harmony storage (#11647) 2024-02-27 10:47:58 -08:00
lite_migration_test.go Drop actor keys from chain/actors/manifest.go 2022-12-13 18:02:34 -05:00
lookup_robust_address_test.go chore: fix imports 2022-06-14 17:00:51 +02:00
mempool_test.go fix make gen 2022-08-29 16:25:30 +02:00
migration_test.go Add more post-migration sanity checks 2023-08-14 18:11:47 -04:00
mpool_msg_uuid_test.go cleanup 2022-09-13 16:52:47 -04:00
mpool_push_with_uuid_test.go Merge branch 'master' into sbansal/nonce-coordination-and-consensus-for-chain-nodes 2022-09-13 17:41:06 -04:00
msgindex_test.go master-to-sturdy 2023-09-21 10:37:02 -05:00
multisig_test.go NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998) 2023-01-13 19:11:13 +00:00
net_test.go itests: Deflake TestNetBlockIPAddr 2023-05-10 22:35:36 +02:00
nonce_test.go fix make gen 2022-08-29 16:25:30 +02:00
path_detach_redeclare_test.go Fix lotus-miner proving check 2022-11-14 15:29:50 -05:00
path_type_filters_test.go working changes 2023-08-08 20:59:21 -04:00
paych_api_test.go feat: deflake paych_api_test 2023-05-08 14:36:43 -04:00
paych_cli_test.go chore: deps: update to go-jsonrpc 0.1.8 2022-09-27 15:34:01 +00:00
pending_deal_allocation_test.go chore: Merge nv22 into master (#11699) 2024-03-12 10:33:58 +01:00
remove_verifreg_datacap_test.go master-to-sturdy 2023-09-21 10:37:02 -05:00
sealing_resources_test.go fix: sched: Address GET_32G_MAX_CONCURRENT regression (#10850) 2023-05-10 15:43:42 -04:00
sector_finalize_early_test.go feat: deflake TestDealsWithFinalizeEarly 2023-06-14 11:29:14 -04:00
sector_import_full_test.go Synthetic PoRep Impl 2023-07-13 15:47:59 +02:00
sector_import_simple_test.go Synthetic PoRep Impl 2023-07-13 15:47:59 +02:00
sector_miner_collateral_test.go master-to-sturdy 2023-09-21 10:37:02 -05:00
sector_numassign_test.go numassigner: SectorNumReserveCount 2022-08-24 11:25:37 -04:00
sector_pledge_test.go itests: TestSectorsSummary 2023-11-27 18:30:46 +01:00
sector_terminate_test.go chore: Merge nv22 into master (#11699) 2024-03-12 10:33:58 +01:00
sector_unseal_test.go fix: itests: Add missing task type in TestUnsealPiece 2022-11-29 13:02:45 +01:00
self_sent_txn_test.go Address moar comments 2022-09-22 16:27:15 -04:00
splitstore_test.go Update splitstore test helpers usage of create miner 2023-04-23 12:14:52 -06:00
verifreg_test.go chore: Merge nv22 into master (#11699) 2024-03-12 10:33:58 +01:00
wdpost_config_test.go feat: proving: Introduce manual sector fault recovery (#9144) 2022-09-06 21:17:30 +05:30
wdpost_dispute_test.go fix: stmgr: make the tipset and height agree when estimating gas (#10216) 2023-02-10 20:49:26 +00:00
wdpost_no_miner_storage_test.go Increase blocktime in test 2022-12-20 10:52:47 -05:00
wdpost_test.go master-to-sturdy 2023-09-21 10:37:02 -05:00
wdpost_worker_config_test.go try to fix worker tests 2023-12-02 12:47:44 +01:00
worker_test.go itests: remove obsolete racy flaky post test 2023-12-04 23:16:05 +01:00
worker_upgrade_test.go snapdeals cleanup: address review 2022-11-28 23:03:07 +01:00