ci(getblocktemplate): run getblocktemplate-rpcs feature tests in CI (#5435)
* test all features * increase task timeout * add a new task for feature tests * add `getblocktemplate-rpcs` tests to docker integration * run the getblocktemplate-rpcs feature as a separated step in docker * move getblocktemplate-rpcs in docker as a separated task
This commit is contained in:
parent
a2a75059d3
commit
b933f99285
|
@ -180,7 +180,8 @@ jobs:
|
||||||
# Run all the zebra tests, including tests that are ignored by default.
|
# Run all the zebra tests, including tests that are ignored by default.
|
||||||
# Skips tests that need a cached state disk or a lightwalletd binary.
|
# Skips tests that need a cached state disk or a lightwalletd binary.
|
||||||
#
|
#
|
||||||
# (We activate the gRPC feature to avoid recompiling `zebrad`, but we don't actually run any gRPC tests.)
|
# - We run all the tests behind the `getblocktemplate-rpcs` feature as a separated step.
|
||||||
|
# - We activate the gRPC feature to avoid recompiling `zebrad`, but we don't actually run any gRPC tests.
|
||||||
test-all:
|
test-all:
|
||||||
name: Test all
|
name: Test all
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -195,7 +196,26 @@ jobs:
|
||||||
- name: Run all zebrad tests
|
- name: Run all zebrad tests
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
docker pull ${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
docker run --name zebrad-tests -t ${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features lightwalletd-grpc-tests --workspace -- --nocapture --include-ignored
|
docker run --name zebrad-tests -t ${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features "lightwalletd-grpc-tests" --workspace -- --nocapture --include-ignored
|
||||||
|
|
||||||
|
# zebrad tests without cached state with `getblocktemplate-rpcs` feature
|
||||||
|
|
||||||
|
# Same as above but we run all the tests behind the `getblocktemplate-rpcs` feature.
|
||||||
|
test-all-getblocktemplate-rpcs:
|
||||||
|
name: Test all with getblocktemplate-rpcs feature
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
||||||
|
steps:
|
||||||
|
- name: Inject slug/short variables
|
||||||
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
with:
|
||||||
|
short-length: 7
|
||||||
|
|
||||||
|
- name: Run all zebrad tests
|
||||||
|
run: |
|
||||||
|
docker pull ${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
|
docker run --name zebrad-tests -t ${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features "lightwalletd-grpc-tests getblocktemplate-rpcs" --workspace -- --nocapture --include-ignored
|
||||||
|
|
||||||
# Run state tests with fake activation heights.
|
# Run state tests with fake activation heights.
|
||||||
#
|
#
|
||||||
|
|
|
@ -167,6 +167,12 @@ jobs:
|
||||||
command: test
|
command: test
|
||||||
args: --verbose --workspace -- --nocapture
|
args: --verbose --workspace -- --nocapture
|
||||||
|
|
||||||
|
- name: Run tests with getblocktemplate-rpcs feature
|
||||||
|
uses: actions-rs/cargo@v1.0.3
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --features getblocktemplate-rpcs --verbose --workspace -- --nocapture
|
||||||
|
|
||||||
# Explicitly run any tests that are usually #[ignored]
|
# Explicitly run any tests that are usually #[ignored]
|
||||||
|
|
||||||
- name: Run zebrad large sync tests
|
- name: Run zebrad large sync tests
|
||||||
|
|
Loading…
Reference in New Issue