Skip to content

Commit 9b8d4e0

Browse files
committed
fix(ci): Align Airflow E2E DAG parameter names with ml-auto-solutions
Update the Airflow REST API payload in run_e2e_tests.yml to pass 'commit_sha' and 'github_token' instead of 'maxtext_sha' and 'github_callback_token', matching the standardized DAG parameters defined in GoogleCloudPlatform/ml-auto-solutions.
1 parent 40c3b62 commit 9b8d4e0

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

‎.github/workflows/run_e2e_tests.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,22 @@ jobs:
5757
env:
5858
AIRFLOW_URI: ${{ steps.info.outputs.airflow_uri }}
5959
BUILD_MODE: ${{ inputs.mode }}
60-
MAXTEXT_SHA: ${{ inputs.maxtext_sha }}
60+
COMMIT_SHA: ${{ inputs.maxtext_sha }}
6161
RUN_ID: ${{ inputs.run_id }}
6262
GITHUB_REPO: ${{ github.repository }}
63-
AIRFLOW_CALLBACK_TOKEN: ${{ secrets.AIRFLOW_CALLBACK_TOKEN }}
63+
GITHUB_TOKEN: ${{ secrets.AIRFLOW_CALLBACK_TOKEN }}
6464
run: |
6565
IAP_TOKEN=$(gcloud auth print-access-token)
66-
PAYLOAD=$(python3 -c 'import os, json; print(json.dumps({"conf": {"build_mode": os.environ["BUILD_MODE"], "maxtext_sha": os.environ["MAXTEXT_SHA"], "github_run_id": os.environ["RUN_ID"], "github_repo": os.environ["GITHUB_REPO"], "github_callback_token": os.environ["AIRFLOW_CALLBACK_TOKEN"]}}))')
66+
PAYLOAD=$(python3 -c 'import json, os
67+
print(json.dumps({
68+
"conf": {
69+
"build_mode": os.environ["BUILD_MODE"],
70+
"commit_sha": os.environ["COMMIT_SHA"],
71+
"github_run_id": os.environ["RUN_ID"],
72+
"github_repo": os.environ["GITHUB_REPO"],
73+
"github_token": os.environ["GITHUB_TOKEN"],
74+
}
75+
}))')
6776
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
6877
"${AIRFLOW_URI}/api/v1/dags/maxtext_e2e_tests/dagRuns" \
6978
-H "Authorization: Bearer ${IAP_TOKEN}" \

0 commit comments

Comments
 (0)
⌂ 换网址