GitHub: fix matrix, package log files before upload

It turns out we were using the wrong matrix variable in the actual
make command and ran the same itest 6 times with no arguments, all
resulting in running the btcd test.

To avoid uploading too many files in individual requests, we zip them
first before uploading the zip itself.
This commit is contained in:
Oliver Gugger 2021-10-08 16:32:17 +02:00
parent 423de4d79a
commit 4e224fe0aa
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 32 additions and 15 deletions

View file

@ -251,13 +251,19 @@ jobs:
# Allow other tests in the matrix to continue if one fails. # Allow other tests in the matrix to continue if one fails.
fail-fast: false fail-fast: false
matrix: matrix:
integration_type: include:
- backend=btcd - name: btcd
- backend=bitcoind args: backend=btcd
- backend="bitcoind notxindex" - name: bitcoind
- backend=bitcoind dbbackend=etcd args: backend=bitcoind
- backend=bitcoind dbbackend=postgres - name: bitcoind-notxindex
- backend=neutrino args: backend="bitcoind notxindex"
- name: bitcoind-etcd
args: backend=bitcoind dbbackend=etcd
- name: bitcoind-postgres
args: backend=bitcoind dbbackend=postgres
- name: neutrino
args: backend=neutrino
steps: steps:
- name: git checkout - name: git checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -281,15 +287,19 @@ jobs:
- name: install bitcoind - name: install bitcoind
run: ./scripts/install_bitcoind.sh run: ./scripts/install_bitcoind.sh
- name: run ${{ matrix.unit_type }} - name: run ${{ matrix.name }}
run: make itest-parallel ${{ matrix.unit_type }} run: make itest-parallel ${{ matrix.args }}
- name: Upload Artifact - name: Zip log files on failure
uses: actions/upload-artifact@v2 if: ${{ failure() }}
run: 7z a logs-itest-${{ matrix.name }}.zip lntest/itest/**/*.log
- name: Upload log files on failure
uses: actions/upload-artifact@v2.2.4
if: ${{ failure() }} if: ${{ failure() }}
with: with:
name: logs-itest-${{ job.id }} name: logs-itest-${{ matrix.name }}
path: lntest/itest/**/*.log path: logs-itest-${{ matrix.name }}.zip
retention-days: 5 retention-days: 5
######################## ########################
@ -324,12 +334,16 @@ jobs:
- name: run itest - name: run itest
run: make itest-parallel windows=1 tranches=2 parallel=2 run: make itest-parallel windows=1 tranches=2 parallel=2
- name: Upload Artifact - name: Zip log files on failure
if: ${{ failure() }}
run: 7z a logs-itest-windows.zip lntest/itest/**/*.log
- name: Upload log files on failure
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: ${{ failure() }} if: ${{ failure() }}
with: with:
name: logs-itest-windows name: logs-itest-windows
path: lntest/itest/**/*.log path: logs-itest-windows.zip
retention-days: 5 retention-days: 5
######################## ########################

View file

@ -417,6 +417,9 @@ messages directly. There is no routing/path finding involved.
* [Include htlc amount in bandwidth hints](https://github.com/lightningnetwork/lnd/pull/5512). * [Include htlc amount in bandwidth hints](https://github.com/lightningnetwork/lnd/pull/5512).
* [Fix REST/WebSocket API itest that lead to overall test
timeout](https://github.com/lightningnetwork/lnd/pull/5845).
## Database ## Database
* [Ensure single writer for legacy * [Ensure single writer for legacy