From d8d57e55c0c51c6fdb8c41f2fa48b0876ef4d356 Mon Sep 17 00:00:00 2001 From: Spencer Gilbert Date: Thu, 29 Jun 2023 14:17:44 -0400 Subject: [PATCH] chore: Revert all submodule introductions to fix CI (#17800) - Revert "chore: Fix publish workflow for older OS images (#17787)" - Revert "chore: Add submodules to all checkouts (#17770)" - Revert "chore: Download submodules in the CI checkouts (#17760)" --- .github/audit.yml | 4 +--- .github/workflows/changes.yml | 4 ---- .github/workflows/cli.yml | 3 --- .github/workflows/compilation-timings.yml | 10 --------- .github/workflows/component_features.yml | 3 --- .github/workflows/cross.yml | 3 --- .github/workflows/environment.yml | 3 --- .../gardener_remove_waiting_author.yml | 2 -- .github/workflows/install-sh.yml | 3 --- .github/workflows/integration-test.yml | 3 --- .github/workflows/k8s_e2e.yml | 6 ------ .github/workflows/misc.yml | 3 --- .github/workflows/msrv.yml | 2 -- .github/workflows/publish.yml | 21 ------------------- .github/workflows/regression.yml | 13 ------------ .github/workflows/test.yml | 1 - .github/workflows/unit_mac.yml | 3 --- .github/workflows/unit_windows.yml | 3 --- 18 files changed, 1 insertion(+), 89 deletions(-) diff --git a/.github/audit.yml b/.github/audit.yml index 6a3007248db03..83db5d60151bd 100644 --- a/.github/audit.yml +++ b/.github/audit.yml @@ -11,9 +11,7 @@ jobs: security_audit: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - with: - submodules: "recursive" + - uses: actions/checkout@v1 - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/changes.yml b/.github/workflows/changes.yml index 4b6697fed8726..db6c4225073e0 100644 --- a/.github/workflows/changes.yml +++ b/.github/workflows/changes.yml @@ -119,8 +119,6 @@ jobs: k8s: ${{ steps.filter.outputs.k8s }} steps: - uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: dorny/paths-filter@v2 id: filter @@ -214,8 +212,6 @@ jobs: webhdfs: ${{ steps.filter.outputs.webhdfs }} steps: - uses: actions/checkout@v3 - with: - submodules: "recursive" # creates a yaml file that contains the filters for each integration, # extracted from the output of the `vdev int ci-paths` command, which diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 2801cc78bb945..9d22fda8527bb 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -28,13 +28,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - name: Cache Cargo registry + index uses: actions/cache@v3 diff --git a/.github/workflows/compilation-timings.yml b/.github/workflows/compilation-timings.yml index 94616e04af086..e96bea65ea946 100644 --- a/.github/workflows/compilation-timings.yml +++ b/.github/workflows/compilation-timings.yml @@ -17,8 +17,6 @@ jobs: steps: - uses: colpal/actions-clean@v1 - uses: actions/checkout@v3 - with: - submodules: "recursive" - run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - run: bash scripts/environment/prepare.sh - run: cargo clean @@ -35,8 +33,6 @@ jobs: steps: - uses: colpal/actions-clean@v1 - uses: actions/checkout@v3 - with: - submodules: "recursive" - run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - run: bash scripts/environment/prepare.sh - run: cargo clean @@ -48,8 +44,6 @@ jobs: steps: - uses: colpal/actions-clean@v1 - uses: actions/checkout@v3 - with: - submodules: "recursive" - run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - run: bash scripts/environment/prepare.sh - run: cargo clean @@ -61,8 +55,6 @@ jobs: steps: - uses: colpal/actions-clean@v1 - uses: actions/checkout@v3 - with: - submodules: "recursive" - run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - run: bash scripts/environment/prepare.sh - run: cargo clean @@ -76,8 +68,6 @@ jobs: steps: - uses: colpal/actions-clean@v1 - uses: actions/checkout@v3 - with: - submodules: "recursive" - run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - run: bash scripts/environment/prepare.sh - run: cargo clean diff --git a/.github/workflows/component_features.yml b/.github/workflows/component_features.yml index a888fe6c83d05..2705483f598c4 100644 --- a/.github/workflows/component_features.yml +++ b/.github/workflows/component_features.yml @@ -26,13 +26,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - run: bash scripts/environment/prepare.sh diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 869405b5b9076..9d36cb4cb3240 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -39,13 +39,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: actions/cache@v3 name: Cache Cargo registry + index diff --git a/.github/workflows/environment.yml b/.github/workflows/environment.yml index 2c17383d169ac..cdddb0a980db8 100644 --- a/.github/workflows/environment.yml +++ b/.github/workflows/environment.yml @@ -34,13 +34,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - name: Set up QEMU uses: docker/setup-qemu-action@v2.2.0 diff --git a/.github/workflows/gardener_remove_waiting_author.yml b/.github/workflows/gardener_remove_waiting_author.yml index 37f6665034a14..9fe063e50b40d 100644 --- a/.github/workflows/gardener_remove_waiting_author.yml +++ b/.github/workflows/gardener_remove_waiting_author.yml @@ -9,8 +9,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: actions-ecosystem/action-remove-labels@v1 with: labels: "meta: awaiting author" diff --git a/.github/workflows/install-sh.yml b/.github/workflows/install-sh.yml index 83d7f9517035e..045319a191642 100644 --- a/.github/workflows/install-sh.yml +++ b/.github/workflows/install-sh.yml @@ -28,13 +28,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - run: pip3 install awscli --upgrade --user - env: diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index ffb741158c87e..4d8d635fcb477 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -54,13 +54,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - run: sudo npm -g install @datadog/datadog-ci diff --git a/.github/workflows/k8s_e2e.yml b/.github/workflows/k8s_e2e.yml index 61196de8befa0..50de3f5db9a2c 100644 --- a/.github/workflows/k8s_e2e.yml +++ b/.github/workflows/k8s_e2e.yml @@ -88,13 +88,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: actions/cache@v3 with: @@ -208,13 +205,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index 035bbbc92a66e..4af7ab44a3bef 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -28,13 +28,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: actions/cache@v3 name: Cache Cargo registry + index diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index c910d2394053d..9a82d1ddecbd0 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -16,8 +16,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - submodules: "recursive" - run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - run: cargo install cargo-msrv --version 0.15.1 - run: cargo msrv verify diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e4ea253a558e8..e8cdfee808f6b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,7 +39,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Generate publish metadata id: generate-publish-metadata run: make ci-generate-publish-metadata @@ -57,7 +56,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Bootstrap runner environment (Ubuntu-specific) run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - name: Bootstrap runner environment (generic) @@ -83,7 +81,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Bootstrap runner environment (Ubuntu-specific) run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - name: Bootstrap runner environment (generic) @@ -109,7 +106,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Bootstrap runner environment (Ubuntu-specific) run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - name: Bootstrap runner environment (generic) @@ -137,7 +133,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Bootstrap runner environment (Ubuntu-specific) run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - name: Bootstrap runner environment (generic) @@ -165,7 +160,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Bootstrap runner environment (Ubuntu-specific) run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - name: Bootstrap runner environment (generic) @@ -193,7 +187,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Bootstrap runner environment (Ubuntu-specific) run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh - name: Bootstrap runner environment (generic) @@ -221,7 +214,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Bootstrap runner environment (macOS-specific) run: bash scripts/environment/bootstrap-macos-10.sh - name: Build Vector @@ -252,7 +244,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Bootstrap runner environment (Windows-specific) run: .\scripts\environment\bootstrap-windows-2019.ps1 - name: Install Wix @@ -320,11 +311,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - # Workaround for older OS images - # https://github.com/actions/checkout/issues/758 - - name: Checkout submodules - run: | - git submodule update --init --recursive - name: Download staged package artifacts (x86_64-unknown-linux-gnu) uses: actions/download-artifact@v3 with: @@ -381,7 +367,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Download staged package artifacts (x86_64-unknown-linux-gnu) uses: actions/download-artifact@v3 with: @@ -409,7 +394,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Download staged package artifacts (x86_64-apple-darwin) uses: actions/download-artifact@v3 with: @@ -440,7 +424,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Login to DockerHub uses: docker/login-action@v2.1.0 with: @@ -516,7 +499,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Download staged package artifacts (aarch64-unknown-linux-gnu) uses: actions/download-artifact@v3 with: @@ -588,7 +570,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Download staged package artifacts (aarch64-unknown-linux-gnu) uses: actions/download-artifact@v3 with: @@ -649,7 +630,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Publish update to Homebrew tap env: GITHUB_TOKEN: ${{ secrets.GH_PACKAGE_PUBLISHER_TOKEN }} @@ -675,7 +655,6 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" - name: Download staged package artifacts (aarch64-unknown-linux-gnu) uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index f3370293198ef..4d770d496486f 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -48,8 +48,6 @@ jobs: comment_valid: ${{ steps.comment.outputs.isTeamMember }} steps: - uses: actions/checkout@v3 - with: - submodules: "recursive" - name: Collect file changes id: changes @@ -131,7 +129,6 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 1000 - submodules: "recursive" # If triggered by issue comment, the event payload doesn't directly contain the head and base sha from the PR. # But, we can retrieve this info from some commands. @@ -290,14 +287,11 @@ jobs: - uses: colpal/actions-clean@v1 - uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: actions/checkout@v3 with: ref: ${{ needs.compute-metadata.outputs.baseline-sha }} path: baseline-vector - submodules: "recursive" - name: Set up Docker Buildx id: buildx @@ -330,14 +324,11 @@ jobs: - uses: colpal/actions-clean@v1 - uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: actions/checkout@v3 with: ref: ${{ needs.compute-metadata.outputs.comparison-sha }} path: comparison-vector - submodules: "recursive" - name: Set up Docker Buildx id: buildx @@ -482,7 +473,6 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ needs.compute-metadata.outputs.comparison-sha }} - submodules: "recursive" - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2.2.0 @@ -602,8 +592,6 @@ jobs: - compute-metadata steps: - uses: actions/checkout@v3 - with: - submodules: "recursive" - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2.2.0 @@ -695,7 +683,6 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ needs.compute-metadata.outputs.comparison-sha }} - submodules: "recursive" - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2.2.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7947529457c90..ca5184b5041c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,7 +44,6 @@ jobs: with: # check-version needs tags fetch-depth: 0 # fetch everything - submodules: "recursive" - uses: actions/cache@v3 name: Cache Cargo registry + index diff --git a/.github/workflows/unit_mac.yml b/.github/workflows/unit_mac.yml index 22476d63efada..abda6ae1e177f 100644 --- a/.github/workflows/unit_mac.yml +++ b/.github/workflows/unit_mac.yml @@ -32,13 +32,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - uses: actions/cache@v3 name: Cache Cargo registry + index diff --git a/.github/workflows/unit_windows.yml b/.github/workflows/unit_windows.yml index 4d73e8f829a99..479d18938e4ec 100644 --- a/.github/workflows/unit_windows.yml +++ b/.github/workflows/unit_windows.yml @@ -27,13 +27,10 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ steps.comment-branch.outputs.head_ref }} - submodules: "recursive" - name: Checkout branch if: ${{ github.event_name != 'issue_comment' }} uses: actions/checkout@v3 - with: - submodules: "recursive" - run: .\scripts\environment\bootstrap-windows-2019.ps1 - run: make test