Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
# Builds the proxy on the beta toolchain to help catch Rust regressions before they hit stable.
name: rust-beta
# # Builds the proxy on the beta toolchain to help catch Rust regressions before they hit stable.
# name: rust-beta

on:
workflow_dispatch: {}
pull_request:
paths:
- justfile
- .github/workflows/beta.yml
schedule:
# Run weekly on wednesday @ midnightish Pacific-time.
- cron: "30 7 * * 3"
# on:
# workflow_dispatch: {}
# pull_request:
# paths:
# - justfile
# - .github/workflows/beta.yml
# schedule:
# # Run weekly on wednesday @ midnightish Pacific-time.
# - cron: "30 7 * * 3"

env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
RUSTFLAGS: "-D warnings --cfg tokio_unstable"
# env:
# CARGO_INCREMENTAL: 0
# CARGO_NET_RETRY: 10
# RUSTUP_MAX_RETRIES: 10
# RUSTFLAGS: "-D warnings --cfg tokio_unstable"

permissions:
contents: read
# permissions:
# contents: read

jobs:
build:
runs-on: ubuntu-24.04
container: ghcr.io/linkerd/dev:v45-rust
timeout-minutes: 20
continue-on-error: true
steps:
- run: rustup toolchain install --profile=minimal beta
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- run: just toolchain=beta fetch
- run: just toolchain=beta build
# jobs:
# build:
# runs-on: ubuntu-24.04
# container: ghcr.io/linkerd/dev:v45-rust
# timeout-minutes: 20
# continue-on-error: true
# steps:
# - run: rustup toolchain install --profile=minimal beta
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# - run: git config --global --add safe.directory "$PWD" # actions/runner#2033
# - run: just toolchain=beta fetch
# - run: just toolchain=beta build
104 changes: 52 additions & 52 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
name: Coverage
# name: Coverage

on:
push:
branches: [main]
pull_request: {}
# on:
# push:
# branches: [main]
# pull_request: {}

permissions:
contents: read
# permissions:
# contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.head_ref }}
# cancel-in-progress: true

env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -A deprecated --cfg tokio_unstable -C debuginfo=2"
RUSTUP_MAX_RETRIES: 10
# env:
# CARGO_INCREMENTAL: 0
# CARGO_NET_RETRY: 10
# RUSTFLAGS: "-D warnings -A deprecated --cfg tokio_unstable -C debuginfo=2"
# RUSTUP_MAX_RETRIES: 10

jobs:
meta:
timeout-minutes: 5
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- id: changed
uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8
with:
files: |
.codecov.yml
.github/workflows/coverage.yml
**/*.rs
files_ignore: |
*-proto/**
linkerd/transport-header/**
outputs:
any_changed: ${{ steps.changed.outputs.any_changed }}
# jobs:
# meta:
# timeout-minutes: 5
# runs-on: ubuntu-24.04
# steps:
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# - id: changed
# uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8
# with:
# files: |
# .codecov.yml
# .github/workflows/coverage.yml
# **/*.rs
# files_ignore: |
# *-proto/**
# linkerd/transport-header/**
# outputs:
# any_changed: ${{ steps.changed.outputs.any_changed }}

codecov:
needs: meta
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || needs.meta.outputs.any_changed == 'true'
runs-on: ubuntu-24.04
timeout-minutes: 30
container:
image: docker://ghcr.io/linkerd/dev:v45-rust
options: --security-opt seccomp=unconfined # 🤷
env:
CXX: "/usr/bin/clang++-19"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=opencensus-proto --exclude=spire-proto --no-run
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=opencensus-proto --exclude=spire-proto --skip-clean --ignore-tests --no-fail-fast --out=Xml
# Some tests are especially flakey in coverage tests. That's fine. We
# only really care to measure how much of our codebase is covered.
continue-on-error: true
- uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3
# codecov:
# needs: meta
# if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || needs.meta.outputs.any_changed == 'true'
# runs-on: ubuntu-24.04
# timeout-minutes: 30
# container:
# image: docker://ghcr.io/linkerd/dev:v45-rust
# options: --security-opt seccomp=unconfined # 🤷
# env:
# CXX: "/usr/bin/clang++-19"
# steps:
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3
# - run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=opencensus-proto --exclude=spire-proto --no-run
# - run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=opencensus-proto --exclude=spire-proto --skip-clean --ignore-tests --no-fail-fast --out=Xml
# # Some tests are especially flakey in coverage tests. That's fine. We
# # only really care to measure how much of our codebase is covered.
# continue-on-error: true
# - uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3
116 changes: 58 additions & 58 deletions .github/workflows/fuzzers.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
name: fuzzers
# name: fuzzers

on:
# Only run on PRs that touch fuzzed crates
pull_request:
paths:
- 'linkerd/addr/**'
- 'linkerd/app/inbound/**'
- 'linkerd/dns/**'
- 'linkerd/proxy/http/**'
- 'linkerd/tls/**'
- 'linkerd/transport-header/**'
- .github/workflows/fuzzers.yml
- .github/fuzzers-list.sh
# on:
# # Only run on PRs that touch fuzzed crates
# pull_request:
# paths:
# - 'linkerd/addr/**'
# - 'linkerd/app/inbound/**'
# - 'linkerd/dns/**'
# - 'linkerd/proxy/http/**'
# - 'linkerd/tls/**'
# - 'linkerd/transport-header/**'
# - .github/workflows/fuzzers.yml
# - .github/fuzzers-list.sh

env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings -A deprecated --cfg tokio_unstable -C debuginfo=0"
RUSTUP_MAX_RETRIES: 10
# env:
# CARGO_INCREMENTAL: 0
# CARGO_NET_RETRY: 10
# RUST_BACKTRACE: short
# RUSTFLAGS: "-D warnings -A deprecated --cfg tokio_unstable -C debuginfo=0"
# RUSTUP_MAX_RETRIES: 10

permissions:
contents: read
# permissions:
# contents: read

jobs:
list-changed:
timeout-minutes: 3
runs-on: ubuntu-24.04
container: docker://rust:1.83.0
steps:
- run: apt update && apt install -y jo
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8
id: changed-files
- name: list changed crates
id: list-changed
shell: bash
run: |
dirs=$(.github/fuzzers-list.sh ${{ steps.changed-files.outputs.all_changed_files }} | jo -a)
echo "dirs=$dirs" >> "$GITHUB_OUTPUT"
outputs:
dirs: ${{ steps.list-changed.outputs.dirs }}
# jobs:
# list-changed:
# timeout-minutes: 3
# runs-on: ubuntu-24.04
# container: docker://rust:1.83.0
# steps:
# - run: apt update && apt install -y jo
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# - run: git config --global --add safe.directory "$PWD" # actions/runner#2033
# - uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8
# id: changed-files
# - name: list changed crates
# id: list-changed
# shell: bash
# run: |
# dirs=$(.github/fuzzers-list.sh ${{ steps.changed-files.outputs.all_changed_files }} | jo -a)
# echo "dirs=$dirs" >> "$GITHUB_OUTPUT"
# outputs:
# dirs: ${{ steps.list-changed.outputs.dirs }}

# Build fuzzers for any changed crates.
build:
needs: [list-changed]
timeout-minutes: 40
runs-on: ubuntu-24.04
container: docker://rust:1.83.0
strategy:
matrix:
dir: ${{ fromJson(needs.list-changed.outputs.dirs) }}
steps:
- run: rustup toolchain add nightly
- run: cargo install cargo-fuzz
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- working-directory: ${{matrix.dir}}
run: cargo +nightly fetch
- working-directory: ${{matrix.dir}}
run: cargo +nightly fuzz build
# # Build fuzzers for any changed crates.
# build:
# needs: [list-changed]
# timeout-minutes: 40
# runs-on: ubuntu-24.04
# container: docker://rust:1.83.0
# strategy:
# matrix:
# dir: ${{ fromJson(needs.list-changed.outputs.dirs) }}
# steps:
# - run: rustup toolchain add nightly
# - run: cargo install cargo-fuzz
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# - run: git config --global --add safe.directory "$PWD" # actions/runner#2033
# - working-directory: ${{matrix.dir}}
# run: cargo +nightly fetch
# - working-directory: ${{matrix.dir}}
# run: cargo +nightly fuzz build
34 changes: 17 additions & 17 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: markdown
# name: markdown

permissions:
contents: read
# permissions:
# contents: read

on:
pull_request:
paths:
- '**/*.md'
- .github/workflows/markdown.yml
# on:
# pull_request:
# paths:
# - '**/*.md'
# - .github/workflows/markdown.yml

jobs:
markdownlint:
timeout-minutes: 5
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265
with:
globs: "**/*.md"
# jobs:
# markdownlint:
# timeout-minutes: 5
# runs-on: ubuntu-24.04
# steps:
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# - uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265
# with:
# globs: "**/*.md"
Loading