fix(ci): Build zebrad with Rust 1.63 to avoid Zcash parameter download hangs (#5251)
* Try running coverage with Rust 1.63 * Run GitHub Actions tests with Rust 1.63 * Change from stable to 1.63 in the patch file * Use Rust 1.63 to download Zcash parameters * Use Rust 1.63 to build Docker zebrad images * Make Rust 1.63 a supported platform, and make stable temporarily unsupported
This commit is contained in:
parent
2465f4bf22
commit
9cb6c559f4
|
@ -21,7 +21,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
# TODO: Windows was removed for now, see https://github.com/ZcashFoundation/zebra/issues/3801
|
# TODO: Windows was removed for now, see https://github.com/ZcashFoundation/zebra/issues/3801
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
rust: [stable, beta]
|
rust: [1.63, beta]
|
||||||
exclude:
|
exclude:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
rust: beta
|
rust: beta
|
||||||
|
|
|
@ -64,7 +64,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
# TODO: Windows was removed for now, see https://github.com/ZcashFoundation/zebra/issues/3801
|
# TODO: Windows was removed for now, see https://github.com/ZcashFoundation/zebra/issues/3801
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
rust: [stable, beta]
|
# Rust 1.64 hangs when downloading the Zcash Parameters on GitHub Actions runners
|
||||||
|
rust: [1.63, beta]
|
||||||
exclude:
|
exclude:
|
||||||
# TODO: re-enable beta Rust tests on ubuntu (#4929)
|
# TODO: re-enable beta Rust tests on ubuntu (#4929)
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
|
|
|
@ -61,7 +61,8 @@ jobs:
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1.0.7
|
- uses: actions-rs/toolchain@v1.0.7
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
# Rust 1.64 hangs when downloading the Zcash Parameters on GitHub Actions runners
|
||||||
|
toolchain: 1.63
|
||||||
override: true
|
override: true
|
||||||
profile: minimal
|
profile: minimal
|
||||||
components: llvm-tools-preview
|
components: llvm-tools-preview
|
||||||
|
|
|
@ -15,6 +15,15 @@ ensures that each tier 1 platform builds and passes tests after each change.
|
||||||
|
|
||||||
For the full requirements, see [Tier 1 platform policy](platform-tier-policy.md#tier-1-platform-policy) in the Platform Tier Policy.
|
For the full requirements, see [Tier 1 platform policy](platform-tier-policy.md#tier-1-platform-policy) in the Platform Tier Policy.
|
||||||
|
|
||||||
|
| platform | os | notes | rust | artifacts
|
||||||
|
| -------|-------|-------|-------|-------
|
||||||
|
| `x86_64-unknown-linux-gnu` | [Debian 11](https://www.debian.org/releases/bullseye/) | 64-bit | [1.63](https://github.com/rust-lang/rust/releases) | Docker
|
||||||
|
|
||||||
|
### Temporarily Unsupported
|
||||||
|
|
||||||
|
Zcash parameter downloads currently [hang when built with Rust 1.64 and later](https://github.com/ZcashFoundation/zebra/issues/5091).
|
||||||
|
Those Rust versions are unsupported until that bug is fixed.
|
||||||
|
|
||||||
| platform | os | notes | rust | artifacts
|
| platform | os | notes | rust | artifacts
|
||||||
| -------|-------|-------|-------|-------
|
| -------|-------|-------|-------|-------
|
||||||
| `x86_64-unknown-linux-gnu` | [Debian 11](https://www.debian.org/releases/bullseye/) | 64-bit | [latest stable release](https://github.com/rust-lang/rust/releases) | Docker
|
| `x86_64-unknown-linux-gnu` | [Debian 11](https://www.debian.org/releases/bullseye/) | 64-bit | [latest stable release](https://github.com/rust-lang/rust/releases) | Docker
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# - runtime: is our runtime environment
|
# - runtime: is our runtime environment
|
||||||
#
|
#
|
||||||
# This stage implements cargo-chef for docker layer caching
|
# This stage implements cargo-chef for docker layer caching
|
||||||
FROM rust:bullseye as chef
|
FROM rust:1.63-bullseye as chef
|
||||||
RUN cargo install cargo-chef --locked
|
RUN cargo install cargo-chef --locked
|
||||||
WORKDIR /opt/zebrad
|
WORKDIR /opt/zebrad
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# This steps implement cargo-chef for docker layer caching
|
# This steps implement cargo-chef for docker layer caching
|
||||||
# This image is for caching Zcash Sprout and Sapling parameters
|
# This image is for caching Zcash Sprout and Sapling parameters
|
||||||
FROM rust:bullseye as chef
|
FROM rust:1.63-bullseye as chef
|
||||||
RUN cargo install cargo-chef --locked
|
RUN cargo install cargo-chef --locked
|
||||||
WORKDIR /opt/zebrad
|
WORKDIR /opt/zebrad
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue