zebra/zebrad/tests/common
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
..
configs change(network-params): Configurable Testnet funding streams (#8718) 2024-07-29 16:15:09 +00:00
get_block_template_rpcs fix clippy lints (#8855) 2024-09-06 15:24:15 +00:00
lightwalletd fix clippy lints (#8855) 2024-09-06 15:24:15 +00:00
cached_state.rs change(chain): Remove `Copy` trait impl from `Network` (#8354) 2024-03-19 20:45:27 +00:00
check.rs
checkpoints.rs fix clippy lints (#8855) 2024-09-06 15:24:15 +00:00
config.rs Addresses clippy lints (#8723) 2024-07-26 14:29:35 +00:00
failure_messages.rs Updates ignored failure messages in lightwalletd_integration test (#8784) 2024-08-20 22:13:29 +00:00
get_block_template_rpcs.rs change(rpc): Add getpeerinfo RPC method (#5951) 2023-01-17 07:09:07 +00:00
launch.rs fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
lightwalletd.rs fix(beta-toolchain): Warnings (#8404) 2024-04-18 01:45:22 +00:00
mod.rs tests(scanner): Move zebra scanner tests to binary (#8659) 2024-07-15 21:15:04 +00:00
regtest.rs add(network-params): Allow configuring NU6 activation height on Regtest (#8700) 2024-07-22 11:36:35 +00:00
sync.rs ref(ci): consolidate cached states workflows and scripts (#8865) 2024-09-19 12:31:33 +00:00
test_type.rs Updates ignored failure messages in lightwalletd_integration test (#8784) 2024-08-20 22:13:29 +00:00