Gustavo Valverde
25f4b10119
refactor(workflows): unify environment handling across CI configurations
...
- Removed the optional environment input from multiple workflow files, including `manual-zcashd-deploy.yml`, `sub-build-docker-image.yml`, and `sub-deploy-integration-tests-gcp.yml`.
- Updated environment assignment logic to consistently use 'prod' for release events across `cd-deploy-nodes-gcp.yml`, `sub-build-docker-image.yml`, `sub-find-cached-disks.yml`, and `sub-deploy-integration-tests-gcp.yml`.
- Enhanced clarity in comments regarding environment strategies in `sub-deploy-integration-tests-gcp.yml`.
2024-12-30 10:13:21 -04:00
Gustavo Valverde
72c26e6f44
test: just set the environmet when diff to dev
2024-12-30 08:52:12 -04:00
Gustavo Valverde
2d187bda74
fix(workflows): streamline environment input handling in CI configurations
...
- Removed the required environment input from `sub-ci-integration-tests-gcp.yml`.
- Updated comments in `sub-deploy-integration-tests-gcp.yml` to clarify the strategy for creating images in dev and prod environments based on the main branch.
2024-12-26 15:09:37 -04:00
Gustavo Valverde
ac02227901
chore(workflows): enhance environment handling in CI/CD configurations
...
- Added dynamic environment assignment in `cd-deploy-nodes-gcp.yml` based on event type (release or dev).
- Updated `sub-build-docker-image.yml` to utilize the `inputs.environment` for environment configuration.
- Introduced a strategy matrix for environment selection in `sub-deploy-integration-tests-gcp.yml`, allowing for both dev and prod environments based on the branch.
- Ensured `sub-find-cached-disks.yml` uses the `inputs.environment` for consistency across workflows.
2024-12-26 11:08:44 -04:00
Gustavo Valverde
a68430f6c0
feat(actions): use GitHub `environments` for infra deployments
2024-12-26 08:07:29 -04:00
dependabot[bot]
1ecf6551bc
build(deps): bump the devops group across 1 directory with 4 updates ( #9091 )
...
Bumps the devops group with 4 updates in the / directory: [codecov/codecov-action](https://github.com/codecov/codecov-action ), [tj-actions/changed-files](https://github.com/tj-actions/changed-files ), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ) and [docker/scout-action](https://github.com/docker/scout-action ).
Updates `codecov/codecov-action` from 5.0.7 to 5.1.1
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v5.0.7...v5.1.1 )
Updates `tj-actions/changed-files` from 45.0.4 to 45.0.5
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v45.0.4...v45.0.5 )
Updates `docker/setup-buildx-action` from 3.7.1 to 3.8.0
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.7.1...v3.8.0 )
Updates `docker/scout-action` from 1.15.1 to 1.16.1
- [Release notes](https://github.com/docker/scout-action/releases )
- [Commits](https://github.com/docker/scout-action/compare/v1.15.1...v1.16.1 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: docker/scout-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-20 03:55:11 +00:00
Arya
179aaa4c4f
Release v2.1.0 ( #9072 )
...
* Updates changelog, crate versions, end of support height, and docs.
* Update CHANGELOG.md
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
---------
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2024-12-06 18:28:56 +00:00
dependabot[bot]
eb9e1f150a
build(deps): bump the devops group across 1 directory with 5 updates ( #9061 )
...
Bumps the devops group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [codecov/codecov-action](https://github.com/codecov/codecov-action ) | `4.6.0` | `5.0.7` |
| [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) | `45.0.3` | `45.0.4` |
| [docker/metadata-action](https://github.com/docker/metadata-action ) | `5.5.1` | `5.6.1` |
| [docker/build-push-action](https://github.com/docker/build-push-action ) | `6.9.0` | `6.10.0` |
| [docker/scout-action](https://github.com/docker/scout-action ) | `1.15.0` | `1.15.1` |
Updates `codecov/codecov-action` from 4.6.0 to 5.0.7
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v4.6.0...v5.0.7 )
Updates `tj-actions/changed-files` from 45.0.3 to 45.0.4
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v45.0.3...v45.0.4 )
Updates `docker/metadata-action` from 5.5.1 to 5.6.1
- [Release notes](https://github.com/docker/metadata-action/releases )
- [Commits](https://github.com/docker/metadata-action/compare/v5.5.1...v5.6.1 )
Updates `docker/build-push-action` from 6.9.0 to 6.10.0
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v6.9.0...v6.10.0 )
Updates `docker/scout-action` from 1.15.0 to 1.15.1
- [Release notes](https://github.com/docker/scout-action/releases )
- [Commits](https://github.com/docker/scout-action/compare/v1.15.0...v1.15.1 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: devops
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: docker/metadata-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: docker/scout-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-04 15:17:33 +00:00
Gustavo Valverde
e72c0fe6f2
refactor(mergify): streamline queue and priority rules ( #9068 )
...
- Removed deprecated actions and simplified default queue rules.
- Adjusted batch sizes for urgent and batched queues.
- Consolidated priority rules to enhance clarity and efficiency.
- Updated conditions for moving pull requests to different queues based on labels and reviews.
2024-12-04 14:52:28 +00:00
Arya
8cfb61f52c
add(ci): Check that dependencies have all been published to crates.io on release PRs ( #8992 )
...
* Adds a test to check for crates in the Cargo.lock file that are being pulled in from a git source.
* add `check_no_git_refs_in_cargo_lock` to CI
* try skip instead of exclude
---------
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2024-11-27 15:49:12 +00:00
Gustavo Valverde
802a243385
fix(mergify): align `build` job name across workflows ( #9055 )
2024-11-27 15:49:02 +00:00
Alfredo Garcia
4f0746a613
fix links in release templates ( #9050 )
2024-11-22 12:15:06 +00:00
Gustavo Valverde
3983428ac4
fix(ci): run most lighwalletd tests correctly ( #9038 )
...
A LWD test was expecting the `ZEBRA_TEST_LIGHTWALLETD` to be set, but this variable is needed for all LWD tests and not specifically for `lightwalletd_integration`.
We had to rename this variable on a buggy `elif` statement in our Docker entrypoint.
This was avoiding most LWD tests to run correctly.
2024-11-19 11:41:57 +00:00
Alfredo Garcia
17648cc6e1
remove `scan-start-where-left-test` from CI ( #9026 )
2024-11-19 10:25:37 +01:00
Gustavo Valverde
2a6e184086
fix(mergify): remove deprecated `speculative_checks` option ( #9033 )
...
While using Mergify's configuration checker, this issue was not raised, but it's now showing in some PR's summaries, as in https://github.com/ZcashFoundation/zebra/pull/9026/checks?check_run_id=33066692861
2024-11-18 11:08:58 +00:00
Gustavo Valverde
ac90773331
ref(mergify): use the the configuration format and keys ( #9018 )
2024-11-14 12:03:51 +00:00
dependabot[bot]
4eb285de50
build(deps): bump rlespinasse/github-slug-action in the devops group ( #9002 )
...
Bumps the devops group with 1 update: [rlespinasse/github-slug-action](https://github.com/rlespinasse/github-slug-action ).
Updates `rlespinasse/github-slug-action` from 4 to 5
- [Release notes](https://github.com/rlespinasse/github-slug-action/releases )
- [Commits](https://github.com/rlespinasse/github-slug-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: rlespinasse/github-slug-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 12:51:57 +00:00
Gustavo Valverde
edff643c08
feat(actions): migrate Mergify to GitHub's Merge Queue ( #9005 )
...
This is an initial step before completely removing Mergify, to keep the duality betwen the two to avoid downtime with queue management
2024-11-11 12:51:51 +00:00
Gustavo Valverde
f919da3aca
chore(ci): do not default to `tracing` mode in jobs execution ( #9004 )
2024-11-09 00:03:39 +00:00
Gustavo Valverde
d7fbde3176
fix(actions): do not require the `get-disk-name` job for forks ( #8988 )
2024-11-05 12:30:00 +00:00
dependabot[bot]
6a82531585
build(deps): bump the devops group across 1 directory with 5 updates ( #8993 )
...
Bumps the devops group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout ) | `4.2.1` | `4.2.2` |
| [google-github-actions/auth](https://github.com/google-github-actions/auth ) | `2.1.6` | `2.1.7` |
| [google-github-actions/setup-gcloud](https://github.com/google-github-actions/setup-gcloud ) | `2.1.1` | `2.1.2` |
| [jontze/action-mdbook](https://github.com/jontze/action-mdbook ) | `3.0.0` | `3.0.1` |
| [docker/scout-action](https://github.com/docker/scout-action ) | `1.14.0` | `1.15.0` |
Updates `actions/checkout` from 4.2.1 to 4.2.2
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4.2.1...v4.2.2 )
Updates `google-github-actions/auth` from 2.1.6 to 2.1.7
- [Release notes](https://github.com/google-github-actions/auth/releases )
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.6...v2.1.7 )
Updates `google-github-actions/setup-gcloud` from 2.1.1 to 2.1.2
- [Release notes](https://github.com/google-github-actions/setup-gcloud/releases )
- [Changelog](https://github.com/google-github-actions/setup-gcloud/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google-github-actions/setup-gcloud/compare/v2.1.1...v2.1.2 )
Updates `jontze/action-mdbook` from 3.0.0 to 3.0.1
- [Release notes](https://github.com/jontze/action-mdbook/releases )
- [Changelog](https://github.com/jontze/action-mdbook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jontze/action-mdbook/compare/v3.0.0...v3.0.1 )
Updates `docker/scout-action` from 1.14.0 to 1.15.0
- [Release notes](https://github.com/docker/scout-action/releases )
- [Commits](https://github.com/docker/scout-action/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: google-github-actions/auth
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: google-github-actions/setup-gcloud
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: jontze/action-mdbook
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: docker/scout-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 11:47:35 +00:00
Gustavo Valverde
75fae66dc6
fix(ci): fail cache disk creation if no db version is found ( #8987 )
...
In some cases Zebra logs might not output the database version, and thus we should avoid creating a disk without a version.
Before this change, a disk was created without a db version number, just indicating a `-v-`, that caused other tests to fail as an actual version was not found in their regexes.
2024-11-04 18:42:51 +00:00
Gustavo Valverde
7b31711306
ref: adjust GCP instances resources to better fit requirements ( #8986 )
...
Previously, most of our deployed instances needed to sync the whole blockchain from genesis, but after implementing the mounting of cached states for the release instances, this is no longer required.
Main changes:
- Reduce the boot disk size for CD images to 10GB (in CI Zebra might need to rebuild based on test flags, requiring more disk space)
- Use `pd-standard` instead of `pd-ssd` for the boot disk
- Use `pd-balanced` instead of `pd-ssd` for the mounted disk (where most of the reads and writes happens)
- Change our `GCP_SMALL_MACHINE` from `c2-standard-4` (vCPUs: 4, RAM: 16 GiB) to `c2d-standard-2` (vCPUs: 2, RAM: 8 GiB)
- Keep long running tests `is_long_test` with `GCP_LARGE_MACHINE` (`c2d-standard-16`) and other with the new `GCP_SMALL_MACHINE` configuration (`c2d-standard-2`)
2024-11-04 10:44:58 +00:00
Marek
fef500a728
chore: Release v2.0.1 ( #8979 )
...
* Run `cargo update`
* chore: Release
* Update `release-crates-dry-run.sh`
* Update `ESTIMATED_RELEASE_HEIGHT`
* Update `CHANGELOG.md`
* Update `ESTIMATED_RELEASE_HEIGHT`
2024-10-30 11:41:41 -03:00
Marek
f45f6f282c
chore: Release v2.0.0 ( #8974 )
...
* Update `CHANGELOG.md`
* Update EOS
* Update CHANGELOG.md
Co-authored-by: Arya <aryasolhi@gmail.com>
* Update `release crates` script
* chore: Release
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
2024-10-25 22:52:19 +00:00
Gustavo Valverde
a182ffe098
fix(actions): run `get-disk-name` on all workflow events ( #8942 )
2024-10-17 15:22:00 +00:00
Gustavo Valverde
cc78b6ae10
ref(actions): allow more flexibility on cached states usage ( #8908 )
...
* ref(actions): allow more flexibility on cached states usage
* chore: improve message
* fix(actions): deploy single instances even if no cached state is needed
* rev: apply suggestions from code review
Co-authored-by: Marek <mail@marek.onl>
* fix: wrong use of `failure()`
* chore: remove extra file
* chore: `echo` the pattern for easier debugging
* chore: add extra details to image naming convention
Addresses https://github.com/ZcashFoundation/zebra/pull/8908#discussion_r1797679586
* ref(actions): use a better logic for disk image selection
This supersedes https://github.com/ZcashFoundation/zebra/pull/8936/ using a different approach with `${VAR:-value}`
---------
Co-authored-by: Marek <mail@marek.onl>
2024-10-17 13:08:05 +00:00
dependabot[bot]
819384053f
build(deps): bump Swatinem/rust-cache in the devops group ( #8938 )
...
Bumps the devops group with 1 update: [Swatinem/rust-cache](https://github.com/swatinem/rust-cache ).
Updates `Swatinem/rust-cache` from 2.7.3 to 2.7.5
- [Release notes](https://github.com/swatinem/rust-cache/releases )
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md )
- [Commits](https://github.com/swatinem/rust-cache/compare/v2.7.3...v2.7.5 )
---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-17 13:05:30 +00:00
Alfredo Garcia
b89492168a
Release Zebra (`v2.0.0-rc.0`) ( #8927 )
...
* changelog
* add panic fix to changelog
* Apply suggestions from code review
Co-authored-by: Arya <aryasolhi@gmail.com>
* chore: Release
* update release-crates-dry-run workflow script
* fix command in release script
* change end of support
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
2024-10-11 17:21:07 +00:00
dependabot[bot]
a28210300f
build(deps): bump the devops group with 3 updates ( #8919 )
...
Bumps the devops group with 3 updates: [actions/checkout](https://github.com/actions/checkout ), [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) and [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ).
Updates `actions/checkout` from 4.2.0 to 4.2.1
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4.2.0...v4.2.1 )
Updates `tj-actions/changed-files` from 45.0.2 to 45.0.3
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v45.0.2...v45.0.3 )
Updates `docker/setup-buildx-action` from 3.6.1 to 3.7.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.6.1...v3.7.1 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-10 11:02:09 +00:00
dependabot[bot]
abfb9ce29c
build(deps): bump the devops group with 4 updates ( #8905 )
...
Bumps the devops group with 4 updates: [actions/checkout](https://github.com/actions/checkout ), [google-github-actions/auth](https://github.com/google-github-actions/auth ), [codecov/codecov-action](https://github.com/codecov/codecov-action ) and [docker/build-push-action](https://github.com/docker/build-push-action ).
Updates `actions/checkout` from 4.1.7 to 4.2.0
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4.1.7...v4.2.0 )
Updates `google-github-actions/auth` from 2.1.5 to 2.1.6
- [Release notes](https://github.com/google-github-actions/auth/releases )
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.5...v2.1.6 )
Updates `codecov/codecov-action` from 4.5.0 to 4.6.0
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v4.5.0...v4.6.0 )
Updates `docker/build-push-action` from 6.7.0 to 6.9.0
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v6.7.0...v6.9.0 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: google-github-actions/auth
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 15:01:02 +00:00
Gustavo Valverde
3bf4bc82d6
fix(actions): disk regeneration does not required a cached state ( #8910 )
2024-10-04 13:51:13 +00:00
dependabot[bot]
689a77637b
build(deps): bump docker/scout-action in the devops group ( #8890 )
...
Bumps the devops group with 1 update: [docker/scout-action](https://github.com/docker/scout-action ).
Updates `docker/scout-action` from 1.13.0 to 1.14.0
- [Release notes](https://github.com/docker/scout-action/releases )
- [Commits](https://github.com/docker/scout-action/compare/v1.13.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: docker/scout-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-01 06:55:29 +00:00
Gustavo Valverde
ac1242a189
feat(ci): add Docker Scout vulnerabilities scanning ( #8871 )
...
* feat(ci): add Docker Scout vulnerabilities scanning
* fix(scout): add missing `environment` command
Co-authored-by: Marek <mail@marek.onl>
---------
Co-authored-by: Marek <mail@marek.onl>
2024-09-24 11:52:04 +00:00
Gustavo Valverde
8870b2c60e
feat(cd): deploy instances with attached cached states ( #8868 )
...
* ref(ci): consolidate cached states workflows and scripts
We've been using multiple approaches to locate and retrieve cached states in GCP. However, this has made it difficult to reuse the same methods across new workflows or different scenarios.
To address this, we've streamlined the process to make it more reusable in other contexts. This change will support deploying instances from both the `main` branch and `release`, simplifying future implementations and speeding up the process.
Changes:
- Use a single bash script (`gcp-get-cached-disks.sh`) to get cached states names and availability
- Move script logic from `sub-find-cached-disks.yml` to `gcp-get-cached-disks.sh` and adapt `sub-find-cached-disks.yml` to allow to output available disks and disks names.
- Simplify parameters usage in `sub-deploy-integration-tests-gcp.yml` and convert the `Find ${{ inputs.test_id }} cached state disk` step into an independent job, to be able to use the `sub-find-cached-disks.yml` reusable workflow
- Remove repetition in `sub-ci-integration-tests-gcp.yml`
* ref(tests): Use the `ZEBRA_CACHED_STATE_DIR` env var across tests
We had a technical debt with some tests using a hardcoded value for the cache directory (`/zebrad-cache`), which generated inconsistency across disks and cached states directories.
Changes:
- Allow sync tests to use the `ZEBRA_CACHED_STATE_DIR` as the cache directory, if specified
- Update the `entrypoint.sh` to reflect this change
- Add the `ZEBRA_CACHED_STATE_DIR` variable to the missing tests in `sub-ci-integration-tests-gcp.yml`, and remove extra parameters to call reusable workflows.
* feat(cd): deploy instances with cached states
* fix(cd): allow deploying from branch
* fix(cd): add missing `CACHED_DISK_NAME` env
2024-09-19 13:12:09 +00:00
Gustavo Valverde
aec07f24ff
ref(ci): consolidate cached states workflows and scripts ( #8865 )
...
* ref(ci): consolidate cached states workflows and scripts
We've been using multiple approaches to locate and retrieve cached states in GCP. However, this has made it difficult to reuse the same methods across new workflows or different scenarios.
To address this, we've streamlined the process to make it more reusable in other contexts. This change will support deploying instances from both the `main` branch and `release`, simplifying future implementations and speeding up the process.
Changes:
- Use a single bash script (`gcp-get-cached-disks.sh`) to get cached states names and availability
- Move script logic from `sub-find-cached-disks.yml` to `gcp-get-cached-disks.sh` and adapt `sub-find-cached-disks.yml` to allow to output available disks and disks names.
- Simplify parameters usage in `sub-deploy-integration-tests-gcp.yml` and convert the `Find ${{ inputs.test_id }} cached state disk` step into an independent job, to be able to use the `sub-find-cached-disks.yml` reusable workflow
- Remove repetition in `sub-ci-integration-tests-gcp.yml`
* ref(tests): Use the `ZEBRA_CACHED_STATE_DIR` env var across tests
We had a technical debt with some tests using a hardcoded value for the cache directory (`/zebrad-cache`), which generated inconsistency across disks and cached states directories.
Changes:
- Allow sync tests to use the `ZEBRA_CACHED_STATE_DIR` as the cache directory, if specified
- Update the `entrypoint.sh` to reflect this change
- Add the `ZEBRA_CACHED_STATE_DIR` variable to the missing tests in `sub-ci-integration-tests-gcp.yml`, and remove extra parameters to call reusable workflows.
2024-09-19 12:31:33 +00:00
dependabot[bot]
60d09a4e62
build(deps): bump tj-actions/changed-files in the devops group ( #8874 )
...
Bumps the devops group with 1 update: [tj-actions/changed-files](https://github.com/tj-actions/changed-files ).
Updates `tj-actions/changed-files` from 45.0.1 to 45.0.2
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v45.0.1...v45.0.2 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 17:39:38 +00:00
dependabot[bot]
17d7f914a8
build(deps): bump tj-actions/changed-files in the devops group ( #8835 )
...
Bumps the devops group with 1 update: [tj-actions/changed-files](https://github.com/tj-actions/changed-files ).
Updates `tj-actions/changed-files` from 45.0.0 to 45.0.1
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v45.0.0...v45.0.1 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 18:28:11 +00:00
dependabot[bot]
cdf73b2c26
build(deps): bump the devops group with 3 updates ( #8789 )
...
Bumps the devops group with 3 updates: [google-github-actions/auth](https://github.com/google-github-actions/auth ), [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) and [codespell-project/actions-codespell](https://github.com/codespell-project/actions-codespell ).
Updates `google-github-actions/auth` from 2.1.4 to 2.1.5
- [Release notes](https://github.com/google-github-actions/auth/releases )
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.4...v2.1.5 )
Updates `tj-actions/changed-files` from 44.5.2 to 45.0.0
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v44.5.2...v45.0.0 )
Updates `codespell-project/actions-codespell` from 2.0 to 2.1
- [Release notes](https://github.com/codespell-project/actions-codespell/releases )
- [Commits](https://github.com/codespell-project/actions-codespell/compare/v2.0...v2.1 )
---
updated-dependencies:
- dependency-name: google-github-actions/auth
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: devops
- dependency-name: codespell-project/actions-codespell
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 11:38:14 +00:00
Gustavo Valverde
6cf34b25ff
feat(docker): Add SBOM and provenance attestations ( #8802 )
...
This adds metadata about the contents of our image, what it contains, and how it was built.
2024-08-26 17:56:09 +00:00
dependabot[bot]
c32c4f6fec
build(deps): bump docker/build-push-action in the devops group ( #8764 )
...
Bumps the devops group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action ).
Updates `docker/build-push-action` from 6.6.0 to 6.7.0
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v6.6.0...v6.7.0 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-19 10:32:11 +00:00
Gustavo Valverde
6a4c47ec06
chore(actions): remove warnings related to gcp and docker steps ( #8750 )
...
Co-authored-by: Pili Guerra <mpguerra@users.noreply.github.com>
2024-08-12 13:21:53 +00:00
dependabot[bot]
f1fb062f32
build(deps): bump the devops group with 4 updates ( #8747 )
...
Bumps the devops group with 4 updates: [google-github-actions/auth](https://github.com/google-github-actions/auth ), [google-github-actions/setup-gcloud](https://github.com/google-github-actions/setup-gcloud ), [EmbarkStudios/cargo-deny-action](https://github.com/embarkstudios/cargo-deny-action ) and [docker/build-push-action](https://github.com/docker/build-push-action ).
Updates `google-github-actions/auth` from 2.1.3 to 2.1.4
- [Release notes](https://github.com/google-github-actions/auth/releases )
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.3...v2.1.4 )
Updates `google-github-actions/setup-gcloud` from 2.1.0 to 2.1.1
- [Release notes](https://github.com/google-github-actions/setup-gcloud/releases )
- [Changelog](https://github.com/google-github-actions/setup-gcloud/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google-github-actions/setup-gcloud/compare/v2.1.0...v2.1.1 )
Updates `EmbarkStudios/cargo-deny-action` from 1 to 2
- [Release notes](https://github.com/embarkstudios/cargo-deny-action/releases )
- [Commits](https://github.com/embarkstudios/cargo-deny-action/compare/v1...v2 )
Updates `docker/build-push-action` from 6.5.0 to 6.6.0
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v6.5.0...v6.6.0 )
---
updated-dependencies:
- dependency-name: google-github-actions/auth
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: google-github-actions/setup-gcloud
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: EmbarkStudios/cargo-deny-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: devops
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-08 21:53:46 +00:00
dependabot[bot]
8b8a7a4ac5
build(deps): bump the devops group with 2 updates ( #8720 )
...
Bumps the devops group with 2 updates: [docker/login-action](https://github.com/docker/login-action ) and [docker/build-push-action](https://github.com/docker/build-push-action ).
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/v3.2.0...v3.3.0 )
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v6.4.1...v6.5.0 )
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-30 14:10:05 +00:00
dependabot[bot]
6436bf67af
build(deps): bump docker/build-push-action in the devops group ( #8698 )
...
Bumps the devops group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action ).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v6.3.0...v6.4.1 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-20 18:21:08 +00:00
Alfredo Garcia
1238ec0c63
tests(scanner): Move zebra scanner tests to binary ( #8659 )
...
* readd the scanner tests in the new binary context
* remove commented out tests from zebrad
* add Cargo.lock
* add local copy of `ZECPAGES_SAPLING_VIEWING_KEY` to binary scanning tests
* moves scanner-results-reader to zebra-scan, adds zebrad bin to zebra-scan, adds a short sleep before trying to connect to gRPC server in test
* always include zebrad dependency in zebra-scan
* renames zebrad bin in zebra-scan to zebrad-for-scanner
* skip test when a cached state is missing
* remove scanning config from zebrad
* move `scan_task_commands` out of zebrad acceptance tests
* remove scanner config from zebrad
* do not panic if env var is not there
* re enable start_scan_where left, remove shielded-scan feature foir scanning tests in CI
* change app names
* uncomment test
* fix the scanner tests in CI by changing the test command
* add log needed by CI?
* move test
* rename trait, docs fix
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
2024-07-15 21:15:04 +00:00
dependabot[bot]
ab7c4906a7
build(deps): bump the devops group across 1 directory with 4 updates ( #8670 )
...
Bumps the devops group with 4 updates in the / directory: [actions/checkout](https://github.com/actions/checkout ), [codecov/codecov-action](https://github.com/codecov/codecov-action ), [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install ) and [docker/build-push-action](https://github.com/docker/build-push-action ).
Updates `actions/checkout` from 4.1.6 to 4.1.7
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4.1.6...v4.1.7 )
Updates `codecov/codecov-action` from 4.4.1 to 4.5.0
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v4.4.1...v4.5.0 )
Updates `baptiste0928/cargo-install` from 3.1.0 to 3.1.1
- [Release notes](https://github.com/baptiste0928/cargo-install/releases )
- [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md )
- [Commits](https://github.com/baptiste0928/cargo-install/compare/v3.1.0...v3.1.1 )
Updates `docker/build-push-action` from 5.3.0 to 6.3.0
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v5.3.0...v6.3.0 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: baptiste0928/cargo-install
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 18:49:09 +00:00
Marek
0d8b10b95f
chore: Release v1.8.0 ( #8655 )
...
* Update `CHANGELOG.md`
* chore: Release
* Update versions in the release dry-run workflow
* Update EOS
* Estimate release height to ~ upcoming Tuesday
* Apply suggestions from code review
Co-authored-by: Arya <aryasolhi@gmail.com>
* Add a "Summary" title to the changelog
* Remove the summary title
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
2024-07-02 16:46:49 +00:00
Gustavo Valverde
df10c75caf
fix(ci): do not silently fail integration tests ( #8631 )
2024-06-20 22:26:17 +00:00
Marek
8f27d972fa
chore: Update the PR template ( #8591 )
...
* Fix TOC in `CONTRIBUTING.md`
* Refactor PR template
* Edit the PR reviewer's checklist
* Unrelated: fix spelling
* Simplify the checklists
2024-06-15 14:28:14 +00:00