From ad25638cd198ea6a05be0b2c922b2805253bbccd Mon Sep 17 00:00:00 2001 From: Neel Dalsania Date: Fri, 20 Mar 2026 19:34:20 +0530 Subject: [PATCH 1/3] Fix e2e tests and bump deploy action version in the README --- .github/workflows/tests.yaml | 6 +++--- README.md | 30 +++++++++++++++--------------- e2e-setup/mocks/astro-deploy.sh | 6 +++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 07feb9e..80da111 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -135,9 +135,9 @@ jobs: mv e2e-setup/mocks/image-deploy-git.sh /usr/local/bin/git fi chmod +x /usr/local/bin/git - cp /usr/local/bin/astro /usr/local/bin/astro-original - mv e2e-setup/mocks/astro-deploy.sh /usr/local/bin/astro - chmod +x /usr/local/bin/astro + cp $HOME/.local/bin/astro $HOME/.local/bin/astro-original + mv e2e-setup/mocks/astro-deploy.sh $HOME/.local/bin/astro + chmod +x $HOME/.local/bin/astro - name: Set CLI context run: astro context switch ${{ steps.get-astro-env-info.outputs.astronomer_host }} diff --git a/README.md b/README.md index 2c849a7..c80cf1f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ To use this GitHub action, you need: To use this action, read [Automate code deploys with CI/CD](https://docs.astronomer.io/astro/ci-cd?tab=multiple%20branch#github-actions-dag-based-deploy). You will: -1. Create a GitHub Actions workflow in your repository that uses the latest version of this action. For example, `astronomer/deploy-action@v0.11.1`. +1. Create a GitHub Actions workflow in your repository that uses the latest version of this action. For example, `astronomer/deploy-action@v0.12.0`. 2. Configure the workflow to fit your team's use case. This could include creating a deployment preview or adding tests. See [Configuration options](https://github.com/astronomer/deploy-action#configuration-options). 3. Make changes to your Astro project files in GitHub and let this GitHub Actions workflow take care of deploying your code to Astro. @@ -123,7 +123,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: parse: true @@ -138,7 +138,7 @@ In the following example, the folder `/example-dags/` is specified as the root f ```yaml steps: - name: Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: root-folder: /example-dags/ @@ -151,7 +151,7 @@ In the following example, the pytest located at `/tests/test-tags.py` runs befor ```yaml steps: - name: Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: pytest: true @@ -165,7 +165,7 @@ In the following example, `force` is enabled and both the DAG parse and pytest p ```yaml steps: - name: Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: force: true @@ -208,7 +208,7 @@ jobs: build-args: | - name: Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: deploy-type: image-and-dags @@ -223,7 +223,7 @@ In the following example we would be deploying the dbt project located at `dbt` ```yaml steps: - name: DBT Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: deploy-type: dbt @@ -237,13 +237,13 @@ In the following example we would setup a workflow to deploy dags/images located ```yaml steps: - name: DBT Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: deploy-type: dbt root-folder: dbt - name: DAGs/Image Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: root-folder: astro-project/ @@ -257,7 +257,7 @@ In the following example, the deployment is woken up from hibernation before dep ```yaml steps: - name: Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: wake-on-deploy: true @@ -293,7 +293,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Create Deployment Preview - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: action: create-deployment-preview deployment-id: @@ -319,7 +319,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy to Deployment Preview - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: action: deploy-deployment-preview deployment-id: @@ -344,7 +344,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy to Deployment Preview - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: action: deploy-deployment-preview deploy-type: dbt @@ -371,7 +371,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Delete Deployment Preview - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: action: delete-deployment-preview deployment-id: @@ -396,7 +396,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy to Astro - uses: astronomer/deploy-action@v0.11.1 + uses: astronomer/deploy-action@v0.12.0 with: deployment-id: ``` diff --git a/e2e-setup/mocks/astro-deploy.sh b/e2e-setup/mocks/astro-deploy.sh index e8357b8..935e97a 100644 --- a/e2e-setup/mocks/astro-deploy.sh +++ b/e2e-setup/mocks/astro-deploy.sh @@ -1,12 +1,12 @@ #!/bin/bash -# pre-req for this mock script would be to have the actual astro cli installed at /usr/local/bin/astro-original +# pre-req for this mock script would be to have the actual astro cli installed at $HOME/.local/bin/astro-original if [ "$1" = "deploy" ]; then # Change directory to 'e2e-setup/astro-project' and then call original `astro deploy` # so that we could simulate the default behavior without needing to have the astro project in base folder - echo "cd into astro project" && cd e2e-setup/astro-project && /usr/local/bin/astro-original "$@" + echo "cd into astro project" && cd e2e-setup/astro-project && $HOME/.local/bin/astro-original "$@" else # If it's not a `deploy` command, run the original `astro` - /usr/local/bin/astro-original "$@" + $HOME/.local/bin/astro-original "$@" fi From 0f3ae83b08306a31bce0ee6951f24e0ec0ebf6af Mon Sep 17 00:00:00 2001 From: Neel Dalsania Date: Fri, 20 Mar 2026 19:44:39 +0530 Subject: [PATCH 2/3] empty commit to trigger e2e tests From e4b8bcdb9d5d125173e77124db21a97b57d1043d Mon Sep 17 00:00:00 2001 From: Neel Dalsania Date: Fri, 20 Mar 2026 20:26:57 +0530 Subject: [PATCH 3/3] slow down test to avoid flakiness --- .github/workflows/tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 80da111..d1c19fe 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -451,6 +451,7 @@ jobs: runs-on: ubuntu-latest needs: [infer-deploy, create-test-deployments] strategy: + max-parallel: 1 matrix: deployment_id: [