This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 0afed43 Fix ``breeze kind-cluster shell`` (#20015)
0afed43 is described below
commit 0afed43a8afde093277be2862138cb32fba8ed29
Author: Kaxil Naik <[email protected]>
AuthorDate: Fri Dec 3 19:41:34 2021 +0000
Fix ``breeze kind-cluster shell`` (#20015)
This was failing with the following:
```
/Users/kaxilnaik/Documents/GitHub/astronomer/airflow/scripts/ci/kubernetes/ci_run_kubernetes_tests.sh:
line 102: constraints[@]: unbound variable
Exporting logs for cluster "airflow-python-3.7-v1.20.2" to:
/tmp/kind_logs_2021-12-03_0_0
```
and was caused by https://github.com/apache/airflow/pull/17290
---
scripts/ci/kubernetes/ci_run_kubernetes_tests.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/ci/kubernetes/ci_run_kubernetes_tests.sh
b/scripts/ci/kubernetes/ci_run_kubernetes_tests.sh
index a97f692..f739691 100755
--- a/scripts/ci/kubernetes/ci_run_kubernetes_tests.sh
+++ b/scripts/ci/kubernetes/ci_run_kubernetes_tests.sh
@@ -93,7 +93,7 @@ function create_virtualenv() {
--constraint
"https://raw.githubusercontent.com/${CONSTRAINTS_GITHUB_REPOSITORY}/${DEFAULT_CONSTRAINTS_BRANCH}/constraints-${HOST_PYTHON_VERSION}.txt"
)
- if [[ -n ${GITHUB_REGISTRY_PULL_IMAGE_TAG=} ]]; then
+ if [[ ${CI:=} == "true" && -n ${GITHUB_REGISTRY_PULL_IMAGE_TAG=} ]]; then
# Disable constraints when building in CI with specific version of
sources
# In case there will be conflicting constraints
constraints=()