Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ZcashFoundation/zebra into main_zai…
Browse files Browse the repository at this point in the history
…no_changes
  • Loading branch information
idky137 committed Nov 5, 2024
2 parents 1b5c466 + d7fbde3 commit 40adedc
Show file tree
Hide file tree
Showing 41 changed files with 491 additions and 377 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cd-deploy-nodes-gcp.patch-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: 'echo "Skipping job on fork"'

get-disk-name:
name: Get disk name
runs-on: ubuntu-latest
steps:
- run: 'echo "Skipping job on fork"'
6 changes: 6 additions & 0 deletions .github/workflows/cd-deploy-nodes-gcp.patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

get-disk-name:
name: Get disk name
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'
24 changes: 12 additions & 12 deletions .github/workflows/cd-deploy-nodes-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ jobs:
if: ${{ !cancelled() && !failure() && ((github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'release') }}

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false

Expand All @@ -265,18 +265,18 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].6
uses: google-github-actions/[email protected].7
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].1
uses: google-github-actions/[email protected].2

- name: Create instance template for ${{ matrix.network }}
run: |
DISK_NAME="zebrad-cache-${{ env.GITHUB_HEAD_REF_SLUG_URL || env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }}-${NETWORK}"
DISK_PARAMS="name=${DISK_NAME},device-name=${DISK_NAME},size=400GB,type=pd-ssd"
DISK_PARAMS="name=${DISK_NAME},device-name=${DISK_NAME},size=400GB,type=pd-balanced"
if [ -n "${{ env.CACHED_DISK_NAME }}" ]; then
DISK_PARAMS+=",image=${{ env.CACHED_DISK_NAME }}"
elif [ ${{ inputs.no_cached_disk && github.event_name == 'workflow_dispatch' }} ]; then
Expand All @@ -287,8 +287,8 @@ jobs:
fi
gcloud compute instance-templates create-with-container zebrad-${{ needs.versioning.outputs.major_version || env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }}-${NETWORK} \
--machine-type ${{ vars.GCP_SMALL_MACHINE }} \
--boot-disk-size 50GB \
--boot-disk-type=pd-ssd \
--boot-disk-size=10GB \
--boot-disk-type=pd-standard \
--image-project=cos-cloud \
--image-family=cos-stable \
--network-interface=subnet=${{ vars.GCP_SUBNETWORK }} \
Expand Down Expand Up @@ -353,7 +353,7 @@ jobs:
if: ${{ !failure() && github.event_name == 'workflow_dispatch' }}

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false

Expand All @@ -376,19 +376,19 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].6
uses: google-github-actions/[email protected].7
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].1
uses: google-github-actions/[email protected].2

# Create instance template from container image
- name: Manual deploy of a single ${{ inputs.network }} instance running zebrad
run: |
DISK_NAME="zebrad-cache-${{ env.GITHUB_HEAD_REF_SLUG_URL || env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }}-${NETWORK}"
DISK_PARAMS="name=${DISK_NAME},device-name=${DISK_NAME},size=400GB,type=pd-ssd"
DISK_PARAMS="name=${DISK_NAME},device-name=${DISK_NAME},size=400GB,type=pd-balanced"
if [ -n "${{ env.CACHED_DISK_NAME }}" ]; then
DISK_PARAMS+=",image=${{ env.CACHED_DISK_NAME }}"
elif [ ${{ inputs.no_cached_disk && github.event_name == 'workflow_dispatch' }} ]; then
Expand All @@ -399,8 +399,8 @@ jobs:
fi
gcloud compute instances create-with-container "zebrad-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }}-${NETWORK}" \
--machine-type ${{ vars.GCP_SMALL_MACHINE }} \
--boot-disk-size 50GB \
--boot-disk-type=pd-ssd \
--boot-disk-size=10GB \
--boot-disk-type=pd-standard \
--image-project=cos-cloud \
--image-family=cos-stable \
--network-interface=subnet=${{ vars.GCP_SUBNETWORK }} \
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/chore-delete-gcp-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@ jobs:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false

# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].6
uses: google-github-actions/[email protected].7
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].1
uses: google-github-actions/[email protected].2

# Deletes all mainnet and testnet instances older than $DELETE_INSTANCE_DAYS days.
#
Expand Down Expand Up @@ -106,14 +106,14 @@ jobs:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false

# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].6
uses: google-github-actions/[email protected].7
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-build-crates.patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2

# Setup Rust with stable toolchain and minimal profile
- name: Setup Rust
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-build-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
- uses: r7kamura/[email protected]

# Setup Rust with stable toolchain and minimal profile
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
matrix: ${{ fromJson(needs.matrix.outputs.matrix) }}

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest-xl

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
rust: ${{ steps.changed-files-rust.outputs.any_changed == 'true' }}
workflows: ${{ steps.changed-files-workflows.outputs.any_changed == 'true' }}
steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false
fetch-depth: 0
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
if: ${{ needs.changed-files.outputs.rust == 'true' }}

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false

Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
if: ${{ needs.changed-files.outputs.rust == 'true' }}

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
needs: changed-files
if: ${{ needs.changed-files.outputs.workflows == 'true' }}
steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
- name: actionlint
uses: reviewdog/[email protected]
with:
Expand All @@ -166,7 +166,7 @@ jobs:
runs-on: ubuntu-latest
needs: changed-files
steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
- uses: codespell-project/[email protected]
with:
only_warn: 1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-unit-tests-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
rust: beta

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand All @@ -205,7 +205,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
continue-on-error: ${{ matrix.checks == 'advisories' }}

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand All @@ -269,7 +269,7 @@ jobs:

steps:
- name: Checkout git repository
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs-deploy-firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ jobs:
pull-requests: write
steps:
- name: Checkout the source code
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
persist-credentials: false

- uses: r7kamura/[email protected]

- name: Setup mdBook
uses: jontze/[email protected].0
uses: jontze/[email protected].1
with:
token: ${{ secrets.GITHUB_TOKEN }}
mdbook-version: '~0.4'
Expand All @@ -106,7 +106,7 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].6
uses: google-github-actions/[email protected].7
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_FIREBASE_SA }}'
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout the source code
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
persist-credentials: false

Expand All @@ -164,7 +164,7 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].6
uses: google-github-actions/[email protected].7
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_FIREBASE_SA }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-dockerhub-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/manual-zcashd-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id-token: 'write'

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].2
with:
persist-credentials: false

Expand All @@ -52,20 +52,20 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].6
uses: google-github-actions/[email protected].7
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'

- name: Set up Cloud SDK
uses: google-github-actions/[email protected].1
uses: google-github-actions/[email protected].2

# Create instance template from container image
- name: Create instance template
run: |
gcloud compute instance-templates create-with-container zcashd-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }} \
--boot-disk-size 10GB \
--boot-disk-type=pd-ssd \
--boot-disk-size=10GB \
--boot-disk-type=pd-standard \
--image-project=cos-cloud \
--image-family=cos-stable \
--container-stdin \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-crates-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- uses: r7kamura/[email protected]

- name: Checkout git repository
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
persist-credentials: false

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/release-crates-dry-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ fi
cargo release version --verbose --execute --no-confirm --allow-branch '*' --workspace --exclude zebrad --exclude zebra-scan --exclude zebra-grpc patch

# Due to a bug in cargo-release, we need to pass exact versions for alpha crates:
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.10
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.8
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.11
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.9

# Update zebrad:
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad patch
Expand Down
Loading

0 comments on commit 40adedc

Please sign in to comment.