Skip to content

Commit

Permalink
Merge branch 'zsa-integration-zsadeps' into zsa-integration-txv6
Browse files Browse the repository at this point in the history
  • Loading branch information
dmidem committed Oct 17, 2024
2 parents a026dd2 + bb1395c commit 8d18425
Show file tree
Hide file tree
Showing 63 changed files with 2,240 additions and 686 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Flags that apply to all Zebra crates and configurations
[target.'cfg(all())']
rustflags = [
# FIXME: Consider removing this line later (it's needed for the ZSA version of librustzcash crates)
"--cfg", "zcash_unstable=\"nu6\"",

# Zebra standard lints for Rust 1.65+

# High-risk code
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cd-deploy-nodes-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
if: ${{ !cancelled() && !failure() && ((github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'release') }}

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false

Expand All @@ -242,7 +242,7 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].5
uses: google-github-actions/[email protected].6
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'
Expand Down Expand Up @@ -329,7 +329,7 @@ jobs:
if: github.event_name == 'workflow_dispatch'

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false

Expand All @@ -352,7 +352,7 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].5
uses: google-github-actions/[email protected].6
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/chore-delete-gcp-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false

# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].5
uses: google-github-actions/[email protected].6
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'
Expand Down Expand Up @@ -106,14 +106,14 @@ jobs:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false

# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].5
uses: google-github-actions/[email protected].6
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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1

# 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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
- 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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false

Expand Down Expand Up @@ -103,4 +103,4 @@ jobs:
run: cargo llvm-cov --lcov --no-run --output-path lcov.info

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v4.6.0
14 changes: 7 additions & 7 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
rust: ${{ steps.changed-files-rust.outputs.any_changed == 'true' }}
workflows: ${{ steps.changed-files-workflows.outputs.any_changed == 'true' }}
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false
fetch-depth: 0

- name: Rust files
id: changed-files-rust
uses: tj-actions/[email protected].2
uses: tj-actions/[email protected].3
with:
files: |
**/*.rs
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Workflow files
id: changed-files-workflows
uses: tj-actions/[email protected].2
uses: tj-actions/[email protected].3
with:
files: |
.github/workflows/*.yml
Expand All @@ -69,7 +69,7 @@ jobs:
if: ${{ needs.changed-files.outputs.rust == 'true' }}

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false

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

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
- name: actionlint
uses: reviewdog/[email protected]
with:
Expand All @@ -166,7 +166,7 @@ jobs:
runs-on: ubuntu-latest
needs: changed-files
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
- 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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand All @@ -269,7 +269,7 @@ jobs:

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

Expand All @@ -106,7 +106,7 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].5
uses: google-github-actions/[email protected].6
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/checkout@v4.1.7
uses: actions/checkout@v4.2.1
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].5
uses: google-github-actions/[email protected].6
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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false

Expand Down
4 changes: 2 additions & 2 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/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false

Expand All @@ -52,7 +52,7 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].5
uses: google-github-actions/[email protected].6
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_DEPLOYMENTS_SA }}'
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/checkout@v4.1.7
uses: actions/checkout@v4.2.1
with:
persist-credentials: false

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/scripts/release-crates-dry-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ fi
# We use the same commands as the [release drafter](https://github.com/ZcashFoundation/zebra/blob/main/.github/PULL_REQUEST_TEMPLATE/release-checklist.md#update-crate-versions)
# with an extra `--no-confirm` argument for non-interactive testing.
# Update everything except for alpha crates and zebrad:
cargo release version --verbose --execute --no-confirm --allow-branch '*' --workspace --exclude zebrad --exclude zebra-scan --exclude zebra-grpc beta
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.8
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.6
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.9
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.7

# Update zebrad:
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad patch
# TODO: Revert `2.0.0-rc.0` to `patch` in the next release candidate.
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad 2.0.0-rc.0
# Continue with the release process:
cargo release replace --verbose --execute --no-confirm --allow-branch '*' --package zebrad
cargo release commit --verbose --execute --no-confirm --allow-branch '*'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sub-build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
env:
DOCKER_BUILD_SUMMARY: ${{ vars.DOCKER_BUILD_SUMMARY }}
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
persist-credentials: false
- uses: r7kamura/[email protected]
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected].5
uses: google-github-actions/[email protected].6
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
service_account: '${{ vars.GCP_ARTIFACTS_SA }}'
Expand All @@ -152,7 +152,7 @@ jobs:
# Setup Docker Buildx to use Docker Build Cloud
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@v3.7.1
with:
version: "lab:latest"
driver: cloud
Expand All @@ -161,7 +161,7 @@ jobs:
# Build and push image to Google Artifact Registry, and possibly DockerHub
- name: Build & push
id: docker_build
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@v6.9.0
with:
target: ${{ inputs.dockerfile_target }}
context: .
Expand Down
Loading

0 comments on commit 8d18425

Please sign in to comment.