-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tdl 23471] Fix circle ci config #101
[Tdl 23471] Fix circle ci config #101
Conversation
.circleci/config.yml
Outdated
@@ -155,7 +166,7 @@ jobs: | |||
export STITCH_CONFIG_DIR=/tmp/${CIRCLE_PROJECT_REPONAME} | |||
source /usr/local/share/virtualenvs/tap-tester/bin/activate | |||
pip install pymongo==4.4.0 | |||
selected_tests=$(circleci tests glob "tests/*{data,interrupt,open,restrict,view}*") | |||
selected_tests=$(circleci tests glob "tests/*{test_mongodb}*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the docs, it seems like this can be simplified to just *test_mongodb*
. Which is also redundant now since all of our tests start with test_mongodb
. So test_mongodb*
should work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, got it. Will make this change in latest commit.
.circleci/config.yml
Outdated
selected_tests=$(circleci tests glob "tests/*{test_mongodb}*") | ||
echo -e "Tests running in this batch:\n$selected_tests\n" | ||
echo $selected_tests > ./tests-to-run | ||
if [ -s ./tests-to-run ]; then | ||
for test_file in $(cat ./tests-to-run) | ||
do | ||
run-test --tap=tap-mongodb $test_file | ||
done | ||
else | ||
echo "ERROR - File not found or file is empty!" >&2 | ||
exit 5 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is to enable parallelism, I think it's incomplete.
From the latest test run, you can see that Tests running in this batch
gets printed once with all of the tests. Also in CircleCI, the workflow doesn't show more than one node running the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luandy64 this was not to enable parallelism as the builds were running in batch already.
This change was done to include MongoDB version 6.0 for tests & remove MongoDB version 4.2 as it has reached End of Life.
But, we can execute them in parallel & I can make this change, if it's a good idea.
- sort the dictionary before assertion
- improve integration testlogging
…-mongodb into TDL-23471-circle-ci-config
72bbf4c
into
TDL-23543-fix-uuid-transformation
* - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * fix typo * remove f-string from logger statements * minor code cleanup * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * fix typo * remove f-string from logger statements * minor code cleanup * [Tdl 23471] Fix circle ci config (#101) * Added CircleCI config for mongodb 6.0. * Added Ciall testsoin CCI for ngodb 6.5.0 & 6.0 * Fixed CCI config and added all tests for mongodb 4.4 * Removed mongodb 4.2 testing from CCi as it has reached end of life. * Fixed redundant statement to include all integration tests. * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * Added CircleCI config for mongodb 6.0. * Added Ciall testsoin CCI for ngodb 6.5.0 & 6.0 * Fixed CCI config and added all tests for mongodb 4.4 * Removed mongodb 4.2 testing from CCi as it has reached end of life. * Fixed redundant statement to include all integration tests. * Removed glob & for loop statements as all integration tests are running in CCi. --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> * Tdl 23609 fix empty projection (#102) * projection test change * - fix the emtpy projection issue - fix the integration tests * minor integration test fixes * remove redundant comments * Force {} projection to be None * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * projection test change * - fix the emtpy projection issue - fix the integration tests * minor integration test fixes * remove redundant comments * fix typo * remove f-string from logger statements * Force {} projection to be None --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> Co-authored-by: shantanu73 <shantanudhiman25@gmail.com> --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> Co-authored-by: shantanu73 <shantanudhiman25@gmail.com>
* Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * Tdl 23543 fix uuid transformation (#100) * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * fix typo * remove f-string from logger statements * minor code cleanup * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * fix typo * remove f-string from logger statements * minor code cleanup * [Tdl 23471] Fix circle ci config (#101) * Added CircleCI config for mongodb 6.0. * Added Ciall testsoin CCI for ngodb 6.5.0 & 6.0 * Fixed CCI config and added all tests for mongodb 4.4 * Removed mongodb 4.2 testing from CCi as it has reached end of life. * Fixed redundant statement to include all integration tests. * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * Added CircleCI config for mongodb 6.0. * Added Ciall testsoin CCI for ngodb 6.5.0 & 6.0 * Fixed CCI config and added all tests for mongodb 4.4 * Removed mongodb 4.2 testing from CCi as it has reached end of life. * Fixed redundant statement to include all integration tests. * Removed glob & for loop statements as all integration tests are running in CCi. --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> * Tdl 23609 fix empty projection (#102) * projection test change * - fix the emtpy projection issue - fix the integration tests * minor integration test fixes * remove redundant comments * Force {} projection to be None * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * projection test change * - fix the emtpy projection issue - fix the integration tests * minor integration test fixes * remove redundant comments * fix typo * remove f-string from logger statements * Force {} projection to be None --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> Co-authored-by: shantanu73 <shantanudhiman25@gmail.com> --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> Co-authored-by: shantanu73 <shantanudhiman25@gmail.com> * renamed build_mongo_4_4 to build in config.yml * Renamed build_mongo_4_4 to build in config.yml --------- Co-authored-by: Rushikesh Todkar <98420315+RushiT0122@users.noreply.github.com> Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com>
* Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * Major version bump 3.0.0 * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * Tdl 23543 fix uuid transformation (#100) * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * fix typo * remove f-string from logger statements * minor code cleanup * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * fix typo * remove f-string from logger statements * minor code cleanup * [Tdl 23471] Fix circle ci config (#101) * Added CircleCI config for mongodb 6.0. * Added Ciall testsoin CCI for ngodb 6.5.0 & 6.0 * Fixed CCI config and added all tests for mongodb 4.4 * Removed mongodb 4.2 testing from CCi as it has reached end of life. * Fixed redundant statement to include all integration tests. * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * Added CircleCI config for mongodb 6.0. * Added Ciall testsoin CCI for ngodb 6.5.0 & 6.0 * Fixed CCI config and added all tests for mongodb 4.4 * Removed mongodb 4.2 testing from CCi as it has reached end of life. * Fixed redundant statement to include all integration tests. * Removed glob & for loop statements as all integration tests are running in CCi. --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> * Tdl 23609 fix empty projection (#102) * projection test change * - fix the emtpy projection issue - fix the integration tests * minor integration test fixes * remove redundant comments * Force {} projection to be None * Changes: 1) Upgrade pymongo to 4.4.0 2) Added condition to handle DatetimeMS binary date values. * - set maxDiff to None to reset dict comparison limit - sort the dictionary before assertion * fix uuid transformation * upgrade pymongo version in cci configuration * fix cci configuration * upgrade pip and setuptools * update cci config to run on latest python version * fix linting issues * fix uuid bookmarking * fix integration tests * remove debugger import * fix integration test compatibility issues with pymongo v4.3+ and mongoddb v6.0 * - fix transaction life time limit - improve integration testlogging * projection test change * - fix the emtpy projection issue - fix the integration tests * minor integration test fixes * remove redundant comments * fix typo * remove f-string from logger statements * Force {} projection to be None --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> Co-authored-by: shantanu73 <shantanudhiman25@gmail.com> --------- Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> Co-authored-by: shantanu73 <shantanudhiman25@gmail.com> * Removed CCi changes from CHANGELOG.md * renamed build_mongo_4_4 to build in config.yml * Renamed build_mongo_4_4 to build in config.yml * Major version bump 3.0.0 * Removed CCi changes from CHANGELOG.md --------- Co-authored-by: Rushikesh Todkar <98420315+RushiT0122@users.noreply.github.com> Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com>
Description of change
QA steps
Risks
Rollback steps