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

Run blockbeat PRs as a whole #16

Open
wants to merge 178 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
38f9f79
wtwire: s/harness/wireMsgHarness
morehouse Nov 13, 2024
e2f7eb9
wtwire: move message prefixing to the harness
morehouse Nov 13, 2024
567ff5d
wtwire: remove incorrect function comment
morehouse Nov 13, 2024
9dd9212
wtwire: explain emptyMsg parameter in function comment
morehouse Nov 13, 2024
669ebf4
fn: stress test GoroutineManager.Stop calls
starius Nov 14, 2024
891e962
fn: GoroutineManager.Go returns bool, not error
starius Nov 14, 2024
fe03aa0
peer+lnd: fix peer blocking on node shutdown
yyforyongyu Nov 16, 2024
3ab5669
docs: update release notes
yyforyongyu Nov 18, 2024
90ed0fe
lntest: nil check edges
ellemouton Nov 18, 2024
7ed2c10
sweep: update storeRecord to include utxo index
Roasbeef Nov 16, 2024
9f72ce7
config: remove default values for deprecated fields
ellemouton Nov 18, 2024
0e999ed
Merge pull request #9275 from yyforyongyu/fix-peer-shutdown
Roasbeef Nov 19, 2024
3bae7f3
protofsm: add new package for driving generic protocol FSMs
Roasbeef Jan 3, 2024
7f69ceb
protofsm: add daemon events for spend+conf registration
Roasbeef Jan 24, 2024
d17e737
protofsm: add optional daemon event on init
Roasbeef Jan 24, 2024
bf10e31
protofsm: convert state machine args into config
Roasbeef Jan 26, 2024
424ae09
protofsm: add ability for state machine to consume wire msgs
Roasbeef Jan 26, 2024
44f0353
protofsm: add a Name() method to the env
Roasbeef Jan 26, 2024
96a98bc
protofsm: add logging
Roasbeef Feb 6, 2024
35ea05d
protofsm: add ErrorReporter interface
Roasbeef Feb 29, 2024
d805c0f
protofsm: add CustomPollInterval for mocking purposes
Roasbeef Feb 29, 2024
847c1a7
protofsm: add SpendMapper to craft custom spend events
Roasbeef Feb 29, 2024
6de0615
protofsm: allow multiple internal events to be emitted
Roasbeef Mar 5, 2024
2e3c0b2
protofsm: use new fn.GoroutineManager to manage goroutines
Roasbeef Nov 14, 2024
1200b75
chainntnfs: always notify txns before block
yyforyongyu Nov 10, 2024
4ff1f19
chainntnfs: make sure notification is sent to the whole set
yyforyongyu Nov 1, 2024
0c3b2b5
docs: update release notes
yyforyongyu Nov 12, 2024
7695880
chainntnfs: add new method `notifyNumConfsLeft`
yyforyongyu Nov 19, 2024
db6901c
chainntnfs: skip duplicate `numConfsLeft` notifications
yyforyongyu Nov 19, 2024
d14f4c7
Merge pull request #9279 from ellemouton/misc
ellemouton Nov 19, 2024
f4a1299
Merge pull request #9272 from lightningnetwork/sweeper-output-index
guggero Nov 19, 2024
c136901
Merge pull request #9270 from starius/goroutine-manager-bool
guggero Nov 19, 2024
411ad1d
Merge pull request #9271 from morehouse/simplify_fuzz_wtwire
guggero Nov 19, 2024
aaa0abc
wtdb: export versions of wtclient.db
ziggie1984 Nov 19, 2024
1bc25c1
config: fix "lnd --debuglevel show" command
starius Nov 18, 2024
3360d28
config: improve error message
starius Nov 18, 2024
64c660c
itest: test "lnd --debuglevel=show" command
starius Nov 18, 2024
9519a23
Merge pull request #9278 from starius/debuglevel-show-no-checks
guggero Nov 19, 2024
e1df8e9
Merge pull request #9281 from ziggie1984/export-towerclientdb-version
guggero Nov 19, 2024
c3fac0e
Merge pull request #8337 from lightningnetwork/protofsm
Roasbeef Nov 19, 2024
ab3b3c8
Merge pull request #9258 from yyforyongyu/fix-notification
Roasbeef Nov 19, 2024
ea72db7
docs: fix release notes
guggero Nov 19, 2024
a101950
Merge pull request #9283 from guggero/fix-release-notes
guggero Nov 19, 2024
5d5f04b
sweep: add new state `TxFatal` for erroneous sweepings
yyforyongyu Apr 30, 2024
577ac3a
sweep: add new error `ErrZeroFeeRateDelta`
yyforyongyu Oct 25, 2024
f74af55
sweep: add new interface method `Immediate`
yyforyongyu Oct 25, 2024
0cdba3c
sweep: handle inputs locally instead of relying on the tx
yyforyongyu Oct 25, 2024
29481a7
sweep: add `handleInitialBroadcast` to handle initial broadcast
yyforyongyu Oct 25, 2024
227d230
sweep: remove redundant error from `Broadcast`
yyforyongyu Apr 30, 2024
b6f3197
sweep: add method `handleBumpEventError` and fix `markInputFailed`
yyforyongyu Apr 30, 2024
aa230b4
sweep: add method `isMature` on `SweeperInput`
yyforyongyu Apr 30, 2024
e51efc5
sweep: make sure defaultDeadline is derived from the mature height
yyforyongyu Apr 30, 2024
362a664
sweep: remove redundant loopvar assign
yyforyongyu Oct 25, 2024
8e44ab3
sweep: break `initialBroadcast` into two steps
yyforyongyu Nov 7, 2024
b6c7165
sweep: make sure nil tx is handled
yyforyongyu Nov 7, 2024
25abddd
chainio: introduce `chainio` to handle block synchronization
yyforyongyu Jun 27, 2024
0e706dd
chainio: implement `Blockbeat`
yyforyongyu Jun 27, 2024
b4a31a4
chainio: add helper methods to dispatch beats
yyforyongyu Oct 31, 2024
f25c02c
chainio: add `BlockbeatDispatcher` to dispatch blockbeats
yyforyongyu Jun 27, 2024
b5a86b1
chainio: add partial implementation of `Consumer` interface
yyforyongyu Oct 17, 2024
edd2f01
multi: implement `Consumer` on subsystems
yyforyongyu Oct 29, 2024
91e2b5f
sweep: remove block subscription in `UtxoSweeper` and `TxPublisher`
yyforyongyu Jun 4, 2024
2c09d10
sweep: remove redundant notifications during shutdown
yyforyongyu Nov 18, 2024
b02e537
contractcourt: remove `waitForHeight` in resolvers
yyforyongyu Jun 4, 2024
da0c370
contractcourt: remove block subscription in chain arbitrator
yyforyongyu Oct 29, 2024
d075ed4
contractcourt: remove block subscription in channel arbitrator
yyforyongyu Oct 29, 2024
5a6c8bf
contractcourt: remove the `immediate` param used in `Resolve`
yyforyongyu Jun 4, 2024
8c890eb
contractcourt: start channel arbitrator with blockbeat
yyforyongyu Oct 29, 2024
d56dbf9
multi: start consumers with a starting blockbeat
yyforyongyu Oct 29, 2024
db3a0fb
lnd: add new method `startLowLevelServices`
yyforyongyu Oct 17, 2024
189ccad
lnd: start `blockbeatDispatcher` and register consumers
yyforyongyu Oct 17, 2024
7bbae3c
contractcourt: fix linter `funlen`
yyforyongyu Oct 29, 2024
3706432
multi: improve loggings
yyforyongyu May 22, 2024
736edda
chainio: use `errgroup` to limit num of goroutines
yyforyongyu Nov 19, 2024
9b39291
contractcourt: add verbose logging in resolvers
yyforyongyu Jun 20, 2024
b0e56a0
contractcourt: add spend path helpers in timeout/success resolver
yyforyongyu Nov 13, 2024
1bf1547
contractcourt: add sweep senders in `htlcSuccessResolver`
yyforyongyu Nov 14, 2024
397b084
contractcourt: add resolver handlers in `htlcSuccessResolver`
yyforyongyu Nov 14, 2024
569c8ce
contractcourt: remove redundant return value in `claimCleanUp`
yyforyongyu Nov 14, 2024
9dc1f8e
contractcourt: add sweep senders in `htlcTimeoutResolver`
yyforyongyu Nov 14, 2024
7c813f1
contractcourt: add methods to checkpoint states
yyforyongyu Jul 16, 2024
977b455
contractcourt: add resolve handlers in `htlcTimeoutResolver`
yyforyongyu Jul 16, 2024
587f35a
contractcourt: add `Launch` method to anchor/breach resolver
yyforyongyu Jun 24, 2024
13930c7
contractcourt: add `Launch` method to commit resolver
yyforyongyu Jun 20, 2024
a34dd11
contractcourt: add `Launch` method to htlc success resolver
yyforyongyu Jul 15, 2024
977c972
contractcourt: add `Launch` method to htlc timeout resolver
yyforyongyu Jul 16, 2024
4868ae5
invoices: exit early when the subscriber chan is nil
yyforyongyu Nov 17, 2024
1602ec0
contractcourt: add `Launch` method to incoming contest resolver
yyforyongyu Nov 17, 2024
4b9d158
contractcourt: add `Launch` method to outgoing contest resolver
yyforyongyu Jun 20, 2024
fc3a2b6
contractcourt: fix concurrent access to `resolved`
yyforyongyu Jul 10, 2024
9baaf45
contractcourt: fix concurrent access to `launched`
yyforyongyu Jul 11, 2024
df7a9a7
contractcourt: break `launchResolvers` into two steps
yyforyongyu Jun 25, 2024
3456f2e
contractcourt: fix race access to `c.activeResolvers`
yyforyongyu Jul 1, 2024
29305e3
contractcourt: implement `Consumer` on `chainWatcher`
yyforyongyu Jun 20, 2024
186d2ae
contractcourt: register spend notification during init
yyforyongyu Nov 16, 2024
3ce5046
contractcourt: add method `handleCommitSpend`
yyforyongyu Nov 16, 2024
3af80d8
contractcourt: handle blockbeat in `chainWatcher`
yyforyongyu Nov 16, 2024
500f4e7
contractcourt: notify blockbeat for `chainWatcher`
yyforyongyu Nov 16, 2024
3de3311
contractcourt: use `ShortChanID` instead of `ChannelPoint` in log
yyforyongyu Jun 28, 2024
503c335
multi: add new method `ChainArbitrator.RedispatchBlockbeat`
yyforyongyu Nov 13, 2024
292057b
contractcourt: add close event handlers in `ChannelArbitrator`
yyforyongyu Nov 16, 2024
96474de
contractcourt: process channel close event on new beat
yyforyongyu Nov 13, 2024
1511cb3
multi: optimize loggings around changes from `blockbeat`
yyforyongyu Oct 17, 2024
551c5df
lntest+itest: fix `testSweepCPFPAnchorOutgoingTimeout`
yyforyongyu Oct 24, 2024
4f92096
itest: fix `testSweepCPFPAnchorIncomingTimeout`
yyforyongyu Oct 24, 2024
3e8e1d0
itest: fix testSweepHTLCs`
yyforyongyu Oct 24, 2024
1275c6b
itest: fix `testSweepCommitOutputAndAnchor`
yyforyongyu Oct 24, 2024
dc89c20
itest: fix `testBumpForceCloseFee`
yyforyongyu Oct 17, 2024
809448f
itest: fix `testPaymentSucceededHTLCRemoteSwept`
yyforyongyu Oct 24, 2024
84deeba
lntest+itest: start flattening the multi-hop tests
yyforyongyu Oct 17, 2024
b04f393
itest: simplify and flatten `testMultiHopReceiverChainClaim`
yyforyongyu Oct 18, 2024
e574ae3
lntest+itest: flatten `testMultiHopLocalForceCloseOnChainHtlcTimeout`
yyforyongyu Oct 18, 2024
b00115c
lntest+itest: flatten `testMultiHopRemoteForceCloseOnChainHtlcTimeout`
yyforyongyu Oct 19, 2024
2d217cc
itest: flatten `testMultiHopHtlcLocalChainClaim`
yyforyongyu Oct 21, 2024
af8eda0
itest: flatten `testMultiHopHtlcRemoteChainClaim`
yyforyongyu Oct 22, 2024
2c900f1
itest: flatten `testMultiHopHtlcAggregation`
yyforyongyu Oct 23, 2024
5b6e2c3
itest: flatten `testHtlcTimeoutResolverExtractPreimageLocal`
yyforyongyu Oct 23, 2024
bfad634
itest: flatten `testHtlcTimeoutResolverExtractPreimageRemote`
yyforyongyu Oct 23, 2024
831f78e
itest: rename file to reflect the tests
yyforyongyu Oct 23, 2024
fe7c6b1
itest: remove unnecessary force close
yyforyongyu Oct 23, 2024
bcbf16f
itest: remove redundant block mining in `testFailingChannel`
yyforyongyu Oct 24, 2024
4d086c4
itest: remove redunant block mining in `testChannelFundingWithUnstabl…
yyforyongyu Oct 24, 2024
f667c86
itest: remove redudant block in `testPsbtChanFundingWithUnstableUtxos`
yyforyongyu Oct 24, 2024
8f9b8ca
itest: remove redundant blocks in channel backup tests
yyforyongyu Oct 24, 2024
5424555
itest+lntest: fix channel force close test
yyforyongyu Jun 29, 2024
c81242f
itest: flatten and fix `testWatchtower`
yyforyongyu Oct 25, 2024
8c527aa
itest: remove redundant block in multiple tests
yyforyongyu Oct 25, 2024
4cd430d
itest: assert payment status after sending
yyforyongyu Oct 24, 2024
75b6821
lntest+itest: remove the usage of `ht.AssertActiveHtlcs`
yyforyongyu Nov 5, 2024
70da1cd
htlcswitch: handle nil circuit properly when settling
yyforyongyu Nov 10, 2024
08b99f6
routing: fix nil pointer deference in `exitWithErr`
yyforyongyu Nov 7, 2024
682992e
lnwallet: add debug logs
yyforyongyu Nov 5, 2024
a1eb780
itest: print num of blocks for debugging
yyforyongyu Oct 25, 2024
978345d
itest: shuffle test cases to even out blocks mined in tranches
yyforyongyu Oct 24, 2024
23351c5
workflows: pass action ID as the shuffle seed
yyforyongyu Nov 7, 2024
ccfdaef
itest: remove direct reference to stanby nodes
yyforyongyu Oct 26, 2024
8d081a7
itest: remove the use of standby nodes
yyforyongyu Oct 26, 2024
cac4a50
itest+lntest: remove standby nodes
yyforyongyu Oct 26, 2024
e3dc1a5
itest: remove unnecessary channel close and node shutdown
yyforyongyu Oct 29, 2024
b45e389
lntest: make sure node is properly shut down
yyforyongyu Nov 2, 2024
9e8201f
itest: fix `testOpenChannelUpdateFeePolicy`
yyforyongyu Oct 29, 2024
c65cf0d
itest: fix spawning temp miner
yyforyongyu Oct 29, 2024
3d6aac9
itest: fix flake for neutrino backend
yyforyongyu Oct 30, 2024
fd845eb
itest: flatten PSBT funding test cases
yyforyongyu Oct 30, 2024
ebd9af4
itest: fix and document flake in sweeping tests
yyforyongyu Oct 30, 2024
7d67d3d
itest: remove loop in `wsTestCaseBiDirectionalSubscription`
yyforyongyu Oct 30, 2024
a53f8dd
itest: fix flake in `testRevokedCloseRetributionZeroValueRemoteOutput`
yyforyongyu Nov 2, 2024
4bdfe9e
itest: fix flake in `testSwitchOfflineDelivery`
yyforyongyu Nov 3, 2024
73314d8
itest+routing: fix flake in `runFeeEstimationTestCase`
yyforyongyu Nov 3, 2024
3a96cd3
itest: use `ht.CreateSimpleNetwork` whenever applicable
yyforyongyu Nov 3, 2024
1f488f7
itest: put mpp tests in one file
yyforyongyu Nov 4, 2024
14bec78
lntest+itest: remove `AssertNumActiveEdges`
yyforyongyu Nov 8, 2024
b4d180c
itest: fix flake in runPsbtChanFundingWithNodes
yyforyongyu Nov 10, 2024
d0d0e11
itest: optimize blocks mined in `testGarbageCollectLinkNodes`
yyforyongyu Nov 8, 2024
6b42af2
itest: break remote signer into independent cases
yyforyongyu Nov 8, 2024
3c5be8b
itest: break down channel restore commit types cases
yyforyongyu Nov 8, 2024
0956e19
itest: break down utxo selection funding tests
yyforyongyu Nov 8, 2024
4269b55
itest: break all multihop test cases
yyforyongyu Nov 8, 2024
b1af1de
itest: break down scid alias channel update tests
yyforyongyu Nov 8, 2024
5f84176
itest: break down open channel fee policy
yyforyongyu Nov 8, 2024
7a08466
itest: break down payment failed tests
yyforyongyu Nov 8, 2024
c195612
itest: break down channel backup restore tests
yyforyongyu Nov 8, 2024
8f20724
itest: break down wallet import account tests
yyforyongyu Nov 8, 2024
472ce69
itest: break down basic funding flow tests
yyforyongyu Nov 9, 2024
432e23d
itest: break down single hop send to route
yyforyongyu Nov 9, 2024
5ea0e70
itest: break down taproot tests
yyforyongyu Nov 9, 2024
ecd0802
itest: break down channel fundmax tests
yyforyongyu Nov 9, 2024
9b4ec21
itest: further reduce block mined in tests
yyforyongyu Nov 9, 2024
0078ac1
itest: track and skip flaky tests for windows
yyforyongyu Nov 7, 2024
82c1da7
lntest: increase node start timeout and payment benchmark timeout
yyforyongyu Nov 9, 2024
0cce06b
workflows: use `btcd` for macOS
yyforyongyu Nov 9, 2024
bf2331b
x - delete - focus CI on itest
yyforyongyu Nov 6, 2024
a6a7976
x - print test mined blocks
yyforyongyu Nov 1, 2024
6968e9f
x - trace for router
yyforyongyu Nov 10, 2024
1f0ec9f
x - mine fewer blocks in testEstimateRouteFee
yyforyongyu Nov 16, 2024
91eca88
itest: fix flake in `testPrivateUpdateAlias`
yyforyongyu Nov 16, 2024
67ac363
itest: fix flake in `update_pending_open_channels`
yyforyongyu Nov 16, 2024
1199fd3
x - itest: further reduce block mined in tests
yyforyongyu Nov 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
247 changes: 4 additions & 243 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,204 +34,6 @@ env:
GO_VERSION: 1.22.6

jobs:
########################
# SQLC code gen check
########################
sqlc-check:
name: Sqlc check
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'

- name: docker image cache
uses: satackey/[email protected]
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true

- name: Generate sql models
run: make sqlc-check

########################
# RPC and mobile compilation check
########################
rpc-check:
name: RPC and mobile compilation check
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'

- name: run check
run: make rpc-check

- name: run JSON/WASM stub compilation check
run: make rpc-js-compile

- name: build mobile RPC bindings
run: make mobile-rpc

- name: build mobile specific code
run: go build --tags="mobile" ./mobile

########################
# check commits
########################
check-commits:
if: github.event_name == 'pull_request'
name: check commits
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'

- name: fetch and rebase on ${{ github.base_ref }}
uses: ./.github/actions/rebase

- name: check commits
run: scripts/check-each-commit.sh upstream/${{ github.base_ref }}

########################
# lint code
########################
lint:
name: lint code
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'

- name: check code format
run: make fmt-check

- name: check go modules tidiness
run: make tidy-module-check

- name: lint proto files
run: make protolint

- name: lint
run: GOGC=50 make lint

########################
# cross compilation
########################
cross-compile:
name: cross compilation
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'
key-prefix: cross-compile

- name: build release for all architectures
run: make release

########################
# sample configuration check
########################
sample-conf-check:
name: sample configuration check
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'

- name: check default values in sample-lnd.conf file
run: make sample-conf-check

########################
# run unit tests
########################
unit-test:
name: run unit tests
runs-on: ubuntu-latest
strategy:
# Allow other tests in the matrix to continue if one fails.
fail-fast: false
matrix:
unit_type:
- btcd unit-cover
- unit tags="kvdb_etcd"
- unit tags="kvdb_postgres"
- unit tags="kvdb_sqlite"
- btcd unit-race
- unit-module

steps:
- name: git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: fetch and rebase on ${{ github.base_ref }}
if: github.event_name == 'pull_request'
uses: ./.github/actions/rebase

- name: git checkout fuzzing seeds
uses: actions/checkout@v3
with:
repository: lightninglabs/lnd-fuzz
path: lnd-fuzz

- name: rsync fuzzing seeds
run: rsync -a --ignore-existing lnd-fuzz/ ./

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'
key-prefix: unit-test

- name: install bitcoind
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION

- name: run ${{ matrix.unit_type }}
run: make ${{ matrix.unit_type }}

- name: Send coverage
uses: shogo82148/actions-goveralls@v1
if: matrix.unit_type == 'btcd unit-cover'
with:
path-to-profile: coverage.txt
flag-name: 'unit'
parallel: true


########################
# run ubuntu integration tests
########################
Expand Down Expand Up @@ -284,7 +86,7 @@ jobs:
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION

- name: run ${{ matrix.name }}
run: make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }}
run: make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}

- name: Send coverage
if: ${{ contains(matrix.args, 'cover=1') }}
Expand Down Expand Up @@ -332,7 +134,7 @@ jobs:
key-prefix: integration-test

- name: run itest
run: make itest-parallel tranches=${{ env.TRANCHES }} windows=1
run: make itest-parallel tranches=${{ env.TRANCHES }} windows=1 shuffleseed=${{ github.run_id }}

- name: kill any remaining lnd processes
if: ${{ failure() }}
Expand Down Expand Up @@ -375,14 +177,8 @@ jobs:
go-version: '${{ env.GO_VERSION }}'
key-prefix: integration-test

- name: install bitcoind
run: |
wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}.0/bitcoin-${BITCOIN_VERSION}.0-arm64-apple-darwin.tar.gz
tar zxvf bitcoin-${BITCOIN_VERSION}.0-arm64-apple-darwin.tar.gz
mv bitcoin-${BITCOIN_VERSION}.0 /tmp/bitcoin

- name: run itest
run: PATH=$PATH:/tmp/bitcoin/bin make itest-parallel tranches=${{ env.TRANCHES }} backend=bitcoind
run: PATH=$PATH:/tmp/bitcoin/bin make itest-parallel tranches=${{ env.TRANCHES }} shuffleseed=${{ github.run_id }}

- name: Zip log files on failure
if: ${{ failure() }}
Expand All @@ -397,45 +193,10 @@ jobs:
path: logs-itest-macos.zip
retention-days: 5

########################
# check pinned dependencies
########################
dep-pin:
name: check pinned dependencies
runs-on: ubuntu-latest
strategy:
# Allow other tests in the matrix to continue if one fails.
fail-fast: false
matrix:
pinned_dep:
- google.golang.org/grpc v1.59.0
- github.com/golang/protobuf v1.5.3

steps:
- name: git checkout
uses: actions/checkout@v3

- name: ensure dependencies at correct version
run: if ! grep -q "${{ matrix.pinned_dep }}" go.mod; then echo dependency ${{ matrix.pinned_dep }} should not be altered ; exit 1 ; fi

########################
# check PR updates release notes
########################
milestone-check:
name: check release notes updated
runs-on: ubuntu-latest
if: '!contains(github.event.pull_request.labels.*.name, ''no-changelog'')'
steps:
- name: git checkout
uses: actions/checkout@v3

- name: release notes check
run: scripts/check-release-notes.sh

# Notify about the completion of all coverage collecting jobs.
finish:
if: ${{ always() }}
needs: [unit-test, ubuntu-integration-test]
needs: [ubuntu-integration-test]
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ endif
itest-only: db-instance
@$(call print, "Running integration tests with ${backend} backend.")
rm -rf itest/*.log itest/.logs-*; date
EXEC_SUFFIX=$(EXEC_SUFFIX) scripts/itest_part.sh 0 1 $(TEST_FLAGS) $(ITEST_FLAGS) -test.v
EXEC_SUFFIX=$(EXEC_SUFFIX) scripts/itest_part.sh 0 1 $(SHUFFLE_SEED) $(TEST_FLAGS) $(ITEST_FLAGS) -test.v
$(COLLECT_ITEST_COVERAGE)

#? itest: Build and run integration tests
Expand All @@ -221,7 +221,7 @@ itest-race: build-itest-race itest-only
itest-parallel: build-itest db-instance
@$(call print, "Running tests")
rm -rf itest/*.log itest/.logs-*; date
EXEC_SUFFIX=$(EXEC_SUFFIX) scripts/itest_parallel.sh $(ITEST_PARALLELISM) $(NUM_ITEST_TRANCHES) $(TEST_FLAGS) $(ITEST_FLAGS)
EXEC_SUFFIX=$(EXEC_SUFFIX) scripts/itest_parallel.sh $(ITEST_PARALLELISM) $(NUM_ITEST_TRANCHES) $(SHUFFLE_SEED) $(TEST_FLAGS) $(ITEST_FLAGS)
$(COLLECT_ITEST_COVERAGE)

#? itest-clean: Kill all running itest processes
Expand Down
Loading
Loading