-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Group CI scripts in subdirectories (#9653)
Reviewed the scripts and removed some of the old unused ones. (cherry picked from commit faec41e)
- Loading branch information
Showing
59 changed files
with
355 additions
and
494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,15 +60,15 @@ jobs: | |
path: ~/.cache/pre-commit | ||
key: ${{ env.cache-name }}-${{ github.job }}-${{ hashFiles('.pre-commit-config.yaml') }} | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- name: "Build CI image" | ||
run: ./scripts/ci/ci_prepare_ci_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_ci_image_on_ci.sh | ||
- name: "Static checks" | ||
if: success() | ||
run: | | ||
python -m pip install pre-commit \ | ||
--constraint requirements/requirements-python${PYTHON_MAJOR_MINOR_VERSION}.txt | ||
./scripts/ci/ci_run_static_checks.sh | ||
./scripts/ci/static_checks/ci_run_static_checks.sh | ||
docs: | ||
timeout-minutes: 60 | ||
|
@@ -82,9 +82,9 @@ jobs: | |
with: | ||
python-version: '3.6' | ||
- name: "Build CI image ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_prepare_ci_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_ci_image_on_ci.sh | ||
- name: "Build docs" | ||
run: ./scripts/ci/ci_docs.sh | ||
run: ./scripts/ci/docs/ci_docs.sh | ||
|
||
build-prod-image: | ||
timeout-minutes: 60 | ||
|
@@ -99,7 +99,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@master | ||
- name: "Build PROD image ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_prepare_prod_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_prod_image_on_ci.sh | ||
|
||
trigger-tests: | ||
timeout-minutes: 10 | ||
|
@@ -112,7 +112,7 @@ jobs: | |
- name: "Get count of changed python files" | ||
run: | | ||
set +e | ||
./scripts/ci/ci_count_changed_files.sh ${GITHUB_SHA} \ | ||
./scripts/ci/tools/ci_count_changed_files.sh ${GITHUB_SHA} \ | ||
'^airflow|.github/workflows/|^Dockerfile|^scripts|^chart|^setup.py|^requirements|^tests|^kubernetes_tests' | ||
echo "::set-output name=count::$?" | ||
id: trigger-tests | ||
|
@@ -155,15 +155,15 @@ jobs: | |
with: | ||
python-version: '3.6' | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- uses: engineerd/[email protected] | ||
name: Setup Kind Cluster | ||
with: | ||
version: "${{ matrix.kind-version }}" | ||
name: airflow-python-${{matrix.python-version}}-${{matrix.kubernetes-version}} | ||
config: "scripts/ci/kubernetes/kind-cluster-conf.yaml" | ||
- name: "Deploy app to cluster" | ||
run: ./scripts/ci/ci_deploy_app_to_kubernetes.sh | ||
run: ./scripts/ci/kubernetes/ci_deploy_app_to_kubernetes.sh | ||
- name: Cache virtualenv for kubernetes testing | ||
uses: actions/cache@v2 | ||
env: | ||
|
@@ -173,7 +173,7 @@ jobs: | |
key: "${{ env.cache-name }}-${{ github.job }}-\ | ||
${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt') }}" | ||
- name: "Tests" | ||
run: ./scripts/ci/ci_run_kubernetes_tests.sh | ||
run: ./scripts/ci/kubernetes/ci_run_kubernetes_tests.sh | ||
- uses: actions/upload-artifact@v2 | ||
name: Upload KinD logs | ||
# Always run this, even if one of th previous steps failed. | ||
|
@@ -208,11 +208,11 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt') | |
with: | ||
python-version: '3.6' | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- name: "Build CI image ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_prepare_ci_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_ci_image_on_ci.sh | ||
- name: "Tests" | ||
run: ./scripts/ci/ci_run_airflow_testing.sh | ||
run: ./scripts/ci/testing/ci_run_airflow_testing.sh | ||
|
||
tests-mysql: | ||
timeout-minutes: 80 | ||
|
@@ -240,11 +240,11 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt') | |
with: | ||
python-version: '3.x' | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- name: "Build CI image ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_prepare_ci_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_ci_image_on_ci.sh | ||
- name: "Tests" | ||
run: ./scripts/ci/ci_run_airflow_testing.sh | ||
run: ./scripts/ci/testing/ci_run_airflow_testing.sh | ||
|
||
tests-sqlite: | ||
timeout-minutes: 80 | ||
|
@@ -270,11 +270,11 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt') | |
with: | ||
python-version: '3.x' | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- name: "Build CI image ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_prepare_ci_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_ci_image_on_ci.sh | ||
- name: "Tests" | ||
run: ./scripts/ci/ci_run_airflow_testing.sh | ||
run: ./scripts/ci/testing/ci_run_airflow_testing.sh | ||
|
||
tests-quarantined: | ||
timeout-minutes: 80 | ||
|
@@ -303,11 +303,11 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt') | |
with: | ||
python-version: '3.x' | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- name: "Build CI image ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_prepare_ci_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_ci_image_on_ci.sh | ||
- name: "Tests" | ||
run: ./scripts/ci/ci_run_airflow_testing.sh | ||
run: ./scripts/ci/testing/ci_run_airflow_testing.sh | ||
|
||
helm-tests: | ||
timeout-minutes: 5 | ||
|
@@ -337,11 +337,11 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt') | |
- uses: actions/checkout@master | ||
- uses: actions/setup-python@v1 | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- name: "Build CI image ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_prepare_ci_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_ci_image_on_ci.sh | ||
- name: "Generate requirements" | ||
run: ./scripts/ci/ci_generate_requirements.sh | ||
run: ./scripts/ci/requirements/ci_generate_requirements.sh | ||
|
||
push-prod-images-to-github-cache: | ||
timeout-minutes: 80 | ||
|
@@ -364,11 +364,11 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt') | |
steps: | ||
- uses: actions/checkout@master | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- name: "Build PROD images ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_prepare_prod_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_prod_image_on_ci.sh | ||
- name: "Push PROD images ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_push_production_images.sh | ||
run: ./scripts/ci/images/ci_push_production_images.sh | ||
|
||
push-ci-images-to-github-cache: | ||
timeout-minutes: 40 | ||
|
@@ -395,8 +395,8 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt') | |
steps: | ||
- uses: actions/checkout@master | ||
- name: "Free space" | ||
run: ./scripts/ci/ci_free_space_on_ci.sh | ||
run: ./scripts/ci/tools/ci_free_space_on_ci.sh | ||
- name: "Build CI image" | ||
run: ./scripts/ci/ci_prepare_ci_image_on_ci.sh | ||
run: ./scripts/ci/images/ci_prepare_ci_image_on_ci.sh | ||
- name: "Push CI image ${{ matrix.python-version }}" | ||
run: ./scripts/ci/ci_push_ci_image.sh | ||
run: ./scripts/ci/images/ci_push_ci_image.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,4 @@ input_notebook.ipynb | |
|
||
# .git might be a file in case of worktree | ||
.git | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.