Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release 1.23.0 #10727

Merged
merged 422 commits into from
Apr 23, 2023
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
422 commits
Select commit Hold shift + click to select a range
03f2efd
Add tooling textbox
rjan90 Feb 21, 2023
bf2ac13
Merge pull request #10283 from filecoin-project/feat/disable-pre-migr…
travisperson Feb 21, 2023
ab6aaf5
Hide `wait-quiet` cmd
rjan90 Feb 23, 2023
ea57a1a
Merge remote-tracking branch 'origin/master' into hsanjuan/chain-expo…
magik6k Feb 23, 2023
abaa53c
Merge pull request #10145 from filecoin-project/hsanjuan/chain-export…
magik6k Feb 23, 2023
aa7b5c4
Merge pull request #10319 from filecoin-project/fix/allinfo-test
magik6k Feb 23, 2023
0c9f697
Two fixes, better logging and comments (#10332)
ZenGround0 Feb 23, 2023
745476c
feat: sched: Assigner experiments
magik6k Feb 27, 2023
2316363
sched: Share active/preparing task counters
magik6k Feb 28, 2023
04fe906
fix: fsm: shutdown removed sectors FSMs
magik6k Feb 28, 2023
9aba7dc
chore: Remove legacy market info from lotus-miner info
magik6k Feb 28, 2023
dd0c4a0
Tune down parallel reads
rjan90 Feb 28, 2023
c484c38
worker sched: Separate resource def for preparing window
magik6k Feb 28, 2023
4c7d9ad
Tune down ParallelCheckLimit
rjan90 Feb 28, 2023
8142aaa
Merge pull request #10365 from filecoin-project/fix/tune-down-post-pa…
magik6k Feb 28, 2023
8076101
Merge pull request #10331 from filecoin-project/fix/deprecate-wait-quiet
magik6k Feb 28, 2023
544af75
Fix the overzealous fix (#10366)
ZenGround0 Feb 28, 2023
9a2b830
Merge pull request #10364 from filecoin-project/chore/rm-market-info-lsm
magik6k Mar 1, 2023
814c146
feat: stmgr: cache migrated stateroots
travisperson Feb 27, 2023
19f1ad2
Merge branch 'releases' into asr/merge-release-into-master
arajasek Mar 1, 2023
5707732
Merge pull request #10377 from filecoin-project/asr/merge-release-int…
arajasek Mar 1, 2023
dbbcf4b
feat: vm: switch to the new exec trace format (#10372)
Stebalien Mar 2, 2023
cfb5eac
fix: EthAPI: Make newEthBlockFromFilecoinTipSet faster and correct
arajasek Mar 2, 2023
4e57626
feat: update renew-sectors with FIP-0045 logic
arajasek Feb 22, 2023
4588523
Merge pull request #10328 from filecoin-project/asr/fip-0045-tooling
arajasek Mar 2, 2023
51b645f
Hide `lotus-worker set` command
rjan90 Mar 3, 2023
71b21db
chain prune hot -- hotstore online gc
ZenGround0 Mar 3, 2023
649bcad
remove accidental add
ZenGround0 Mar 3, 2023
920fdfd
fix: EthAPI: Correctly get parent hash
arajasek Mar 3, 2023
d3dfb5c
Merge pull request #10380 from filecoin-project/asr/fix-eth-api
jennijuju Mar 4, 2023
668b24f
make debugging windowPoSt-failures human readable
beck-8 Mar 4, 2023
6c0a2fe
Merge pull request #10384 from filecoin-project/fix/hide-set-worker-cmd
rjan90 Mar 5, 2023
c81a51a
make gen
ZenGround0 Mar 6, 2023
f0ba0eb
indent output
beck-8 Mar 6, 2023
e170487
post worker sched: Filter out disabled workers correctly
magik6k Mar 6, 2023
4b99472
itests: Test PoSt worker RPC error handling
magik6k Mar 6, 2023
9a295e5
post worker sched: Retry on alternative worker on RPC errors
magik6k Mar 6, 2023
b0ebdb6
make gen
magik6k Mar 6, 2023
9c2f8ee
itests: Wait for both workers in TestWindowPostWorkerDisconnected
magik6k Mar 6, 2023
12496e5
Merge pull request #10389 from filecoin-project/asr/fix-eth-api-genesis
arajasek Mar 6, 2023
fea7dfd
Merge pull request #10394 from filecoin-project/fix/disabled-post-wor…
arajasek Mar 6, 2023
394a7db
Unbump api version as its not necessary
ZenGround0 Mar 6, 2023
53fb6ad
deps: Update go-jsonrpc to v0.2.2
magik6k Mar 6, 2023
5534755
Add command to trigger moving GC of hotstore manually
ZenGround0 Mar 6, 2023
a2d3315
Timing info and updated docs
ZenGround0 Mar 6, 2023
74d94af
fix: state: short-circuit genesis state computation
arajasek Mar 6, 2023
6ecf9aa
Merge pull request #10395 from filecoin-project/deps/jsonrpc-v0.2.2
arajasek Mar 6, 2023
b88ecb7
Merge pull request #10397 from filecoin-project/asr/fix-genesis-state…
arajasek Mar 6, 2023
64b9b53
Merge pull request #10387 from filecoin-project/feat/lotus-badger-gc
magik6k Mar 7, 2023
dd998d6
Begin account for size during walks
ZenGround0 Mar 3, 2023
5d9739a
Track size of dags relevant to compaction
ZenGround0 Mar 4, 2023
0fe9184
Plan out moving GC limiting
ZenGround0 Mar 4, 2023
a994153
GC respects target for max hotstore space
ZenGround0 Mar 7, 2023
bf29d41
lint
ZenGround0 Mar 7, 2023
f2a652f
rpcenc: More reliably failing TestReaderRedirectDrop
magik6k Mar 7, 2023
ec5fde4
rpcenc: Propagate closeOnce in beginPost
magik6k Mar 7, 2023
8b5bc45
fix: eth API: correct gateway restrictions, drop unimplemented methods
arajasek Mar 7, 2023
f1b1eb8
refactor: EthAPI: Drop unnecessary param from newEthTxReceipt
arajasek Mar 7, 2023
16dad63
feat(deps): update to go-data-transfer v2, still wip
hannahhoward Mar 3, 2023
c3198d7
chore(deps): update go-libipfs
hannahhoward Mar 3, 2023
7bc6185
chore(deps): update to get to compile
hannahhoward Mar 7, 2023
b77f2f0
update minimum Go version to 1.19.7
marten-seemann Mar 8, 2023
db6efe6
use go-libipfs/files instead of ipfs/go-ipfs-files
marten-seemann Mar 8, 2023
5b5ea08
fix drand test
marten-seemann Mar 8, 2023
52197cc
Merge pull request #10268 from filecoin-project/add-discussion-fip-links
jennijuju Mar 8, 2023
decfb32
Merge pull request #10289 from filecoin-project/chore/update-bug-temp…
jennijuju Mar 8, 2023
113d49a
Merge pull request #10291 from filecoin-project/chore/update-feature-…
jennijuju Mar 8, 2023
04a0fdd
Update .github/ISSUE_TEMPLATE/service_developer_bug_report.yml
jennijuju Mar 8, 2023
a896d88
Update .github/ISSUE_TEMPLATE/service_developer_bug_report.yml
jennijuju Mar 8, 2023
e5055c2
Update service_developer_bug_report.yml
jennijuju Mar 8, 2023
2a85727
Merge pull request #10321 from filecoin-project/chore/service-dev-iss…
jennijuju Mar 8, 2023
925a385
Update service_developer_bug_report.yml
jennijuju Mar 8, 2023
a0a1d37
Update service_developer_bug_report.yml
jennijuju Mar 8, 2023
9038e83
Merge pull request #10406 from filecoin-project/fix/rpcenc-falky-test
magik6k Mar 8, 2023
2c6d025
un-un-update filecoin-ffi
magik6k Mar 8, 2023
b67e6db
try to add statenetworkname method
ArseniiPetrovich Mar 7, 2023
b8aaec6
add method implementation
ArseniiPetrovich Mar 7, 2023
17ca3a1
add MPoolGetNonce
ArseniiPetrovich Mar 7, 2023
fb5c24b
add two more methods: StateCall and StateDecodeParams
ArseniiPetrovich Mar 8, 2023
e17ec37
fix logging
ZenGround0 Mar 8, 2023
d114d8f
deprecate MarketListRetrievalDeals, make gen
magik6k Mar 8, 2023
efbc0ff
Fix up approximation and logging
ZenGround0 Mar 8, 2023
0ccef4e
run make gen
ArseniiPetrovich Mar 8, 2023
a450e74
small doc patch on how to make gen after api changes
ArseniiPetrovich Mar 8, 2023
dcfbf7d
fix TestPrintGroupInfo
magik6k Mar 8, 2023
52ae215
Merge pull request #10363 from filecoin-project/fix/fsm-shutdown-remo…
magik6k Mar 8, 2023
cef416e
Eth API: make block parameter parsing sounder.
raulk Mar 8, 2023
28d8b4c
Eth API: fail when requesting future epochs.
raulk Mar 8, 2023
b6dc0d2
add a test to verify block parameter soundness.
raulk Mar 8, 2023
1aac945
Merge pull request #10420 from protofire/add_missing_methods_master
magik6k Mar 8, 2023
0f5f91c
register rcmgr metrics
marten-seemann Mar 8, 2023
4427986
replace make all with make deps according to review
ArseniiPetrovich Mar 9, 2023
f9c8cb0
Merge pull request #10422 from ArseniiPetrovich/patch-1
magik6k Mar 9, 2023
0a0df61
fix: EthAPI: use StateCompute for feeHistory; apply minimum gas premi…
ychiaoli18 Mar 9, 2023
80ccd14
Merge pull request #10356 from filecoin-project/feat/assigner-experim…
magik6k Mar 9, 2023
e555355
cid key size
ZenGround0 Mar 9, 2023
ee9ff56
computing szPurge leads to deadlock and unneeded, remove
ZenGround0 Mar 9, 2023
efbb635
Review Response
ZenGround0 Mar 9, 2023
7931414
Lint
ZenGround0 Mar 9, 2023
0b0913f
lint
ZenGround0 Mar 9, 2023
14af4b2
docsgen-cli
ZenGround0 Mar 9, 2023
4f060b8
only register metrics once
marten-seemann Mar 9, 2023
140f209
lint
ZenGround0 Mar 9, 2023
3e85591
Merge pull request #10390 from beck-8/chore/compute-wdpost-human-read…
magik6k Mar 9, 2023
ab91ab1
fix: eth API: return correct txIdx around null blocks (#10419)
arajasek Mar 9, 2023
fd3ddc8
fmt.
raulk Mar 9, 2023
941ef84
Merge branch 'master' into raulk/fix-eth-parseBlkParam
raulk Mar 9, 2023
fb7eb08
lint
ZenGround0 Mar 9, 2023
c80783d
feat:splitstore:Splitstore enabled by default (#10429)
ZenGround0 Mar 9, 2023
aac30cd
Review Response
ZenGround0 Mar 9, 2023
d38bdce
fix lint.
raulk Mar 9, 2023
bd0c010
Configur buffer and threshold
ZenGround0 Mar 9, 2023
87d5a37
lint
ZenGround0 Mar 9, 2023
366ebe3
make gen
magik6k Mar 9, 2023
faedc12
Merge pull request #10391 from filecoin-project/feat/record-hotstore-…
magik6k Mar 9, 2023
13d6211
fix TestEthBlockHashesCorrect_MultiBlockTipset: skip null rounds.
raulk Mar 9, 2023
9fa8167
Merge pull request #10411 from filecoin-project/asr/simplity-new-eth-…
arajasek Mar 9, 2023
fce0813
switch to ChainAPI#ChainGetTipSetByHeight.
raulk Mar 9, 2023
b4e589a
review comments
travisperson Mar 7, 2023
3d21d71
simplify test.
raulk Mar 9, 2023
1096ead
Merge pull request #10427 from filecoin-project/raulk/fix-eth-parseBl…
jennijuju Mar 9, 2023
f641139
Merge pull request #10282 from filecoin-project/feat/cache-migrated-s…
travisperson Mar 9, 2023
90c8928
feat: chain: make fetching tipset by height 1000x faster
arajasek Mar 8, 2023
b75ebca
Merge pull request #10423 from filecoin-project/asr/fast-index
arajasek Mar 9, 2023
58900a7
feat: mempool: Reduce minimum replace fee from 1.25x to 1.1x (#10416)
Stebalien Mar 9, 2023
7a2eb86
feat: cli: Add an EVM command to fetch a contract's bytecode
Stebalien Mar 10, 2023
f7603f6
feat: eth API: reject masked ID addresses embedded in f410f payloads
Stebalien Mar 10, 2023
816ca59
Merge pull request #10443 from filecoin-project/steb/evm-bytecode-cmd
arajasek Mar 10, 2023
9d994da
Merge pull request #10440 from filecoin-project/steb/reject-masked-id
arajasek Mar 10, 2023
d2c1962
chore: update the FFI for release (#10435)
Stebalien Mar 10, 2023
92bca48
feat: stmgr: skip tipset execution when possible
Stebalien Mar 10, 2023
1cf57ff
feat: eth: optimize receipt reading
Stebalien Mar 10, 2023
eba270d
feat: api: optimize ChainGetParentReceipts
Stebalien Mar 11, 2023
59bebf8
test: eth: reduce chances of chain-reorgs affecting the test
Stebalien Mar 11, 2023
82e2c35
gateway: fix: drop overzealous guard on MsigGetVested
arajasek Mar 11, 2023
d7a2fdb
Merge pull request #10445 from filecoin-project/steb/skip-tipset-exec…
raulk Mar 11, 2023
d1c6ab7
Merge branch 'master' into steb/optimize-eth-block
raulk Mar 11, 2023
f7a979d
eth_feeHistory: migrate to using TipSetState.
raulk Mar 11, 2023
9412753
Eth API: drop support for 'pending' block parameter.
raulk Mar 11, 2023
7ce92f1
Eth API: make net_version return the chain ID.
raulk Mar 11, 2023
4763104
fix imports.
raulk Mar 12, 2023
5a4b5ff
remove superfluous filter.
raulk Mar 12, 2023
571a84b
drop irrelevant test.
raulk Mar 12, 2023
aea195a
Merge pull request #10446 from filecoin-project/steb/optimize-eth-block
raulk Mar 12, 2023
e65a598
Eth API: make eth_getTransactionByBlock* ops return ErrUnsupported.
raulk Mar 12, 2023
2e56237
Merge branch 'master' into asr/fix-eth-api-gateway
raulk Mar 12, 2023
34d7135
Merge pull request #10409 from filecoin-project/asr/fix-eth-api-gateway
raulk Mar 12, 2023
75c279a
Merge pull request #10456 from filecoin-project/raulk/fix-eth-net_ver…
raulk Mar 13, 2023
b852f5e
fix: itest: avoid failing the test when we race the miner
Stebalien Mar 13, 2023
afa36d3
Merge pull request #10451 from filecoin-project/asr/fix-msig-vested
arajasek Mar 13, 2023
73a2b41
feat: eth: Avoid StateCompute in EthTxnReceipt lookup (#10460)
Stebalien Mar 13, 2023
748e535
Merge pull request #10444 from filecoin-project/chore/update-ffi
arajasek Mar 13, 2023
97a9921
Merge pull request #10461 from filecoin-project/steb/deflake-fail-aft…
arajasek Mar 13, 2023
dcb49dc
refactor: update cache to the new generic version (#10463)
Stebalien Mar 13, 2023
3556a4b
fix: gateway: correctly apply the fee history lookback max
Stebalien Mar 13, 2023
6afa99d
Plumb through a proper Flush() method on all blockstores
ribasushi Nov 24, 2020
51c6b64
feat: consensus: log ApplyBlock timing/gas stats
magik6k Mar 14, 2023
27e3c0b
fix: stmgr: don't attempt to lookup genesis state (#10472)
magik6k Mar 14, 2023
e8325f9
Revert "Eth API: drop support for 'pending' block parameter."
raulk Mar 14, 2023
162e07f
Merge pull request #10470 from filecoin-project/feat/applyblock-timin…
magik6k Mar 14, 2023
991895c
fix: build: drop drand incentinet servers
arajasek Mar 14, 2023
adfa766
feat: gateway: export StateVerifierStatus
arajasek Mar 14, 2023
92dd629
chore: update go-libp2p-pubsub to v0.9.2
marten-seemann Mar 15, 2023
6ef4157
chore: update ffi to increase execution parallelism (#10480)
Stebalien Mar 15, 2023
21b74de
fix connection gater integration test
marten-seemann Mar 15, 2023
58306a8
chore: update go-libp2p to v0.26.2
marten-seemann Mar 15, 2023
81238b1
Merge pull request #10477 from filecoin-project/asr/export-state-veri…
magik6k Mar 15, 2023
a7c9a83
Merge pull request #10465 from ribasushi/flush_bs
magik6k Mar 15, 2023
486904b
Merge pull request #10464 from filecoin-project/steb/fee-history-gw-l…
magik6k Mar 15, 2023
7e414ac
Merge remote-tracking branch 'origin/master' into feat/go-data-transf…
magik6k Mar 15, 2023
311645b
make mod-tidy ci happy
magik6k Mar 15, 2023
b8589e8
Merge pull request #10382 from filecoin-project/feat/go-data-transfer-v2
magik6k Mar 15, 2023
7e21486
update go-libp2p-pubsub to v0.9.3
vyzo Mar 15, 2023
8121f37
Merge pull request #10483 from filecoin-project/deps/update-pubsub
magik6k Mar 15, 2023
7036e76
Merge pull request #10476 from filecoin-project/asr/drop-incentinet-s…
arajasek Mar 15, 2023
a44f598
update go-jsonrpc to v0.2.3
magik6k Mar 15, 2023
470dd8d
ethrpc: Buffer sub messages if subscriber is slow
magik6k Mar 15, 2023
720e959
make lint happy
magik6k Mar 15, 2023
4c80e17
Merge pull request #10485 from filecoin-project/fix/ethsub-hang
magik6k Mar 15, 2023
fee4801
feat: apply gateway lookback limit to eth API lookback
Stebalien Mar 14, 2023
3776ee3
fix: actually apply limit
Stebalien Mar 14, 2023
17274e7
feat: expose limited apis on the gateway
Stebalien Mar 14, 2023
d569808
Merge branch 'releases' into jen/m
jennijuju Mar 16, 2023
c0aed3c
Merge pull request #10474 from filecoin-project/raulk/fix-pending-sup…
magik6k Mar 16, 2023
093ff95
Merge pull request #10467 from filecoin-project/steb/gw-eth-lookback-…
magik6k Mar 16, 2023
97a3b6e
Merge pull request #10490 from filecoin-project/jen/m
arajasek Mar 16, 2023
2207ab3
fix: eth: handle a potential divide by zero in receipt handling
Stebalien Mar 16, 2023
eed1a09
Merge pull request #10495 from filecoin-project/steb/fix-div-by-zero
magik6k Mar 17, 2023
2523877
Don't enforce walking receipt tree during compaction
ZenGround0 Mar 17, 2023
2a3dcf6
Merge pull request #10502 from filecoin-project/fix/splitstore-handle…
arajasek Mar 17, 2023
2b3a86e
Demote now common logs (#10516)
ZenGround0 Mar 20, 2023
43da108
feat:config:force existing users to opt into new defaults (#10488)
ZenGround0 Mar 20, 2023
57133a8
release v1.21.0-rc1 prep
jennijuju Mar 21, 2023
c8af33f
chore: build: Update Changelog for v1.21.0
rjan90 Mar 21, 2023
938d2d9
Add RPC API highlight
rjan90 Mar 21, 2023
a8580e2
Add callout to exchanges
rjan90 Mar 22, 2023
3f8a41c
Merge pull request #10524 from filecoin-project/jen/v121
rjan90 Mar 22, 2023
a467e1a
fix: miner: correctly count sector extensions
arajasek Mar 22, 2023
7b55de2
fix: miner: call ExtendSectorExpiration2
arajasek Mar 23, 2023
0e73c69
chore: all: bump go-libipfs
Jorropo Mar 22, 2023
8bb7272
Initialize with same length as partition
rjan90 Mar 27, 2023
af428b6
Merge pull request #10574 from filecoin-project/phi/backport-slice-fix
rjan90 Mar 27, 2023
7eae362
Merge pull request #10563 from Jorropo/release/v1.21.0
rjan90 Mar 28, 2023
0b018e5
Merge pull request #10555 from filecoin-project/asr/fix-extend-sector…
arajasek Mar 28, 2023
9d5e789
build: docker: Update GO-version
rjan90 Mar 28, 2023
db86985
Merge pull request #10591 from filecoin-project/phi/backport-go-update
rjan90 Mar 29, 2023
a647390
build: release: v1.21.0-rc2
rjan90 Mar 29, 2023
ca1247e
Update go.mod
rjan90 Mar 29, 2023
d3d5f92
Update changelog for v1.21.0-rc2
rjan90 Mar 29, 2023
0629435
perf: eth: gas estimate set applyTsMessages false (#10546)
snissn Mar 23, 2023
2438141
feat: supply: drop genesis market locked funds
arajasek Mar 23, 2023
3120852
feat: supply: only grab genesis msig locks for writes
arajasek Mar 23, 2023
199a1d9
Update Changelog with backports
rjan90 Mar 29, 2023
7a95ed0
Bump version in changelog
rjan90 Mar 29, 2023
b40ab4b
Merge pull request #10595 from filecoin-project/asr/backport
arajasek Mar 29, 2023
d5a3ddb
Add longer validation time cause to changelog
rjan90 Mar 29, 2023
a724a71
refactor: stop using deprecated io/ioutil
arajasek Mar 29, 2023
caa6dd9
Merge pull request #10594 from filecoin-project/phi/v1210-rc2
jennijuju Mar 29, 2023
8a7ae61
chore: deps: update to go-state-types v0.11.0-alpha-3
arajasek Mar 30, 2023
ef5c6c4
Merge pull request #10607 from filecoin-project/phi/backport-update-gst
arajasek Mar 31, 2023
0314db7
Update config default value
ZenGround0 Mar 30, 2023
33039d2
Merge pull request #10620 from filecoin-project/phi/backport-splitsto…
rjan90 Apr 4, 2023
b240031
Limit moving gc threads (#10623)
rjan90 Apr 5, 2023
b6b3802
build: release: v1.21.0 prep
rjan90 Apr 5, 2023
e426d05
fix typos
rjan90 Apr 5, 2023
95e1c49
Merge pull request #10627 from filecoin-project/phi/v1210
rjan90 Apr 5, 2023
b5da33c
signal chain in and out of sync to compaction workers
ZenGround0 Mar 4, 2023
fd66db6
check yield before GC
ZenGround0 Mar 4, 2023
0ce9ae4
Implement yield friendly online GC
ZenGround0 Mar 4, 2023
d77ac5d
Stop swallowing errors
ZenGround0 Mar 30, 2023
34f46d7
fix: revert chain sync mutex to a regular lock
Stebalien Apr 4, 2023
5e89016
Merge pull request #10641 from filecoin-project/phi/backport-splitsto…
ZenGround0 Apr 10, 2023
8096f71
build: release: v1.21.0-rc3
rjan90 Apr 10, 2023
c6968f8
Merge pull request #10643 from filecoin-project/phi/v1210rc3
rjan90 Apr 10, 2023
327760a
chore: build: Merge/v22 into 21 for 23 (#10702)
ZenGround0 Apr 19, 2023
07416e8
update: builtin to builtin11 in wdpost worker
siriusyim Apr 21, 2023
afc64eb
Merge pull request #10715 from siriusyim/fix/window-post-prooftype
magik6k Apr 21, 2023
2f48759
Merge branch 'releases' into release/v1.23.0
arajasek Apr 21, 2023
7356625
Merge pull request #10725 from filecoin-project/asr/merge-releases-in…
arajasek Apr 21, 2023
abbb74c
feat: set version to 1.23.0
arajasek Apr 21, 2023
19d8f79
Small v1.23.0 changelog changes
rjan90 Apr 21, 2023
b748412
Reduce LOTUS_FMV_CONCURRENCY
rjan90 Apr 21, 2023
b06cba1
Merge pull request #10726 from filecoin-project/asr/prep-1230
arajasek Apr 21, 2023
4d2765e
chore: deps: update to FFI v1.23.0
arajasek Apr 21, 2023
8dec6a1
fix: test: Simulate call on parents's parents
arajasek Apr 21, 2023
5794b22
Merge pull request #10729 from filecoin-project/asr/update-ffi
arajasek Apr 21, 2023
df80c4c
Merge branch 'releases' into asr/release-1230
arajasek Apr 23, 2023
4ff1d1d
feat: itests should run on latest network version
arajasek Apr 23, 2023
f3969cd
Update splitstore test helpers usage of create miner
ZenGround0 Apr 23, 2023
5e6e011
fix: FEVM_tests: update recursive limits
arajasek Apr 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
420 changes: 275 additions & 145 deletions .circleci/config.yml

Large diffs are not rendered by default.

182 changes: 113 additions & 69 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ executors:
golang:
docker:
# Must match GO_VERSION_MIN in project root
- image: cimg/go:1.18.8
- image: cimg/go:1.19.7
resource_class: medium+
golang-2xl:
docker:
# Must match GO_VERSION_MIN in project root
- image: cimg/go:1.19.7
resource_class: 2xlarge
ubuntu:
docker:
- image: ubuntu:20.04

commands:
prepare:
build-platform-specific:
parameters:
linux:
default: true
Expand All @@ -31,22 +36,13 @@ commands:
steps:
- checkout
- git_fetch_all_tags
- run: git submodule sync
- run: git submodule update --init
- when:
condition: <<parameters.linux>>
steps:
- run:
name: Check Go Version
command: |
v=`go version | { read _ _ v _; echo ${v#go}; }`
if [["[[ $v != `cat GO_VERSION_MIN` ]]"]]; then
echo "GO_VERSION_MIN file does not match the go version being used."
echo "Please update image to cimg/go:`cat GO_VERSION_MIN` or update GO_VERSION_MIN to $v."
exit 1
fi
- run: sudo apt-get update
- run: sudo apt-get install ocl-icd-opencl-dev libhwloc-dev
- run: sudo apt-get install python-is-python3

- install-ubuntu-deps
- check-go-version
- when:
condition: <<parameters.darwin>>
steps:
Expand All @@ -67,8 +63,7 @@ commands:
name: Install Rust
command: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
- run: git submodule sync
- run: git submodule update --init
- run: make deps lotus
download-params:
steps:
- restore_cache:
Expand All @@ -77,7 +72,7 @@ commands:
- 'v26-2k-lotus-params'
paths:
- /var/tmp/filecoin-proof-parameters/
- run: ./lotus fetch-params 2048
- run: ./lotus fetch-params 2048
- save_cache:
name: Save parameters cache
key: 'v26-2k-lotus-params'
Expand All @@ -99,12 +94,43 @@ commands:
name: fetch all tags
command: |
git fetch --all
install-ubuntu-deps:
steps:
- run: sudo apt-get update
- run: sudo apt-get install ocl-icd-opencl-dev libhwloc-dev
check-go-version:
steps:
- run: |
v=`go version | { read _ _ v _; echo ${v#go}; }`
if [["[[ $v != `cat GO_VERSION_MIN` ]]"]]; then
echo "GO_VERSION_MIN file does not match the go version being used."
echo "Please update image to cimg/go:`cat GO_VERSION_MIN` or update GO_VERSION_MIN to $v."
exit 1
fi

jobs:
build:
executor: golang
working_directory: ~/lotus
steps:
- checkout
- git_fetch_all_tags
- run: git submodule sync
- run: git submodule update --init
- install-ubuntu-deps
- check-go-version
- run: make deps lotus
- persist_to_workspace:
root: ~/
paths:
- "lotus"
mod-tidy-check:
executor: golang
working_directory: ~/lotus
steps:
- prepare
- install-ubuntu-deps
- attach_workspace:
at: ~/
- run: go mod tidy -v
- run:
name: Check git diff
Expand All @@ -115,13 +141,14 @@ jobs:
test:
description: |
Run tests with gotestsum.
working_directory: ~/lotus
parameters: &test-params
executor:
type: executor
default: golang
go-test-flags:
type: string
default: "-timeout 30m"
default: "-timeout 20m"
description: Flags passed to go test.
target:
type: string
Expand All @@ -130,21 +157,22 @@ jobs:
proofs-log-test:
type: string
default: "0"
get-params:
type: boolean
default: false
suite:
type: string
default: unit
description: Test suite name to report to CircleCI.
gotestsum-format:
type: string
default: standard-verbose
description: gotestsum format. https://github.com/gotestyourself/gotestsum#format
executor: << parameters.executor >>
steps:
- prepare
- run:
command: make deps lotus
no_output_timeout: 30m
- download-params
- install-ubuntu-deps
- attach_workspace:
at: ~/
- when:
condition: << parameters.get-params >>
steps:
- download-params
- run:
name: go test
environment:
Expand All @@ -155,19 +183,19 @@ jobs:
mkdir -p /tmp/test-reports/<< parameters.suite >>
mkdir -p /tmp/test-artifacts
gotestsum \
--format << parameters.gotestsum-format >> \
--format standard-verbose \
--junitfile /tmp/test-reports/<< parameters.suite >>/junit.xml \
--jsonfile /tmp/test-artifacts/<< parameters.suite >>.json \
-- \
<< parameters.go-test-flags >> \
<< parameters.target >>
--packages="<< parameters.target >>" \
-- << parameters.go-test-flags >>
no_output_timeout: 30m
- store_test_results:
path: /tmp/test-reports
- store_artifacts:
path: /tmp/test-artifacts/<< parameters.suite >>.json

test-conformance:
working_directory: ~/lotus
description: |
Run tests using a corpus of interoperable test vectors for Filecoin
implementations to test their correctness and compliance with the Filecoin
Expand All @@ -183,10 +211,9 @@ jobs:
submodule is used.
executor: << parameters.executor >>
steps:
- prepare
- run:
command: make deps lotus
no_output_timeout: 30m
- install-ubuntu-deps
- attach_workspace:
at: ~/
- download-params
- when:
condition:
Expand Down Expand Up @@ -229,7 +256,7 @@ jobs:
build-linux-amd64:
executor: golang
steps:
- prepare
- build-platform-specific
- run: make lotus lotus-miner lotus-worker
- run:
name: check tag and version output match
Expand All @@ -248,7 +275,7 @@ jobs:
macos:
xcode: "13.4.1"
steps:
- prepare:
- build-platform-specific:
linux: false
darwin: true
darwin-architecture: amd64
Expand All @@ -272,7 +299,7 @@ jobs:
resource_class: filecoin-project/self-hosted-m1
steps:
- run: echo 'export PATH=/opt/homebrew/bin:"$PATH"' >> "$BASH_ENV"
- prepare:
- build-platform-specific:
linux: false
darwin: true
darwin-architecture: arm64
Expand Down Expand Up @@ -330,16 +357,18 @@ jobs:

gofmt:
executor: golang
working_directory: ~/lotus
steps:
- prepare
- run:
command: "! go fmt ./... 2>&1 | read"

gen-check:
executor: golang
working_directory: ~/lotus
steps:
- prepare
- run: make deps
- install-ubuntu-deps
- attach_workspace:
at: ~/
- run: go install golang.org/x/tools/cmd/goimports
- run: go install github.com/hannahhoward/cbor-gen-for
- run: make gen
Expand All @@ -349,50 +378,44 @@ jobs:

docs-check:
executor: golang
working_directory: ~/lotus
steps:
- prepare
- install-ubuntu-deps
- attach_workspace:
at: ~/
- run: go install golang.org/x/tools/cmd/goimports
- run: zcat build/openrpc/full.json.gz | jq > ../pre-openrpc-full
- run: zcat build/openrpc/miner.json.gz | jq > ../pre-openrpc-miner
- run: zcat build/openrpc/worker.json.gz | jq > ../pre-openrpc-worker
- run: make deps
- run: make docsgen
- run: zcat build/openrpc/full.json.gz | jq > ../post-openrpc-full
- run: zcat build/openrpc/miner.json.gz | jq > ../post-openrpc-miner
- run: zcat build/openrpc/worker.json.gz | jq > ../post-openrpc-worker
- run: diff ../pre-openrpc-full ../post-openrpc-full && diff ../pre-openrpc-miner ../post-openrpc-miner && diff ../pre-openrpc-worker ../post-openrpc-worker && git --no-pager diff && git --no-pager diff --quiet

lint: &lint
lint-all:
description: |
Run golangci-lint.
working_directory: ~/lotus
parameters:
executor:
type: executor
default: golang
concurrency:
type: string
default: '2'
description: |
Concurrency used to run linters. Defaults to 2 because NumCPU is not
aware of container CPU limits.
args:
type: string
default: ''
description: |
Arguments to pass to golangci-lint
executor: << parameters.executor >>
steps:
- prepare
- run:
command: make deps
no_output_timeout: 30m
- install-ubuntu-deps
- attach_workspace:
at: ~/
- run:
name: Lint
command: |
golangci-lint run -v --timeout 2m \
--concurrency << parameters.concurrency >> << parameters.args >>
lint-all:
<<: *lint
golangci-lint run -v --timeout 10m \
--concurrency 4 << parameters.args >>

build-docker:
description: >
Expand Down Expand Up @@ -494,37 +517,58 @@ jobs:
extra_build_args: --target <<parameters.image>> --build-arg GOFLAGS=-tags=<<parameters.network>>

workflows:
version: 2.1
ci:
jobs:
- build
- lint-all:
concurrency: "16" # expend all docker 2xlarge CPUs.
- mod-tidy-check
- gofmt
- gen-check
- docs-check
requires:
- build
- mod-tidy-check:
requires:
- build
- gofmt:
requires:
- build
- gen-check:
requires:
- build
- docs-check:
requires:
- build

[[- range $file := .ItestFiles -]]
[[ with $name := $file | stripSuffix ]]
- test:
name: test-itest-[[ $name ]]
requires:
- build
suite: itest-[[ $name ]]
target: "./itests/[[ $file ]]"
[[ end ]]
[[- end -]]
[[- if or (eq $name "worker") (eq $name "deals_concurrent") (eq $name "wdpost_worker_config")]]
executor: golang-2xl
[[- end]]
[[- end ]][[- end]]

[[range $suite, $pkgs := .UnitSuites]]
[[- range $suite, $pkgs := .UnitSuites]]
- test:
name: test-[[ $suite ]]
requires:
- build
suite: utest-[[ $suite ]]
target: "[[ $pkgs ]]"
[[if eq $suite "unit-cli"]]get-params: true[[end]]
[[- if eq $suite "unit-rest"]]executor: golang-2xl[[end]]
[[- end]]
- test:
go-test-flags: "-run=TestMulticoreSDR"
requires:
- build
suite: multicore-sdr-check
target: "./storage/sealer/ffiwrapper"
proofs-log-test: "1"
- test-conformance:
requires:
- build
suite: conformance
target: "./conformance"

Expand Down
Loading