From 46bcc2c41b7b5a6bbc9d9f61266d1ac611766420 Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Fri, 11 Feb 2022 00:13:04 +0000 Subject: [PATCH 1/2] ci: Add workflows to run beta, nightly builds We currently only really catch Rust regressions as they hit stable. This change adds workflows to build the proxy daily against `nightly` and weekly against `beta`. These workflows are separated so that they can run on different schedules and so that a failure on one toolchain does not interfere with the other. Signed-off-by: Oliver Gould --- .github/workflows/beta.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/nightly.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .github/workflows/beta.yml create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml new file mode 100644 index 0000000000..1031fabaf9 --- /dev/null +++ b/.github/workflows/beta.yml @@ -0,0 +1,31 @@ +# Builds the proxy on the beta toolchain to help catch Rust regressions before they bite us hit stable. +name: beta + +on: + pull_request: + paths: + - .github/workflows/beta.yml + schedule: + # Run weekly on wednesday @ midnightish Pacific-time. + - cron: "30 7 * * 3" + +env: + CARGO_INCREMENTAL: 0 + CARGO_NET_RETRY: 10 + RUST_BACKTRACE: short + RUSTUP_MAX_RETRIES: 10 + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + container: + image: docker://rust:1.56.1-buster + timeout-minutes: 20 + continue-on-error: true + steps: + - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 + - run: rustup toolchain install --profile=minimal beta + - run: cargo +beta build --release -p linkerd2-proxy diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000000..9034f8e544 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,32 @@ +# Builds the proxy on the nightly toolchain to help catch Rust regressions before they bite us hit +# stable. +name: nightly + +on: + pull_request: + paths: + - .github/workflows/nightly.yml + schedule: + # Run daily @ midnightish Pacific-time. + - cron: "0 8 * * *" + +env: + CARGO_INCREMENTAL: 0 + CARGO_NET_RETRY: 10 + RUST_BACKTRACE: short + RUSTUP_MAX_RETRIES: 10 + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + container: + image: docker://rust:1.56.1-buster + timeout-minutes: 20 + continue-on-error: true + steps: + - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 + - run: rustup toolchain install --profile=minimal nightly + - run: cargo +nightly build --release -p linkerd2-proxy From 6fae2565f03500285e192aaa41dc3ed237f771ab Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Fri, 11 Feb 2022 18:52:00 +0000 Subject: [PATCH 2/2] grammar/clarity Signed-off-by: Oliver Gould --- .github/workflows/beta.yml | 4 ++-- .github/workflows/nightly.yml | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 1031fabaf9..fc1744ad17 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -1,5 +1,5 @@ -# Builds the proxy on the beta toolchain to help catch Rust regressions before they bite us hit stable. -name: beta +# Builds the proxy on the beta toolchain to help catch Rust regressions before they hit stable. +name: rust-beta on: pull_request: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9034f8e544..7ecce56fb1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,6 +1,5 @@ -# Builds the proxy on the nightly toolchain to help catch Rust regressions before they bite us hit -# stable. -name: nightly +# Builds the proxy on the nightly toolchain to help catch Rust regressions before they hit beta. +name: rust-nightly on: pull_request: