fix(ci): Make reusable workflow job names match patch job names (#4466)
* Add blank names to reusable workflow jobs * Give each job a proper name * Update patch job names * Remove unnecessary quotes
This commit is contained in:
parent
083674de4e
commit
c006772180
|
|
@ -47,7 +47,7 @@ jobs:
|
||||||
- run: 'echo "No build required"'
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build images
|
name: Build / Build images
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: 'echo "No build required"'
|
- run: 'echo "No build required"'
|
||||||
|
|
@ -55,7 +55,6 @@ jobs:
|
||||||
test-all:
|
test-all:
|
||||||
name: Test all
|
name: Test all
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
|
||||||
steps:
|
steps:
|
||||||
- run: 'echo "No build required"'
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
|
|
@ -74,28 +73,47 @@ jobs:
|
||||||
test-lightwalletd-integration:
|
test-lightwalletd-integration:
|
||||||
name: Test integration with lightwalletd
|
name: Test integration with lightwalletd
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
|
||||||
steps:
|
steps:
|
||||||
- run: 'echo "No build required"'
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
# Create a patch job for each call to deploy-gcp-tests.yml
|
regenerate-stateful-disks:
|
||||||
#
|
name: Zebra checkpoint / Run sync-to-checkpoint test
|
||||||
# GitHub's branch protection rules only match on the name (they ignore the job ID)
|
runs-on: ubuntu-latest
|
||||||
deploy-gcp-tests-patch:
|
steps:
|
||||||
name: Run ${{ matrix.test_id }} test
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
|
test-stateful-sync:
|
||||||
|
name: Zebra checkpoint update / Run sync-past-checkpoint test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
|
test-full-sync:
|
||||||
|
name: Zebra tip / Run full-sync-to-tip test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
|
lightwalletd-rpc-test:
|
||||||
|
name: Zebra tip JSON-RPC / Run fully-synced-rpc test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
|
lightwalletd-transactions-test:
|
||||||
|
name: lightwalletd tip send / Run lwd-send-transactions test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
|
lightwalletd-full-sync:
|
||||||
|
name: lightwalletd tip / Run lwd-full-sync test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
|
lightwalletd-update-sync:
|
||||||
|
name: lightwalletd tip update / Run lwd-update-sync test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
# Keep this list in sync with the test_id inputs to each deploy-gcp-tests.yml call
|
|
||||||
# in continous-integration-docker.yml
|
|
||||||
test_id:
|
|
||||||
- 'sync-to-checkpoint'
|
|
||||||
- 'sync-past-checkpoint'
|
|
||||||
- 'full-sync-to-tip'
|
|
||||||
- 'fully-synced-rpc'
|
|
||||||
- 'lwd-full-sync'
|
|
||||||
- 'lwd-update-sync'
|
|
||||||
- 'lwd-send-transactions'
|
|
||||||
- 'lwd-grpc-wallet'
|
|
||||||
steps:
|
steps:
|
||||||
- run: 'echo "No build required"'
|
- run: 'echo "No build required"'
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
name: Build
|
||||||
uses: ./.github/workflows/build-docker-image.yml
|
uses: ./.github/workflows/build-docker-image.yml
|
||||||
with:
|
with:
|
||||||
dockerfile_path: ./docker/Dockerfile
|
dockerfile_path: ./docker/Dockerfile
|
||||||
|
|
@ -243,6 +244,7 @@ jobs:
|
||||||
#
|
#
|
||||||
# Note: the output from get-available-disks should match with the caller workflow inputs
|
# Note: the output from get-available-disks should match with the caller workflow inputs
|
||||||
regenerate-stateful-disks:
|
regenerate-stateful-disks:
|
||||||
|
name: Zebra checkpoint
|
||||||
needs: [ build, get-available-disks ]
|
needs: [ build, get-available-disks ]
|
||||||
uses: ./.github/workflows/deploy-gcp-tests.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
if: ${{ !fromJSON(needs.get-available-disks.outputs.zebra_checkpoint_disk) || github.event.inputs.regenerate-disks == 'true' }}
|
if: ${{ !fromJSON(needs.get-available-disks.outputs.zebra_checkpoint_disk) || github.event.inputs.regenerate-disks == 'true' }}
|
||||||
|
|
@ -260,6 +262,7 @@ jobs:
|
||||||
# If the state version has changed, waits for the new cached state to be created.
|
# If the state version has changed, waits for the new cached state to be created.
|
||||||
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
||||||
test-stateful-sync:
|
test-stateful-sync:
|
||||||
|
name: Zebra checkpoint update
|
||||||
needs: regenerate-stateful-disks
|
needs: regenerate-stateful-disks
|
||||||
uses: ./.github/workflows/deploy-gcp-tests.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
||||||
|
|
@ -281,6 +284,7 @@ jobs:
|
||||||
#
|
#
|
||||||
# Note: the output from get-available-disks should match with the caller workflow inputs
|
# Note: the output from get-available-disks should match with the caller workflow inputs
|
||||||
test-full-sync:
|
test-full-sync:
|
||||||
|
name: Zebra tip
|
||||||
needs: [ build, get-available-disks ]
|
needs: [ build, get-available-disks ]
|
||||||
uses: ./.github/workflows/deploy-gcp-tests.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
# to also run on Mergify head branches,
|
# to also run on Mergify head branches,
|
||||||
|
|
@ -305,6 +309,7 @@ jobs:
|
||||||
# If the state version has changed, waits for the new cached state to be created.
|
# If the state version has changed, waits for the new cached state to be created.
|
||||||
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
||||||
lightwalletd-rpc-test:
|
lightwalletd-rpc-test:
|
||||||
|
name: Zebra tip JSON-RPC
|
||||||
needs: test-full-sync
|
needs: test-full-sync
|
||||||
uses: ./.github/workflows/deploy-gcp-tests.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
||||||
|
|
@ -329,6 +334,7 @@ jobs:
|
||||||
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
||||||
# TODO: move this job under lightwalletd-full-sync to have a sequential logic
|
# TODO: move this job under lightwalletd-full-sync to have a sequential logic
|
||||||
lightwalletd-transactions-test:
|
lightwalletd-transactions-test:
|
||||||
|
name: lightwalletd tip send
|
||||||
needs: lightwalletd-full-sync
|
needs: lightwalletd-full-sync
|
||||||
uses: ./.github/workflows/deploy-gcp-tests.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
||||||
|
|
@ -354,6 +360,7 @@ jobs:
|
||||||
# If the state version has changed, waits for the new cached state to be created.
|
# If the state version has changed, waits for the new cached state to be created.
|
||||||
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
||||||
lightwalletd-full-sync:
|
lightwalletd-full-sync:
|
||||||
|
name: lightwalletd tip
|
||||||
needs: test-full-sync
|
needs: test-full-sync
|
||||||
uses: ./.github/workflows/deploy-gcp-tests.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
||||||
|
|
@ -379,6 +386,7 @@ jobs:
|
||||||
# If the state version has changed, waits for the new cached states to be created.
|
# If the state version has changed, waits for the new cached states to be created.
|
||||||
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
# Otherwise, if the state rebuild was skipped, runs immediately after the build job.
|
||||||
lightwalletd-update-sync:
|
lightwalletd-update-sync:
|
||||||
|
name: lightwalletd tip update
|
||||||
needs: lightwalletd-full-sync
|
needs: lightwalletd-full-sync
|
||||||
uses: ./.github/workflows/deploy-gcp-tests.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
if: ${{ !cancelled() && !failure() && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue