Skip to content

Commit e557a15

Browse files
committed
perf: skip explicitly running db upgrade and downgrade
1 parent d244157 commit e557a15

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/k8s_test.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ jobs:
2323
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/gh_wait_workflow.yml@dev
2424
secrets: inherit
2525

26-
call-k8-db-upgrade:
27-
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_db_upgrade.yml@dev
28-
needs: [call-az-acr-push-test, call-gh-wait-workflow]
29-
if: ${{ vars.ENABLE_ALEMBIC_MIGRATIONS == 'true' }}
30-
secrets: inherit
31-
with:
32-
alembic_upgrade_rev: 'head'
33-
docker_image_tag: ${{ needs.call-az-acr-push-test.outputs.GH_REF_NAME }}
26+
# call-k8-db-upgrade:
27+
# uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_db_upgrade.yml@dev
28+
# needs: [call-az-acr-push-test, call-gh-wait-workflow]
29+
# if: ${{ vars.ENABLE_ALEMBIC_MIGRATIONS == 'true' }}
30+
# secrets: inherit
31+
# with:
32+
# alembic_upgrade_rev: 'head'
33+
# docker_image_tag: ${{ needs.call-az-acr-push-test.outputs.GH_REF_NAME }}
3434

3535
k8-test:
3636
name: 'K8: Test'
3737
runs-on: [self-hosted, dev]
38-
needs: [call-az-acr-push-test, call-k8-db-upgrade]
38+
needs: [call-az-acr-push-test]
3939
if: ${{ !failure() && !cancelled() }}
4040
environment: dev
4141
env:
@@ -89,11 +89,11 @@ jobs:
8989
-c "${{ inputs.test_cmd }}" \
9090
-a "${{ env.ENABLE_ALEMBIC_MIGRATIONS }}"
9191
92-
call-k8-db-downgrade:
93-
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_db_downgrade.yml@dev
94-
needs: [call-az-acr-push-test, call-k8-db-upgrade, k8-test]
95-
if: ${{ always() && !cancelled() && (needs.call-k8-db-upgrade.outputs.ALEMBIC_CURRENT_REV != needs.call-k8-db-upgrade.outputs.ALEMBIC_UPGRADED_REV) && vars.ENABLE_ALEMBIC_MIGRATIONS == 'true' }}
96-
secrets: inherit
97-
with:
98-
alembic_downgrade_rev: ${{ needs.call-k8-db-upgrade.outputs.ALEMBIC_CURRENT_REV }}
99-
docker_image_tag: ${{ needs.call-az-acr-push-test.outputs.GH_REF_NAME }}
92+
# call-k8-db-downgrade:
93+
# uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_db_downgrade.yml@dev
94+
# needs: [call-az-acr-push-test, call-k8-db-upgrade, k8-test]
95+
# if: ${{ always() && !cancelled() && (needs.call-k8-db-upgrade.outputs.ALEMBIC_CURRENT_REV != needs.call-k8-db-upgrade.outputs.ALEMBIC_UPGRADED_REV) && vars.ENABLE_ALEMBIC_MIGRATIONS == 'true' }}
96+
# secrets: inherit
97+
# with:
98+
# alembic_downgrade_rev: ${{ needs.call-k8-db-upgrade.outputs.ALEMBIC_CURRENT_REV }}
99+
# docker_image_tag: ${{ needs.call-az-acr-push-test.outputs.GH_REF_NAME }}

0 commit comments

Comments
 (0)