Skip to content

Commit

Permalink
chore: Add submodules to all checkouts (vectordotdev#17770)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergilbert committed Jun 27, 2023
1 parent 53f8bff commit 7196622
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ jobs:
k8s: ${{ steps.filter.outputs.k8s }}
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- uses: dorny/paths-filter@v2
id: filter
Expand Down Expand Up @@ -212,6 +214,8 @@ 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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ 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
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/compilation-timings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ 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
Expand All @@ -33,6 +35,8 @@ 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
Expand All @@ -44,6 +48,8 @@ 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
Expand All @@ -55,6 +61,8 @@ 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
Expand All @@ -68,6 +76,8 @@ 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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ 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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gardener_remove_waiting_author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ 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"
3 changes: 3 additions & 0 deletions .github/workflows/install-sh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ 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:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/k8s_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ 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:
Expand Down Expand Up @@ -205,10 +208,13 @@ 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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: [ubuntu-20.04]
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
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ 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
Expand All @@ -56,6 +57,7 @@ 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)
Expand All @@ -81,6 +83,7 @@ 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)
Expand All @@ -106,6 +109,7 @@ 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)
Expand Down Expand Up @@ -133,6 +137,7 @@ 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)
Expand Down Expand Up @@ -160,6 +165,7 @@ 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)
Expand Down Expand Up @@ -187,6 +193,7 @@ 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)
Expand Down Expand Up @@ -214,6 +221,7 @@ 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
Expand Down Expand Up @@ -244,6 +252,7 @@ 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
Expand Down Expand Up @@ -311,6 +320,7 @@ 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:
Expand Down Expand Up @@ -367,6 +377,7 @@ 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:
Expand Down Expand Up @@ -394,6 +405,7 @@ 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:
Expand Down Expand Up @@ -424,6 +436,7 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ inputs.git_ref }}
submodules: "recursive"
- name: Login to DockerHub
uses: docker/login-action@v2.1.0
with:
Expand Down Expand Up @@ -499,6 +512,7 @@ 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:
Expand Down Expand Up @@ -570,6 +584,7 @@ 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:
Expand Down Expand Up @@ -630,6 +645,7 @@ 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 }}
Expand All @@ -655,6 +671,7 @@ 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:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
comment_valid: ${{ steps.comment.outputs.isTeamMember }}
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Collect file changes
id: changes
Expand Down Expand Up @@ -129,6 +131,7 @@ 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.
Expand Down Expand Up @@ -287,6 +290,8 @@ jobs:
- uses: colpal/actions-clean@v1

- uses: actions/checkout@v3
with:
submodules: "recursive"

- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -325,6 +330,8 @@ jobs:
- uses: colpal/actions-clean@v1

- uses: actions/checkout@v3
with:
submodules: "recursive"

- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -475,6 +482,7 @@ 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
Expand Down Expand Up @@ -594,6 +602,8 @@ jobs:
- compute-metadata
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2.2.0
Expand Down Expand Up @@ -685,6 +695,7 @@ 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
Expand Down

0 comments on commit 7196622

Please sign in to comment.