Skip to content

Commit

Permalink
ci: reduce git fetch depth
Browse files Browse the repository at this point in the history
This should speed up ALL CI jobs by ~2-3 minutes.
  • Loading branch information
hsheth2 committed Jul 20, 2023
1 parent f4c0ed3 commit 2a83424
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
usfetch-depth: 800tup-java@v3
with:
distribution: "zulu"
java-version: 11
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-datahub-jars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-depth: 800
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
wifetch-depth: 800
python-version: "3.10"
- name: run check ${{ matrix.command }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-ingestion-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-depth: 800
- name: Build and Push image
uses: ./.github/actions/docker-custom-build-and-push
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-ingestion-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-depth: 800
- name: Build and push
uses: ./.github/actions/docker-custom-build-and-push
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-ingestion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-depth: 800
- name: Build and push
uses: ./.github/actions/docker-custom-build-and-push
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-postgres-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-depth: 800
- name: Build and push
uses: ./.github/actions/docker-custom-build-and-push
with:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/docker-unified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Pre-build artifacts for docker image
- nafetch-depth: 800artifacts for docker image
run: |
./gradlew :metadata-service:war:build -x test --parallel
mv ./metadata-service/war/build/libs/war.war .
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
run: |
./gradlew :metadata-jobs:mae-consumer-job:build -x test --parallel
mv ./metadata-jobs/mae-consumer-job/build/libs/mae-consumer-job.jar .
- name: Build and push
- nafetch-depth: 800push
uses: ./.github/actions/docker-custom-build-and-push
with:
images: |
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
uses: ./.github/actions/docker-custom-build-and-push
with:
images: |
${{ env.DATAHUB_MCE_CONSUMER_IMAGE }}
fetch-depth: 800HUB_MCE_CONSUMER_IMAGE }}
tags: ${{ needs.setup.outputs.tag }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down Expand Up @@ -251,7 +251,7 @@ jobs:
tags: ${{ needs.setup.outputs.tag }}
username: ${{ secrets.ACRYL_DOCKER_USERNAME }}
password: ${{ secrets.ACRYL_DOCKER_PASSWORD }}
publish: ${{ needs.setup.outputs.publish }}
fetch-depth: 800eeds.setup.outputs.publish }}
context: .
file: ./docker/datahub-upgrade/Dockerfile
platforms: linux/amd64,linux/arm64/v8
Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
publish: ${{ needs.setup.outputs.publish }}
context: .
file: ./docker/datahub-frontend/Dockerfile
fetch-depth: 800/datahub-frontend/Dockerfile
platforms: linux/amd64,linux/arm64/v8
frontend_scan:
name: "[Monitoring] Scan Frontend images for vulnerabilities"
Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
wifetch-depth: 800
fetch-depth: 0
- name: Build and push
uses: ./.github/actions/docker-custom-build-and-push
Expand All @@ -399,7 +399,7 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
wifetch-depth: 800
fetch-depth: 0
- name: Build and push
uses: ./.github/actions/docker-custom-build-and-push
Expand All @@ -421,7 +421,7 @@ jobs:
fail-fast: false
matrix:
test_strategy: ["no_cypress", "cypress_suite1", "cypress_rest"]
needs:
needs:fetch-depth: 800
[
setup,
gms_build,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-datahub-jars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
wifetch-depth: 800
distribution: "zulu"
java-version: 11
- uses: actions/setup-python@v4
Expand Down

0 comments on commit 2a83424

Please sign in to comment.