-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TDL-23255 Upgrade Shopify API to 2023_04 (#178)
* upgrade shopify api to 23-04 * try parallel circle tests * Remove fulfillment_service from line_item resource for 2022_10 ----------------------------- Co-authored-by: alu <[email protected]> * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * update schema name to avoid test collisions ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * decrease parallelism for rate limiting errors ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * add fulfillment_service back in since it's nested ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * Remove deprecated orders.total_price_usd field for 2022_10 ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * Add new orders.merchant_of_record_app_id field ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * add new transactions.payment_details fields 2023_01 ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * Add new transactions.payment_id field for 2023_01 ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * make jsonvalidator happy ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * Remove processing_method, payment_details, gateway for 2023_04 ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * Add total_unsettled_set object for 2023_04 ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * Add current / original fees sets objects for 2023_04 ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * Fix json and collapse newly added objects for readability ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * version_bump and changelog ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * adjust parallelism to 2 so that we don't api calls per second limit ----------------------------- Co-authored-by: Dylan Sprayberry <[email protected]> * Fix whitespace --------- Co-authored-by: Leslie VanDeMark <[email protected]> Co-authored-by: alu <[email protected]> Co-authored-by: Leslie VanDeMark <[email protected]>
- Loading branch information
1 parent
ad53f76
commit 43b85b2
Showing
9 changed files
with
202 additions
and
68 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 |
---|---|---|
|
@@ -2,10 +2,19 @@ version: 2.1 | |
orbs: | ||
slack: circleci/[email protected] | ||
|
||
jobs: | ||
build: | ||
executors: | ||
docker-executor: | ||
docker: | ||
- image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:stitch-tap-tester | ||
|
||
jobs: | ||
build: | ||
executor: docker-executor | ||
steps: | ||
- run: echo "CI Done" | ||
|
||
ensure_env: | ||
executor: docker-executor | ||
steps: | ||
- checkout | ||
- run: | ||
|
@@ -15,16 +24,39 @@ jobs: | |
source /usr/local/share/virtualenvs/tap-shopify/bin/activate | ||
pip install -U 'pip<19.2' 'setuptools<51.0.0' | ||
pip install .[dev] | ||
- persist_to_workspace: | ||
root: /usr/local/share/virtualenvs | ||
paths: | ||
- tap-shopify | ||
- dev_env.sh | ||
run_pylint: | ||
executor: docker-executor | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /usr/local/share/virtualenvs | ||
- run: | ||
name: 'pylint' | ||
command: | | ||
source /usr/local/share/virtualenvs/tap-shopify/bin/activate | ||
pylint tap_shopify -d missing-docstring,too-many-branches | ||
json_validator: | ||
executor: docker-executor | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /usr/local/share/virtualenvs | ||
- run: | ||
name: 'JSON Validator' | ||
command: | | ||
source /usr/local/share/virtualenvs/tap-tester/bin/activate | ||
stitch-validate-json tap_shopify/schemas/*.json | ||
run_unit_tests: | ||
executor: docker-executor | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /usr/local/share/virtualenvs | ||
- run: | ||
name: 'Unit Tests' | ||
command: | | ||
|
@@ -36,6 +68,13 @@ jobs: | |
path: test_output/report.xml | ||
- store_artifacts: | ||
path: htmlcov | ||
run_integration_tests: | ||
executor: docker-executor | ||
parallelism: 2 | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /usr/local/share/virtualenvs | ||
- run: | ||
name: 'Integration Tests' | ||
command: | | ||
|
@@ -44,7 +83,14 @@ jobs: | |
mkdir /tmp/${CIRCLE_PROJECT_REPONAME} | ||
export STITCH_CONFIG_DIR=/tmp/${CIRCLE_PROJECT_REPONAME} | ||
source /usr/local/share/virtualenvs/tap-tester/bin/activate | ||
run-test --tap=tap-shopify tests | ||
circleci tests glob "tests/test_*.py" | circleci tests split > ./tests-to-run | ||
if [ -s ./tests-to-run ]; then | ||
for test_file in $(cat ./tests-to-run) | ||
do | ||
echo $test_file > $STITCH_CONFIG_DIR/tap_test.txt | ||
run-test --tap=${CIRCLE_PROJECT_REPONAME} $test_file | ||
done | ||
fi | ||
- slack/notify-on-failure: | ||
only_for_branches: master | ||
- store_artifacts: | ||
|
@@ -54,10 +100,42 @@ workflows: | |
version: 2 | ||
commit: &commit_jobs | ||
jobs: | ||
- ensure_env: | ||
context: | ||
- circleci-user | ||
- tier-1-tap-user | ||
- run_pylint: | ||
context: | ||
- circleci-user | ||
- tier-1-tap-user | ||
requires: | ||
- ensure_env | ||
- json_validator: | ||
context: | ||
- circleci-user | ||
- tier-1-tap-user | ||
requires: | ||
- ensure_env | ||
- run_unit_tests: | ||
context: | ||
- circleci-user | ||
- tier-1-tap-user | ||
requires: | ||
- ensure_env | ||
- run_integration_tests: | ||
context: | ||
- circleci-user | ||
- tier-1-tap-user | ||
requires: | ||
- ensure_env | ||
- build: | ||
context: | ||
- circleci-user | ||
- tier-1-tap-user | ||
requires: | ||
- run_pylint | ||
- run_unit_tests | ||
- run_integration_tests | ||
build_daily: | ||
<<: *commit_jobs | ||
triggers: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1481,4 +1481,4 @@ | |
"array" | ||
] | ||
} | ||
} | ||
} |
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.