Update prost crates
#8406
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Verify trace-protobuf' | |
| on: | |
| pull_request: | |
| types: [ opened, synchronize, reopened ] | |
| env: | |
| DATADOG_AGENT_TAG: "7f6d07c93ba087f23f80a3f0c2da4b1f3dc664d7" | |
| rust_version: "1.84.1" | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| jobs: | |
| verify-proto-files: | |
| name: "Verify trace-protobuf .proto files are in sync with datadog-agent" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 | |
| - name: diff agent_payload.proto | |
| working-directory: libdd-trace-protobuf/src/pb | |
| run: | | |
| ../../../.github/workflows/diff-proto-files.sh --file agent_payload.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
| - name: diff tracer_payload.proto | |
| if: success() || failure() | |
| working-directory: libdd-trace-protobuf/src/pb | |
| run: | | |
| ../../../.github/workflows/diff-proto-files.sh --file tracer_payload.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
| - name: diff stats.proto | |
| if: success() || failure() | |
| working-directory: libdd-trace-protobuf/src/pb | |
| run: | | |
| ../../../.github/workflows/diff-proto-files.sh --file stats.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
| - name: diff span.proto | |
| if: success() || failure() | |
| working-directory: libdd-trace-protobuf/src/pb | |
| run: | | |
| ../../../.github/workflows/diff-proto-files.sh --file span.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
| - name: diff idx/tracer_payload.proto | |
| if: success() || failure() | |
| working-directory: libdd-trace-protobuf/src/pb | |
| run: | | |
| ../../../.github/workflows/diff-proto-files.sh --file idx/tracer_payload.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
| - name: diff idx/span.proto | |
| if: success() || failure() | |
| working-directory: libdd-trace-protobuf/src/pb | |
| run: | | |
| ../../../.github/workflows/diff-proto-files.sh --file idx/span.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
| - name: Install ${{ env.rust_version }} toolchain | |
| run: rustup install ${{ env.rust_version }} && rustup default ${{ env.rust_version }} | |
| - name: Cache [rust] | |
| uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1 | |
| with: | |
| cache-targets: true # cache build artifacts | |
| cache-bin: true # cache the ~/.cargo/bin directory | |
| - name: diff pb.rs | |
| working-directory: libdd-trace-protobuf | |
| run: | | |
| cargo build --features generate-protobuf | |
| git diff --exit-code -- src/pb.rs |