Commit Graph

109 Commits

Author SHA1 Message Date
Jack Grigg 270eec2574 CI: Don't test `zcash_client_backend/lightwalletd-tonic` on WASM
Broken until hyperium/tonic#1783 is addressed.
2024-07-11 18:09:49 -07:00
dependabot[bot] 40166fa7e1
build(deps): bump codecov/codecov-action from 4.3.0 to 4.5.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.3.0 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.3.0...v4.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-14 05:58:50 +00:00
Jack Grigg 7bd1cd1a2b CI: Migrate to `codecov/codecov-action@v4.3.0` 2024-04-29 15:15:05 +00:00
Jack Grigg e4c51c30f6 CI: Add explicit token to GitHub CLI usage 2024-04-26 20:08:20 +00:00
Jack Grigg c2ed829ec5 CI: Add workflow to automatically trigger audit aggregation 2024-04-26 19:15:33 +00:00
Jack Grigg 011909d609 CI: Add audit check for `cargo deny check licenses` 2024-04-23 00:34:03 +00:00
Jack Grigg 08cd7e20bd CI: Add audit check for `cargo vet` 2024-04-23 00:31:02 +00:00
str4d 3877c38a2c
Merge pull request #1343 from zcash/dependabot/github_actions/peaceiris/actions-gh-pages-4
build(deps): bump peaceiris/actions-gh-pages from 3 to 4
2024-04-18 15:20:42 +01:00
dependabot[bot] 5cf83c5a44
build(deps): bump supplypike/setup-bin from 3 to 4
Bumps [supplypike/setup-bin](https://github.com/supplypike/setup-bin) from 3 to 4.
- [Release notes](https://github.com/supplypike/setup-bin/releases)
- [Commits](https://github.com/supplypike/setup-bin/compare/v3...v4)

---
updated-dependencies:
- dependency-name: supplypike/setup-bin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 05:56:09 +00:00
dependabot[bot] b42b4984ad
build(deps): bump peaceiris/actions-gh-pages from 3 to 4
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 05:52:08 +00:00
Kris Nuttycombe bda72e36eb Put expensive tests behind an additional `expensive-tests` feature flag. 2024-03-25 13:27:42 -06:00
Jack Grigg b189fe7a36 Remove `orchard` feature flag from behind `zcash_unstable` cfg flag 2024-03-19 18:24:39 +00:00
Willem Olding 1775f6525b
Add WASM support to `lightwalletd-tonic` feature flag (#1270)
The transport-specific code is moved behind a new `lightwalletd-tonic-transport` feature flag.
2024-03-15 11:58:13 +00:00
Jack Grigg 6898dbf094 Replace `unstable-nu6` and `zfuture` feature flags with cfg flags
Neither of these should have been feature flags, as they gate breaking
changes to the Zcash consensus rules (and in some ways are incompatible
with each other), while feature flags should be additive.
2024-03-10 18:42:39 +00:00
Jack Grigg 98c82eb6c6 CI: Stop actively testing ZFuture and instead just check it builds 2024-03-10 18:03:50 +00:00
Jack Grigg 93048c6c46 CI: Separate test "state" from the feature flags activated by it 2024-03-10 18:01:33 +00:00
Jack Grigg 10e1bb6001 CI: Continue tests on error if test failures are in an unstable flag 2024-03-10 01:26:06 +00:00
Jack Grigg b8b19dfe11 CI: Trigger on pushes to `main` branch 2024-03-08 23:41:50 +00:00
Jack Grigg e4a8b3abd4 CI: Remove timeouts from rustfmt and clippy 2024-03-08 22:01:48 +00:00
Jack Grigg f12b2b5a1f CI: Add caching 2024-03-08 21:23:28 +00:00
Jack Grigg 46f2815ad3 CI: Only run CI workflow once per PR
The previous configuration would run CI twice for every PR, on:
- The merge commit with the base branch.
- The tip commit of the PR branch.

The latter is only useful for debugging. However, we still want to run
CI directly on the `main` branch, to ensure that any PRs with runtime
conflicts but not code conflicts get tested in combination.
2024-03-08 20:35:04 +00:00
Jack Grigg e7be194912 CI: Use faster Ubuntu and Windows runners for testing 2024-03-08 20:35:04 +00:00
Jack Grigg 85095af96e CI: Also set `RUSTDOCFLAGS`
`rustdoc` doesn't support all the same flags as `rustc`, so it doesn't
listen to `RUSTFLAGS` and has its own env variable. We are only setting
flags that both understand.
2024-01-27 00:31:00 +00:00
Jack Grigg c5af1e0dd2 CI: Fix passing feature flags into preparation action step 2024-01-27 00:03:03 +00:00
dependabot[bot] fcf66959e4
build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.4 to 3.1.5.
- [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/v3.1.4...v3.1.5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-26 05:06:58 +00:00
str4d 6174055fa3
Merge pull request #1134 from zcash/ci-reduce-macos-builds
CI: Don't test `unstable-nu6` and `zfuture` feature flags on macOS
2024-01-25 22:26:31 +00:00
Jack Grigg 9456d31f23 CI: Don't test `unstable-nu6` and `zfuture` feature flags on macOS
This reduces the number of macOS runner jobs in each PR from 10 to 6, or
from 5 to 3 for external PRs. GitHub's macOS runners are noticeably
slower than their other runners, and our available free runner slots are
being quickly exhausted when we have multiple PRs open.
2024-01-25 21:19:50 +00:00
Jack Grigg c52a26cd8e CI: Copy patch directives into synthetic crate 2024-01-25 19:49:46 +00:00
Kris Nuttycombe 184e3c741f Add `zcash_unstable` compiler flag to fully gate `orchard` functionality 2024-01-24 17:48:10 -07:00
Jack Grigg 5187a2dafb CI: Replace `--all-features` with common feature config
Part of zcash/librustzcash#1123.
2024-01-24 23:41:43 +00:00
Jack Grigg c8d4dacfc1 CI: Move testing of unstable features into a separate job
Closes zcash/librustzcash#1109.
2024-01-16 22:36:53 +00:00
Jack Grigg 3789e46700 CI: Add lint to check protobuf consistency with generated files
Closes zcash/librustzcash#1098.
2024-01-05 21:03:01 +00:00
str4d e4b9d73d0c
Merge pull request #1003 from nuttycom/wallet/reusable_input_selection
zcash_client_backend: Factor out `InputSource` from `WalletRead`
2023-11-08 20:20:03 +00:00
Kris Nuttycombe aa063ae3fd zcash_client_backend: Factor out input source traits from `WalletRead`
Prior to this change, it's necessary to implement the entirety of the
`WalletRead` trait in order to be able to use the input selection
functionality provided by `zcash_client_backend::data_api::input_selection`.
This change factors out the minimal operations required for transaction
proposal construction to better reflect the principle of least authority
and make the input selection code reusable in more contexts.

In order to minimize the operations of the newly-created `InputSource`
and `ShieldingSource` traits, this change also removes the
`min_confirmations` field from transaction proposals, in favor of
storing explicit target and anchor heights. This has the effect of
limiting the lifetime of transaction proposals to `PRUNING_DEPTH -
min_confirmations` blocks.
2023-11-08 12:41:49 -07:00
Kris Nuttycombe c915c93862
Merge pull request #1017 from nuttycom/test_with_bundled_prover
Test with bundled prover instead of local prover.
2023-11-07 13:14:47 -07:00
Jack Grigg c846fba564 CI: Build `wasm32-wasi` in a synthetic crate
This target is incompatible with various crates that we use for testing.
However, when those crates are enabled via dev-dependencies, they become
part of the build graph and prevent us from building the regular code.

Downstream crates don't inherit dev-dependencies, so we simulate this
directly in CI.
2023-11-03 23:57:10 +00:00
Kris Nuttycombe ea7c608f45 Remove parameters download step from github CI
Now that the tests use the bundled prover, we no longer need them to
download the zcash parameters files.
2023-11-03 16:13:38 -06:00
Jack Grigg 7b53b711e2 CI: Fix Codecov job command
`cargo tarpaulin` has changed the case of one of its config options.
2023-09-26 23:04:29 +00:00
Kris Nuttycombe dc62ee149f Merge branch 'release-lwsdk-2.0.0' into post-lwsdk-2.0.0-merge 2023-09-25 16:23:02 -06:00
Jack Grigg a3332c4267 CI: Add lint to check UUID validity 2023-09-25 11:57:08 +00:00
str4d ba8cb2eff5
Merge pull request #954 from zcash/dependabot/github_actions/actions/cache-3.3.2
build(deps): bump actions/cache from 3.3.1 to 3.3.2
2023-09-14 23:22:56 +01:00
Jack Grigg c1dc648cf0 CI: Add job to build with latest Rust and dependencies
This ensures that we catch non-MSRV compilation breakages caused by
SemVer updates.
2023-09-11 23:50:11 +00:00
dependabot[bot] 3a7ef20947
build(deps): bump actions/cache from 3.3.1 to 3.3.2
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.3.1...v3.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 05:24:37 +00:00
dependabot[bot] 75d4f28b9c
build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [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...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 05:54:36 +00:00
dependabot[bot] f1a2b95018
Bump codecov/codecov-action from 3.1.3 to 3.1.4
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.3 to 3.1.4.
- [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/v3.1.3...v3.1.4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 05:57:59 +00:00
dependabot[bot] 554c712ac8
Bump codecov/codecov-action from 3.1.2 to 3.1.3
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.2 to 3.1.3.
- [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/v3.1.2...v3.1.3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 05:58:44 +00:00
dependabot[bot] 851bda8612
Bump codecov/codecov-action from 3.1.1 to 3.1.2
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.1 to 3.1.2.
- [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/v3.1.1...v3.1.2)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 05:58:13 +00:00
dependabot[bot] 19daa67bbb
Bump actions/cache from 3.2.4 to 3.3.1
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.4 to 3.3.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.2.4...v3.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 05:18:44 +00:00
Kris Nuttycombe d456697fa6
Merge pull request #769 from zcash/dependabot/github_actions/actions/cache-3.2.4
Bump actions/cache from 3.2.2 to 3.2.4
2023-02-02 11:15:08 -07:00
Jack Grigg aca56b5d5a CI: Replace `actions-rs/toolchain` with `dtolnay/rust-toolchain`
Now that dtolnay/rust-toolchain#53 has been closed, we can migrate
away from the unmaintained actions-rs/toolchain.
2023-02-02 17:07:39 +00:00