change(ci): Turn CI errors into PR annotations for most CI jobs (#6690)
* Turn CI errors into PR annotations for most jobs * Fix a missing step name
This commit is contained in:
parent
57415419af
commit
de08b01fd4
|
@ -45,12 +45,13 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
matrix:
|
matrix:
|
||||||
name: Crates matrix
|
name: Generate crates matrix
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
# Setup Rust with stable toolchain and minimal profile
|
# Setup Rust with stable toolchain and minimal profile
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
|
@ -81,6 +82,7 @@ jobs:
|
||||||
echo "matrix=$MATRIX" >> "$GITHUB_OUTPUT"
|
echo "matrix=$MATRIX" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
check-matrix:
|
check-matrix:
|
||||||
|
name: Check crates matrix
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ matrix ]
|
needs: [ matrix ]
|
||||||
steps:
|
steps:
|
||||||
|
@ -107,6 +109,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Install last version of Protoc
|
- name: Install last version of Protoc
|
||||||
uses: arduino/setup-protoc@v1.1.2
|
uses: arduino/setup-protoc@v1.1.2
|
||||||
|
|
|
@ -43,14 +43,14 @@ on:
|
||||||
required: false
|
required: false
|
||||||
default: "sentry"
|
default: "sentry"
|
||||||
type: string
|
type: string
|
||||||
test_features:
|
test_features:
|
||||||
required: false
|
required: false
|
||||||
default: "lightwalletd-grpc-tests zebra-checkpoints"
|
default: "lightwalletd-grpc-tests zebra-checkpoints"
|
||||||
type: string
|
type: string
|
||||||
rpc_port:
|
rpc_port:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
tag_suffix:
|
tag_suffix:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
|
|
@ -78,6 +78,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -137,6 +137,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -159,6 +161,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -184,6 +188,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -205,6 +211,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -224,6 +232,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -244,6 +254,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -267,6 +279,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
if: ${{ github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -684,7 +698,7 @@ jobs:
|
||||||
zebra_state_dir: 'zebrad-cache'
|
zebra_state_dir: 'zebrad-cache'
|
||||||
lwd_state_dir: 'lwd-cache'
|
lwd_state_dir: 'lwd-cache'
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
## getblocktemplate-rpcs using cached Zebra state on mainnet
|
## getblocktemplate-rpcs using cached Zebra state on mainnet
|
||||||
#
|
#
|
||||||
# TODO: move these below the rest of the mainnet jobs that just use Zebra cached state
|
# TODO: move these below the rest of the mainnet jobs that just use Zebra cached state
|
||||||
|
|
|
@ -86,6 +86,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Install last version of Protoc
|
- name: Install last version of Protoc
|
||||||
uses: arduino/setup-protoc@v1.1.2
|
uses: arduino/setup-protoc@v1.1.2
|
||||||
|
@ -199,6 +200,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
# Setup Rust with stable toolchain and minimal profile
|
# Setup Rust with stable toolchain and minimal profile
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
|
@ -220,6 +222,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Install last version of Protoc
|
- name: Install last version of Protoc
|
||||||
uses: arduino/setup-protoc@v1.1.2
|
uses: arduino/setup-protoc@v1.1.2
|
||||||
|
@ -260,6 +263,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
# The --all-features job is the only job that gives accurate "skip tree root was not found" warnings.
|
# The --all-features job is the only job that gives accurate "skip tree root was not found" warnings.
|
||||||
# In other jobs, we expect some of these warnings, due to disabled features.
|
# In other jobs, we expect some of these warnings, due to disabled features.
|
||||||
|
@ -278,6 +282,7 @@ jobs:
|
||||||
uses: actions/checkout@v3.5.2
|
uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
# Setup Rust with stable toolchain and minimal profile
|
# Setup Rust with stable toolchain and minimal profile
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
|
|
|
@ -113,6 +113,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: '2'
|
fetch-depth: '2'
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
@ -207,6 +208,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: '2'
|
fetch-depth: '2'
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
@ -272,6 +274,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: '2'
|
fetch-depth: '2'
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
@ -449,6 +452,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: '2'
|
fetch-depth: '2'
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
@ -585,6 +589,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: '2'
|
fetch-depth: '2'
|
||||||
|
# We can't use the standard Rust problem matchers on these jobs,
|
||||||
|
# because they produce a lot of output.
|
||||||
|
#
|
||||||
|
# TODO: create a custom matcher config for these specific jobs
|
||||||
|
#- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
@ -1546,6 +1555,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: '2'
|
fetch-depth: '2'
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
@ -1749,6 +1759,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: '2'
|
fetch-depth: '2'
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
|
|
@ -115,6 +115,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Install last version of Protoc
|
- name: Install last version of Protoc
|
||||||
uses: arduino/setup-protoc@v1.1.2
|
uses: arduino/setup-protoc@v1.1.2
|
||||||
|
@ -153,6 +154,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- uses: r7kamura/rust-problem-matchers@v1.3.0
|
||||||
|
|
||||||
- name: Install last version of Protoc
|
- name: Install last version of Protoc
|
||||||
uses: arduino/setup-protoc@v1.1.2
|
uses: arduino/setup-protoc@v1.1.2
|
||||||
|
|
Loading…
Reference in New Issue