Skip to content

Commit

Permalink
GitHub: fix matrix, package log files before upload
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guggero committed Oct 21, 2021
1 parent 423de4d commit 4e224fe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,19 @@ jobs:
# Allow other tests in the matrix to continue if one fails.
fail-fast: false
matrix:
integration_type:
- backend=btcd
- backend=bitcoind
- backend="bitcoind notxindex"
- backend=bitcoind dbbackend=etcd
- backend=bitcoind dbbackend=postgres
- backend=neutrino
include:
- name: btcd
args: backend=btcd
- name: bitcoind
args: backend=bitcoind
- name: bitcoind-notxindex
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:
- name: git checkout
uses: actions/checkout@v2
Expand All @@ -281,15 +287,19 @@ jobs:
- name: install bitcoind
run: ./scripts/install_bitcoind.sh

- name: run ${{ matrix.unit_type }}
run: make itest-parallel ${{ matrix.unit_type }}
- name: run ${{ matrix.name }}
run: make itest-parallel ${{ matrix.args }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
- name: Zip log files on failure
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() }}
with:
name: logs-itest-${{ job.id }}
path: lntest/itest/**/*.log
name: logs-itest-${{ matrix.name }}
path: logs-itest-${{ matrix.name }}.zip
retention-days: 5

########################
Expand Down Expand Up @@ -324,12 +334,16 @@ jobs:
- name: run itest
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
if: ${{ failure() }}
with:
name: logs-itest-windows
path: lntest/itest/**/*.log
path: logs-itest-windows.zip
retention-days: 5

########################
Expand Down
3 changes: 3 additions & 0 deletions docs/release-notes/release-notes-0.14.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

* [Fix REST/WebSocket API itest that lead to overall test
timeout](https://github.com/lightningnetwork/lnd/pull/5845).

## Database

* [Ensure single writer for legacy
Expand Down

0 comments on commit 4e224fe

Please sign in to comment.