Commit Graph

740 Commits

Author SHA1 Message Date
dependabot[bot] a6063443a8
build(deps): bump docker/setup-buildx-action from 2 to 3 (#7595)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-20 21:18:22 +00:00
dependabot[bot] 285608c91b
build(deps): bump arduino/setup-protoc from 2.0.0 to 2.1.0 (#7592)
Bumps [arduino/setup-protoc](https://github.com/arduino/setup-protoc) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/arduino/setup-protoc/releases)
- [Commits](https://github.com/arduino/setup-protoc/compare/v2.0.0...v2.1.0)

---
updated-dependencies:
- dependency-name: arduino/setup-protoc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-20 21:18:02 +00:00
Gustavo Valverde 2b0b2a4292
fix(ci): handle `tee` trying to write to a closed pipe (#7580)
Use `trap '' PIPE` as a command in the pipeline might exit early and we want the script to continue executing, as using `grep --max-count=1` might exit after finding the first match, causing a broken pipe error with `tee`.

This is being combined with  `set -o pipefail` to have strict error handling and we want the script to fail if any command in the pipeline fails.
2023-09-20 18:58:18 +00:00
teor 0e39c9dc6b
Open a ticket for main branch failures (#7565) 2023-09-19 12:02:25 +00:00
teor 28088dfb81
Label cached state disks with the disk they were updated from (#7560) 2023-09-18 09:02:00 +00:00
dependabot[bot] 3e9f9d2d34
build(deps): bump docker/login-action from 2.2.0 to 3.0.0 (#7547)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2.2.0...v3.0.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: teor <teor@riseup.net>
2023-09-14 18:07:31 +00:00
dependabot[bot] a07cc54a94
build(deps): bump tj-actions/changed-files from 39.0.0 to 39.0.2 (#7548)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 39.0.0 to 39.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/v39.0.0...v39.0.2)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 19:07:04 +00:00
dependabot[bot] 8ee36b6ab5
build(deps): bump Swatinem/rust-cache from 2.6.2 to 2.7.0 (#7546)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.6.2 to 2.7.0.
- [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.6.2...v2.7.0)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 19:06:47 +00:00
dependabot[bot] ac87d425c8
build(deps): bump docker/setup-qemu-action from 2 to 3 (#7545)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 19:06:26 +00:00
Gustavo Valverde d60e23a64e
feat(ci): add self hosted runner for long tests (#7520)
* feat(ci): add self-hosted runners for long tests

* fix(workflow): use correct runner name

* test: add runner to more jobs

* fix: remove custom packages which are not available in self-hosted runner

This step was mostly required as we did SSH several times during PR, Queue and Push to `main`, but this hasn been reduced considerably.

* Revert "fix: remove custom packages which are not available in self-hosted runner"

This reverts commit 5b5d5464fe.

* fix: do not generate a public key

* fix: install `openssh`in new Ubuntu image

* fix: update OS before installing

* fix: allow silent install

* ref(workflow): use a single job for sync tests

* ref(workflow): use a single job for setup and launch

* fix: apply review recommendations

* chore: comment removal
2023-09-13 06:07:29 +00:00
Alfredo Garcia a63fe225a0
change(tests): Obtain lightwalletd tip from logs instead of grpc (#7507)
* obtain lightwalletd from the logs

* revert #7332

* temporarily stop checking that the update sync has a good cached state

* Revert "temporarily stop checking that the update sync has a good cached state"

This reverts commit 0fb10938d9.

* add `save_to_disk` to workflow

* Fix lightwalletd height_grep_text for ECC fork

* Add a TODO about blocking the async executor

---------

Co-authored-by: teor <teor@riseup.net>
2023-09-13 03:33:09 +00:00
dependabot[bot] c78d658bc5
build(deps): bump reviewdog/action-actionlint from 1.37.1 to 1.38.0 (#7505)
Bumps [reviewdog/action-actionlint](https://github.com/reviewdog/action-actionlint) from 1.37.1 to 1.38.0.
- [Release notes](https://github.com/reviewdog/action-actionlint/releases)
- [Commits](https://github.com/reviewdog/action-actionlint/compare/v1.37.1...v1.38.0)

---
updated-dependencies:
- dependency-name: reviewdog/action-actionlint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-06 21:08:02 +00:00
dependabot[bot] 0f704b8417
build(deps): bump actions/checkout from 3.6.0 to 4.0.0 (#7492)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.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/v3.6.0...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-06 04:53:23 +00:00
dependabot[bot] 7eabd7bd63
build(deps): bump tj-actions/changed-files from 38.1.3 to 39.0.0 (#7491)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 38.1.3 to 39.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/v38.1.3...v39.0.0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-06 04:52:25 +00:00
teor 349af4d575
Fix testnet checkpoint job height regex (#7433) 2023-08-31 16:24:42 +00:00
dependabot[bot] c5ea437ebd
build(deps): bump actions/checkout from 3.5.3 to 3.6.0 (#7425)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.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/v3.5.3...v3.6.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-31 13:59:49 +00:00
dependabot[bot] e7a322d640
build(deps): bump tj-actions/changed-files from 38.0.0 to 38.1.3 (#7426)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 38.0.0 to 38.1.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/v38.0.0...v38.1.3)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-31 01:08:30 +00:00
Gustavo Valverde 7f28ac9dd5
fix(ci): allow to set docs build as a required test (#7413)
* fix(ci): allow to set docs build as a required test

* build(docs): add problem matcher to docs
2023-08-30 01:32:14 +00:00
teor 798b271279
Show correct lightwalletd cache heights in CI cached state (#7390) 2023-08-28 12:06:51 +00:00
dependabot[bot] f4b37bac14
build(deps): bump tj-actions/changed-files from 37.6.0 to 38.0.0 (#7374)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.6.0 to 38.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/v37.6.0...v38.0.0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-28 09:17:26 +00:00
dependabot[bot] f03978a9a2
build(deps): bump Swatinem/rust-cache from 2.6.1 to 2.6.2 (#7373)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.6.1 to 2.6.2.
- [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.6.1...v2.6.2)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: teor <teor@riseup.net>
2023-08-28 06:02:03 +00:00
Gustavo Valverde 92dd5285e6
ref(docs): consolidate docs linting and publishing (#7339)
* fix(docs): use specific variables to avoid using  an `environment`

* fix(docs): build and publish the correct paths

* fix(docs): remove all environments

* ref(docs): consolidate docs linting and publishing

* chore: minimum lint

* fix: cross-reference

* fix(docs): remove preview URLs from deployments
2023-08-18 02:04:56 +00:00
dependabot[bot] 6b7eafd8f1
build(deps): bump tj-actions/changed-files from 37.5.1 to 37.6.0 (#7342)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.5.1 to 37.6.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/v37.5.1...v37.6.0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 18:40:24 +00:00
dependabot[bot] 0b0a340ace
build(deps): bump Swatinem/rust-cache from 2.6.0 to 2.6.1 (#7341)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.6.0 to 2.6.1.
- [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.6.0...v2.6.1)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 17:48:31 +00:00
Gustavo Valverde 5eaaeae08c
fix(docs): deploy external and internal docs with the correct path (#7338)
* fix(docs): use specific variables to avoid using  an `environment`

* fix(docs): build and publish the correct paths

* fix(docs): remove all environments
2023-08-16 22:16:55 +00:00
Gustavo Valverde 63597307c1
fix(doc): consolidate firebase hosting in prod project (#7313)
* fix(doc): consolidate firebase hosting in prod project

* fix(deploy): use correct environment and permissions

* ref(firebase): use a single firebase configuration

* fix(firebase): entrypoint no longer needed

* ref(docs): deploy docs on PR for preview

* fix(docs): allow to comment on PR

* fix(docs): allow enough time to build docs

* fix(docs): cancel previous docs build

* fix(docs): use a more specific group

* fix(firebase): extra permissions

* fix: commit `.firebaserc`

* fix(mdbook): use different actual directory

* fix(deploy): increase Rust build timeout

* chore: more timeout for building and publishing

* fix(deploy): login to GCP before  deploying

This is to avoid timeout issues with the GCP credentials

* chore: lint code

* chore: revert SC2002 fix try
2023-08-15 14:13:00 +00:00
dependabot[bot] 4de8bd2d30
build(deps): bump r7kamura/rust-problem-matchers from 1.3.0 to 1.4.0 (#7311)
Bumps [r7kamura/rust-problem-matchers](https://github.com/r7kamura/rust-problem-matchers) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/r7kamura/rust-problem-matchers/releases)
- [Commits](https://github.com/r7kamura/rust-problem-matchers/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: r7kamura/rust-problem-matchers
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-08-11 18:34:49 +00:00
Marek 5e20d89a54
fix(ci): Specify Testnet in jobs that require it (#7309)
* Add "Testnet" to `generate-checkpoints-testnet`

* Add `Testnet` to `full-sync-to-tip-testnet`
2023-08-10 19:27:33 +00:00
Arya a9a6c6a8e5
use zcash lwd in ci instead of aditya fork (#7307) 2023-08-09 10:01:21 +00:00
dependabot[bot] cce81b35c9
build(deps): bump Swatinem/rust-cache from 2.5.1 to 2.6.0 (#7294)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.5.1 to 2.6.0.
- [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.5.1...v2.6.0)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-08 21:55:21 +00:00
dependabot[bot] 2c2fa63a03
build(deps): bump tj-actions/changed-files from 37.5.0 to 37.5.1 (#7295)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.5.0 to 37.5.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/v37.5.0...v37.5.1)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-04 10:51:15 +00:00
dependabot[bot] 195280a760
build(deps): bump tj-actions/changed-files from 37.4.0 to 37.5.0 (#7291)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.4.0 to 37.5.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/v37.4.0...v37.5.0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-30 21:10:57 +00:00
Gustavo Valverde da2e696836
ref(docker): remove all unrequired docker arguments from CI/CD pipelines (#7231)
* ref(docker): remove all unrequired docker arguments

* fix(ci): use correct `$NETWORK` approach for tests

* fix(release): do not change default `$NETWORK` for experimental image

* Update .github/workflows/continous-integration-docker.yml

Co-authored-by: Marek <mail@marek.onl>

* Revert "fix(release): do not change default `$NETWORK` for experimental image"

This reverts commit bd5b6c831b.

* fix: typo

---------

Co-authored-by: Marek <mail@marek.onl>
2023-07-25 22:50:45 +00:00
dependabot[bot] f7a4c7164f
build(deps): bump tj-actions/changed-files from 37.3.0 to 37.4.0 (#7280)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.3.0 to 37.4.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/v37.3.0...v37.4.0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24 12:16:38 +00:00
dependabot[bot] 2b7b65b208
build(deps): bump tj-actions/changed-files from 37.1.2 to 37.3.0 (#7264)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.1.2 to 37.3.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/v37.1.2...v37.3.0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24 11:28:11 +00:00
teor e6a35610ef
When testnet is selected, disable jobs that don't work on it (#7198)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-07-18 07:14:06 +00:00
dependabot[bot] 1e47fe5b2b
build(deps): bump tj-actions/changed-files from 37.1.0 to 37.1.2 (#7220)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.1.0 to 37.1.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/v37.1.0...v37.1.2)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-18 00:10:40 +00:00
teor be5cfad07f
change(state): Prepare for in-place database format upgrades, but don't make any format changes yet (#7031)
* Move format upgrades to their own module and enum

* Launch a format change thread if needed, and shut it down during shutdown

* Add some TODOs and remove a redundant timer

* Regularly check for panics in the state upgrade task

* Only run example upgrade once, change version field names

* Increment database format to 25.0.2: add format change task

* Log the running and initial disk database format versions on startup

* Add initial disk and running state versions to cached state images in CI

* Fix missing imports

* Fix typo in logs workflow command

* Add a force_save_to_disk argument to the CI workflow

* Move use_internet_connection into zebrad_config()

* fastmod can_spawn_zebrad_for_rpc can_spawn_zebrad_for_test_type zebra*

* Add a spawn_zebrad_without_rpc() function

* Remove unused copy_state() test code

* Assert that upgrades and downgrades happen with the correct versions

* Add a kill_and_return_output() method for tests

* Add a test for new_state_format() versions (no upgrades or downgrades)

* Add use_internet_connection to can_spawn_zebrad_for_test_type()

* Fix workflow parameter passing

* Check that reopening a new database doesn't upgrade (or downgrade) the format

* Allow ephemeral to be set to false even if we don't have a cached state

* Add a test type that will accept any kind of state

* When re-using a directory, configure the state test config with that path

* Actually mark newly created databases with their format versions

* Wait for the state to be opened before testing the format

* Run state format tests on mainnet and testnet configs (no network access)

* run multiple reopens in tests

* Test upgrades run correctly

* Test that version downgrades work as expected (best effort)

* Add a TODO for testing partial updates

* Fix missing test arguments

* clippy if chain

* Fix typo

* another typo

* Pass a database instance to the format upgrade task

* Fix a timing issue in the tests

* Fix version matching in CI

* Use correct env var reference

* Use correct github env file

* Wait for the database to be written before killing Zebra

* Use correct workflow syntax

* Version changes aren't always upgrades

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-07-13 21:36:15 +00:00
teor 80b1b227f3
Stop requiring testnet job for CI to pass (#7208) 2023-07-12 09:33:51 +00:00
teor da07b11f1b
fix(ci): Pass the network input to all cached state tests (#7186)
* Pass the network input to all cached state tests

* Check the network is correct before running tests
2023-07-10 18:20:50 +00:00
dependabot[bot] c4321083e7
build(deps): bump tj-actions/changed-files from 37.0.5 to 37.1.0 (#7183)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.0.5 to 37.1.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/v37.0.5...v37.1.0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 10:47:10 +00:00
teor e733d71973
change(devops): Reduce number of dependabot PRs (#7156)
* Reduce number of dependabot PRs

* Validate dependabot config before merging

* Fix indentation

* Fix spacing again

* Split large group

* Expand comments, fix typos

Co-authored-by: Marek <mail@marek.onl>

---------

Co-authored-by: Marek <mail@marek.onl>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-07-10 01:27:14 +00:00
teor 83c459d8ab
Add extra patch job to continous-integration-os.patch.yml (#7086) 2023-07-06 01:04:45 +00:00
dependabot[bot] 9cff85d1a4
build(deps): bump tj-actions/changed-files from 37.0.4 to 37.0.5 (#7117)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.0.4 to 37.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/v37.0.4...v37.0.5)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-05 20:52:34 +00:00
dependabot[bot] b50252d70c
build(deps): bump Swatinem/rust-cache from 2.5.0 to 2.5.1 (#7138)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.5.0 to 2.5.1.
- [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.5.0...v2.5.1)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-05 02:09:45 +00:00
teor 9b32ab7878
change(release): Update release script and check it in CI (#7128)
* Activate production features on docs.rs

* Make version requirements more flexible to work around unpublished versions

* Remove a redundant feature requirement that causes publishing issues

* fix release auto-replacement format

* cargo release replace --verbose --execute --package zebrad

* Add a missing 1.0.1 changelog entry

* Fix incorrect commands in the release checklist

* Check the crates.io release script in CI, to avoid release failures

* Fix release date in changelog

* Fix workflow typo

* Add --no-confirm to the workflow

* Fix outdated version in release check command

* After the release, add a "remove do-not-merge" step

* Set git identity before committing

* Don't overwrite tweaked versions on upgrade

* cargo release version doesn't support --dependent-version

* Update the same commands in the release checklist

* Commit to git after each change

* And in the checklist

* Add cargo release config

* In CI, allow any branch and provide a fake previous tag name

* Remove redundant `cargo release commit`

* Use a simpler release version process

* Start simplifying the release dry run in CI

* Fix a cargo dependency lint

* just skip the failing crates for now

* Fix the release checklist to match CI

* Use the latest versions of all Zebra dependencies
2023-07-04 19:01:11 +00:00
dependabot[bot] 560d5f7de9
build(deps): bump tj-actions/changed-files from 37.0.3 to 37.0.4 (#7092)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 37.0.3 to 37.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/v37.0.3...v37.0.4)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-28 20:46:27 +00:00
teor c2bc799dd9
Use correct name for CD build patch job (#7073) 2023-06-28 02:35:50 +00:00
teor fc9baf92dd
Make CD docker tests more flexible (#7077) 2023-06-28 02:35:20 +00:00
teor 62b4fa21a2
change(docker): Replace the zcash-params Dockerfile build with a zebrad binary copy (#7054)
* Replace the zcash-params Dockerfile build with a zebrad binary copy

* Update zcash-params workflow conditions
2023-06-28 02:34:46 +00:00