forked from OpenLineage/OpenLineage
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from nubank/sync-1.25.0
Sync 1.25.0
- Loading branch information
Showing
323 changed files
with
33,989 additions
and
22,010 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ setup: true | |
# the path of an updated fileset | ||
orbs: | ||
continuation: circleci/[email protected] | ||
github-cli: circleci/[email protected] | ||
|
||
# optional parameter when triggering to | ||
# only run a particular type of integration | ||
|
@@ -51,6 +52,7 @@ jobs: | |
- image: cimg/python:3.8 | ||
steps: | ||
- checkout | ||
- github-cli/setup | ||
- run: | ||
name: Install yq | ||
command: | | ||
|
@@ -150,26 +152,14 @@ jobs: | |
name: Remove approval steps if not pull from forks. | ||
command: | | ||
pip install pyyaml==6.0.1 | ||
python -c "import yaml | ||
d = yaml.safe_load(open('complete_config.yml')) | ||
for workflow_name, workflow_definition in d['workflows'].items(): | ||
jobs = workflow_definition.get('jobs') if isinstance(workflow_definition, dict) else None | ||
if not jobs: continue | ||
# find all approvals | ||
approvals = list(filter(lambda x: isinstance(x, dict) and list(x.values())[0].get('type') == 'approval', jobs)) | ||
for approval in approvals: | ||
approval_name = next(iter(approval)) | ||
approval_upstreams = approval[approval_name].get('requires') | ||
approval_downstream = list(filter(lambda x: isinstance(x, dict) and approval_name in list(x.values())[0].get('requires', ''), jobs)) | ||
# replace approval with its upstream jobs | ||
for job in approval_downstream: | ||
requires = next(iter(job.values()))['requires'] | ||
requires.remove(approval_name) | ||
requires.extend(approval_upstreams) | ||
jobs.remove(approval) | ||
with open('complete_config.yml', 'w') as f: | ||
f.write(yaml.dump(d, sort_keys=False))" | ||
python dev/filter_approvals.py | ||
- run: | | ||
export IS_FULL_TESTS=$(gh pr view --json labels | jq 'any(.labels[]; .name == "full-tests")') | ||
echo $IS_FULL_TESTS | ||
if [ -z "$IS_FULL_TESTS" ] || [ "$IS_FULL_TESTS" == "0" ]; then | ||
pip install pyyaml==6.0.1 | ||
python dev/filter_matrix.py | ||
fi | ||
- when: | ||
condition: | ||
or: | ||
|
@@ -194,6 +184,7 @@ workflows: | |
schedule_workflow: | ||
jobs: | ||
- determine_changed_modules: | ||
context: pr | ||
filters: | ||
tags: | ||
only: /^[0-9]+(\.[0-9]+){2}(-rc\.[0-9]+)?$/ |
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.