Nikola Divic
811bc62d65
test: cli test setup & test chain head
...
CLI actions lack unit tests. I decided to use the approach similar to
what I found in `send_test.go` using gomock, but I don't rely on custom
"service" implementations but mock the whole FullNode API.
This first commit validates the test setup by testing the simplest method
of the chain category, e.g. `chain head`.
This requires a minor refactor of the CLI action code:
- The constructor (`GetFullNodeAPI`) checks if there's an injected mock
API in the app Metadata and uses that in unit tests.
- Actions shouldn't use raw `fmt.*` but instead write to the `app.Writer`
so the CLI output is testable
2022-02-08 17:15:45 +01:00
Łukasz Magiera
51643caf60
Merge pull request #7835 from filecoin-project/bloxico/system-test-matrix
...
misc: api: Annotate lotus tests according to listed behaviors
2022-01-31 12:23:09 +01:00
vyzo
ff10e0eaf1
Merge pull request #7999 from filecoin-project/feat/splistore-refactors
...
some basic splitstore refactors
2022-01-28 13:55:16 +02:00
Darko Brdareski
6b8f526df3
Fix merge
2022-01-27 11:06:04 +01:00
Darko Brdareski
e51ce5c508
Merge remote-tracking branch 'upstream/master' into bloxico/system-test-matrix
2022-01-27 10:57:56 +01:00
Darko Brdareski
8c41e17c93
Fix typo in client_test annotations
2022-01-27 10:56:33 +01:00
vyzo
f07ce297f6
optimize slice allocations in walk
2022-01-26 21:55:24 +02:00
vyzo
a87239e802
avoid extraneous assignment
2022-01-26 21:48:03 +02:00
Łukasz Magiera
3e6c482229
Merge pull request #8005 from filecoin-project/feat/mpool-cache-statenonces
...
feat: mpool: Cache state nonces
2022-01-26 16:22:12 +01:00
Łukasz Magiera
176ecd4c3b
mpool: Cache state nonces
2022-01-26 15:39:58 +01:00
vyzo
fe47d6a1a4
fix check and warmup for parallel walk
2022-01-26 09:01:51 +02:00
vyzo
10f2445a99
use minimum of 2 workers
2022-01-25 21:37:48 +02:00
Aayush Rajasekaran
f1b24598f5
Merge pull request #7998 from filecoin-project/arajasek-patch-3
...
chore: sealer: quieten a log
2022-01-25 12:56:30 -05:00
Aayush Rajasekaran
2d0929e305
remove a log
2022-01-25 12:55:56 -05:00
vyzo
8e01e73de4
dynamically compute number of workers for parallel chain walk
2022-01-25 19:47:58 +02:00
vyzo
7c8edf5632
parallelize walkChain
2022-01-25 17:29:02 +02:00
vyzo
25284b5325
refactor: eliminate distinction between markset and markset visitors
2022-01-25 16:31:45 +02:00
Łukasz Magiera
06d2ac65b5
Merge pull request #7995 from filecoin-project/arajasek-patch-2
...
chore: build: make the OhSnap epoch configurable by an envvar for devnets
2022-01-25 10:51:26 +01:00
Łukasz Magiera
e3888b38bb
Merge pull request #7993 from filecoin-project/arajasek-patch-1
...
chore: chain: fix log
2022-01-25 10:50:47 +01:00
Aayush Rajasekaran
92e6f29cc8
chore: sealer: quieten a log
2022-01-24 18:28:52 -05:00
raulk
a2468656e4
Merge pull request #7996 from filecoin-project/raulk/tvx-network-version
...
tvx: supply network version when extracting messages.
2022-01-24 20:50:51 +00:00
Aayush Rajasekaran
0358ad83cb
Update params_2k.go
2022-01-24 15:44:20 -05:00
Raúl Kripalani
3aab77af8d
tvx: add missing network upgrade names.
2022-01-24 20:13:04 +00:00
Raúl Kripalani
85447abe7f
tvx: supply network version when extracting messages.
2022-01-24 20:06:07 +00:00
Aayush Rajasekaran
71c6d05902
chore: chain: fix log
2022-01-24 11:18:01 -05:00
Łukasz Magiera
6080431383
Merge pull request #7986 from filecoin-project/asr/more-fixes-master
...
fix: sealer: manager should lock Unsealed for ReplicaUpdate
2022-01-21 17:38:23 +01:00
Aayush
5cafdc2f29
fix: sealer: manager should lock Unsealed for ReplicaUpdate
2022-01-21 11:12:12 -05:00
Aayush Rajasekaran
ff845aa793
Merge pull request #7977 from filecoin-project/chore/sealtasks-comment
...
chore: remove inaccurate comment in sealtasks
2022-01-21 10:53:04 -05:00
Łukasz Magiera
cdeac2bca0
Merge pull request #7984 from filecoin-project/deps/update-libp2p
...
update go-libp2p to v0.18.0-rc2
2022-01-21 10:11:27 +01:00
vyzo
6e5f521463
update go-libp2p to v0.18.0-rc2
2022-01-21 10:45:45 +02:00
Aayush Rajasekaran
abdad1f6d3
Merge pull request #7983 from filecoin-project/asr/snap-paths-master
...
Fix: sealer: ReplicaUpdate should fetch the correct files
2022-01-20 15:21:18 -05:00
Aayush
752f4a3d67
Fix: sealer: ReplicaUpdate should fetch the correct files
2022-01-20 15:06:53 -05:00
Łukasz Magiera
c315111bc7
Merge pull request #7969 from filecoin-project/feat/libp2p18
...
libp2p v0.18.0-rc1 and initial resource manager integration
2022-01-20 12:59:39 +01:00
Dirk McCormick
8a47a71772
feat: update to go-fil-markets v1.19.0
2022-01-20 11:46:17 +01:00
vyzo
73ec10a49e
close the rcmgr on shutdown
2022-01-20 11:47:39 +02:00
vyzo
325a4c0e5b
fix lint
2022-01-20 11:46:39 +02:00
vyzo
b360c9403f
make gen and friends
2022-01-20 11:44:01 +02:00
vyzo
ca4ee1e8cf
fix issues with fil-markets/data-transfer updates
2022-01-20 11:38:37 +02:00
vyzo
2e5474e864
update go-fil-markets@v0.19.0-rc1
2022-01-20 11:37:08 +02:00
vyzo
19c8ea3288
add description for net stat and limit commands
2022-01-20 11:36:11 +02:00
vyzo
6260271b78
go mod: update go-libp2p-resource-manager@v0.1.2
2022-01-20 11:36:11 +02:00
vyzo
83427c478f
go mod: update go-yamux@v3.0.2
2022-01-20 11:36:11 +02:00
vyzo
0870f48b5c
fix mocknet.New invocation
2022-01-20 11:36:11 +02:00
vyzo
c3fb68545a
fix mocknet.New invocation
2022-01-20 11:36:11 +02:00
vyzo
aa599bfaf9
go mod: update go-libp2p-pubsub
2022-01-20 11:36:11 +02:00
vyzo
62c0f35b5a
go mod: go-libp2p-resource-manager@v0.1.1
2022-01-20 11:36:11 +02:00
vyzo
0de1566eaf
add net stat and limit cli
2022-01-20 11:36:11 +02:00
vyzo
39bf59d372
add examples to docgen
2022-01-20 11:36:11 +02:00
vyzo
554848fe6b
add resource manager Net(Set)Limit api
2022-01-20 11:36:11 +02:00
vyzo
d05d5bcb70
add resource manager NetStat api
2022-01-20 11:36:11 +02:00