Skip to content
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

Merged

Conversation

shantanu73
Copy link
Contributor

@shantanu73 shantanu73 commented Jul 20, 2023

Description of change

  1. Fixed CircleCI configuration
  2. Added configuration for MongoDB 6.0
  3. Removed configuration for MongoDB 4.2 as it has reached End of Life

QA steps

  • automated tests passing
  • manual qa steps passing (list below)

Risks

  • Low risk

Rollback steps

  • revert this branch

@shantanu73 shantanu73 changed the base branch from master to TDL-23543-fix-uuid-transformation July 20, 2023 13:02
@shantanu73 shantanu73 changed the base branch from TDL-23543-fix-uuid-transformation to master July 20, 2023 14:05
@shantanu73 shantanu73 changed the base branch from master to TDL-23543-fix-uuid-transformation July 20, 2023 14:05
@shantanu73 shantanu73 requested a review from luandy64 July 24, 2023 08:14
@@ -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}*")
Copy link
Contributor

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

Copy link
Contributor Author

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.

Comment on lines 90 to 101
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
Copy link
Contributor

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

Copy link
Contributor Author

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.

@shantanu73 shantanu73 changed the base branch from TDL-23543-fix-uuid-transformation to master July 26, 2023 11:50
@shantanu73 shantanu73 changed the base branch from master to TDL-23543-fix-uuid-transformation July 26, 2023 11:50
@shantanu73 shantanu73 merged commit 72bbf4c into TDL-23543-fix-uuid-transformation Jul 27, 2023
3 checks passed
shantanu73 added a commit that referenced this pull request Jul 27, 2023
* - 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>
shantanu73 added a commit that referenced this pull request Jul 27, 2023
* 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>
shantanu73 added a commit that referenced this pull request Jul 27, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants