-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Move utils, operators and glam_subdags out of dags directory (#…
- Loading branch information
Showing
55 changed files
with
987 additions
and
737 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 |
---|---|---|
|
@@ -180,6 +180,51 @@ jobs: | |
gsutil rsync -d -r dataproc_bootstrap gs://moz-fx-data-prod-airflow-dataproc-artifacts/bootstrap | ||
gsutil rsync -d -r jobs gs://moz-fx-data-prod-airflow-dataproc-artifacts/jobs | ||
sync-dags-repo: | ||
executor: docker/machine | ||
steps: | ||
- checkout | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "e4:30:50:41:53:f0:d6:3a:bb:c9:38:54:2d:ca:56:41" | ||
- run: | ||
name: 🤖 Update DAGs repository | ||
command: | | ||
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CircleCI Job" | ||
git clone --branch main [email protected]:mozilla/telemetry-airflow-dags.git | ||
cd ~/project/telemetry-airflow-dags | ||
git submodule update --init --recursive --depth 1 telemetry-airflow | ||
cd ${CIRCLE_PROJECT_REPONAME} | ||
git pull origin dags | ||
cd .. | ||
git add ${CIRCLE_PROJECT_REPONAME} | ||
git commit --allow-empty -m "Automatic commit from ${CIRCLE_PROJECT_REPONAME} commit ${CIRCLE_SHA1:0:9} build ${CIRCLE_BUILD_NUM} [skip ci]" | ||
git push origin main | ||
sync-dags-branch: | ||
executor: docker/machine | ||
steps: | ||
- checkout | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "66:9a:9f:55:2b:5c:f5:d6:ea:c5:c4:f9:7b:db:8d:c0" | ||
- run: | ||
name: 🤖 Update DAGs branch | ||
command: | | ||
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | ||
git config --global user.name "CircleCI job" | ||
git config --global user.email "[email protected]" | ||
git clone --branch dags [email protected]:mozilla/telemetry-airflow.git \ | ||
dags-branch | ||
cd dags-branch/ | ||
rm -rf dags/ | ||
cp -r ~/project/dags dags | ||
git add . | ||
git commit -m "Automatic commit - DAGs from commit ${CIRCLE_SHA1:0:9} build ${CIRCLE_BUILD_NUM} [skip ci]" \ | ||
&& git push \ | ||
|| echo "Skipping push since it looks like there were no changes" | ||
workflows: | ||
ci: | ||
|
@@ -297,3 +342,18 @@ workflows: | |
only: /.*/ | ||
branches: | ||
only: main | ||
|
||
- sync-dags-branch: | ||
name: 🔃 Update DAGs branch | ||
filters: | ||
branches: | ||
only: main | ||
|
||
- sync-dags-repo: | ||
name: 🔃 Synchronize telemetry-airflow-dags repository | ||
filters: | ||
branches: | ||
only: main | ||
requires: | ||
- 🔃 Update DAGs branch | ||
|
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
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.