Skip to content

Better formatting/logging for pre-sync data #25459

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

Merged
merged 16 commits into from
Apr 25, 2023
Merged

Better formatting/logging for pre-sync data #25459

merged 16 commits into from
Apr 25, 2023

Conversation

akashkulk
Copy link
Contributor

Better logging includes

  • Human readable formatting for table estimates + number of rows
  • Include cursor information with indexes to quickly verify if cursor field is indexed

@octavia-squidington-iii octavia-squidington-iii added the area/connectors Connector related issues label Apr 24, 2023
@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/test connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/4792174590
❌ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/4792174590
🐛 https://gradle.com/s/kfloqve2odlpe

Build Failed

Test summary info:

=========================== short test summary info ============================
FAILED test_core.py::TestBasicRead::test_read[inputs0] - docker.errors.Contai...
FAILED test_core.py::TestBasicRead::test_read[inputs1] - docker.errors.Contai...
FAILED test_full_refresh.py::TestFullRefresh::test_sequential_reads[inputs0]
FAILED test_full_refresh.py::TestFullRefresh::test_sequential_reads[inputs1]
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
SKIPPED [2] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:100: The previous and actual specifications are identical.
SKIPPED [2] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:578: The previous and actual discovered catalogs are identical.
============== 4 failed, 64 passed, 5 skipped in 68.05s (0:01:08) ==============

@akashkulk akashkulk marked this pull request as ready for review April 25, 2023 00:00
@akashkulk akashkulk requested a review from a team as a code owner April 25, 2023 00:00
@github-actions
Copy link
Contributor

github-actions bot commented Apr 25, 2023

Affected Connector Report

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to do the following as needed:

  • Run integration tests
  • Bump connector or module version
  • Add changelog
  • Publish the new version

✅ Sources (22)

Connector Version Changelog Publish
source-alloydb 2.0.23
source-alloydb-strict-encrypt 2.0.23 🔵
(ignored)
🔵
(ignored)
source-bigquery 0.2.3
source-clickhouse 0.1.17
source-clickhouse-strict-encrypt 0.1.17 🔵
(ignored)
🔵
(ignored)
source-cockroachdb 0.1.22
source-cockroachdb-strict-encrypt 0.1.22 🔵
(ignored)
🔵
(ignored)
source-db2 0.1.19
source-db2-strict-encrypt 0.1.19 🔵
(ignored)
🔵
(ignored)
source-mssql 1.0.14
source-mssql-strict-encrypt 1.0.14 🔵
(ignored)
🔵
(ignored)
source-mysql 2.0.18
source-mysql-strict-encrypt 2.0.18 🔵
(ignored)
🔵
(ignored)
source-oracle 0.3.24
source-oracle-strict-encrypt 0.3.24 🔵
(ignored)
🔵
(ignored)
source-postgres 2.0.25
source-postgres-strict-encrypt 2.0.25 🔵
(ignored)
🔵
(ignored)
source-redshift 0.3.16
source-scaffold-java-jdbc 0.1.0 🔵
(ignored)
🔵
(ignored)
source-snowflake 0.1.34
source-teradata 0.1.0
source-tidb 0.2.4
  • See "Actionable Items" below for how to resolve warnings and errors.

✅ Destinations (0)

Connector Version Changelog Publish
  • See "Actionable Items" below for how to resolve warnings and errors.

✅ Other Modules (0)

Actionable Items

(click to expand)

Category Status Actionable Item
Version
mismatch
The version of the connector is different from its normal variant. Please bump the version of the connector.

doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
Changelog
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.

changelog missing
There is no chnagelog for the current version of the connector. If you are the author of the current version, please add a changelog.
Publish
not in seed
The connector is not in the seed file (e.g. source_definitions.yaml), so its publication status cannot be checked. This can be normal (e.g. some connectors are cloud-specific, and only listed in the cloud seed file). Please double-check to make sure that it is not a bug.

diff seed version
The connector exists in the seed file, but the latest version is not listed there. This usually means that the latest version is not published. Please use the /publish command to publish the latest version.

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/test connector=connectors/source-mysql

🕑 connectors/source-mysql https://github.com/airbytehq/airbyte/actions/runs/4792237247
✅ connectors/source-mysql https://github.com/airbytehq/airbyte/actions/runs/4792237247
No Python unittests run

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestConnection.test_check: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestDiscovery.test_discover: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestBasicRead.test_read: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestFullRefresh.test_sequential_reads: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:100: The previous and actual specifications are identical.
================= 22 passed, 6 skipped, 30 warnings in 18.17s ==================

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/test connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/4793030419
❌ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/4793030419
🐛 https://gradle.com/s/zyozhliggzoao

Build Failed

Test summary info:

=========================== short test summary info ============================
FAILED test_core.py::TestBasicRead::test_read[inputs0] - docker.errors.Contai...
FAILED test_core.py::TestBasicRead::test_read[inputs1] - docker.errors.Contai...
FAILED test_full_refresh.py::TestFullRefresh::test_sequential_reads[inputs0]
FAILED test_full_refresh.py::TestFullRefresh::test_sequential_reads[inputs1]
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
SKIPPED [2] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:100: The previous and actual specifications are identical.
SKIPPED [2] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:578: The previous and actual discovered catalogs are identical.
============== 4 failed, 64 passed, 5 skipped in 68.38s (0:01:08) ==============

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/test connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/4800068601
✅ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/4800068601
No Python unittests run

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
SKIPPED [2] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:100: The previous and actual specifications are identical.
SKIPPED [2] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:578: The previous and actual discovered catalogs are identical.
=================== 68 passed, 5 skipped in 81.90s (0:01:21) ===================

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/publish connector=connectors/source-postgres run-tests=false

🕑 Publishing the following connectors:
connectors/source-postgres
https://github.com/airbytehq/airbyte/actions/runs/4800427748


Connector Version Did it publish? Were definitions generated?
connectors/source-postgres 2.0.25

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/publish connector=connectors/source-postgres-strict-encrypt run-tests=false

🕑 Publishing the following connectors:
connectors/source-postgres-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/4800432181


Connector Version Did it publish? Were definitions generated?
connectors/source-postgres-strict-encrypt 2.0.25

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ akashkulk
❌ airbyteio
You have signed the CLA already but the status is still pending? Let us recheck it.

@akashkulk akashkulk enabled auto-merge (squash) April 25, 2023 18:35
@akashkulk akashkulk disabled auto-merge April 25, 2023 18:52
@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/publish connector=connectors/source-postgres run-tests=false

🕑 Publishing the following connectors:
connectors/source-postgres
https://github.com/airbytehq/airbyte/actions/runs/4801139082


Connector Version Did it publish? Were definitions generated?
connectors/source-postgres 2.0.25

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/publish connector=connectors/source-postgres-strict-encrypt run-tests=false

🕑 Publishing the following connectors:
connectors/source-postgres-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/4801141802


Connector Version Did it publish? Were definitions generated?
connectors/source-postgres-strict-encrypt 2.0.25

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@akashkulk
Copy link
Contributor Author

Need to fix failing checks. Have deleted published images for now, so will need to go back and take a look

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/publish connector=connectors/source-postgres run-tests=false

🕑 Publishing the following connectors:
connectors/source-postgres
https://github.com/airbytehq/airbyte/actions/runs/4801846096


Connector Version Did it publish? Were definitions generated?
connectors/source-postgres 2.0.25

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/publish connector=connectors/source-postgres-strict-encrypt run-tests=false

🕑 Publishing the following connectors:
connectors/source-postgres-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/4801847692


Connector Version Did it publish? Were definitions generated?
connectors/source-postgres-strict-encrypt 2.0.25

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/publish connector=connectors/source-postgres run-tests=false

🕑 Publishing the following connectors:
connectors/source-postgres
https://github.com/airbytehq/airbyte/actions/runs/4802125999


Connector Version Did it publish? Were definitions generated?
connectors/source-postgres 2.0.25

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@akashkulk
Copy link
Contributor Author

akashkulk commented Apr 25, 2023

/publish connector=connectors/source-postgres-strict-encrypt run-tests=false

🕑 Publishing the following connectors:
connectors/source-postgres-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/4802126898


Connector Version Did it publish? Were definitions generated?
connectors/source-postgres-strict-encrypt 2.0.25

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@akashkulk akashkulk merged commit 0d9b7b4 into master Apr 25, 2023
@akashkulk akashkulk deleted the moar_logging branch April 25, 2023 21:12
akashkulk added a commit that referenced this pull request Apr 26, 2023
octavia-approvington pushed a commit that referenced this pull request Apr 26, 2023
* Revert "Better formatting/logging for pre-sync data (#25459)"

This reverts commit 0d9b7b4.

* Fix dockerfile + docs

* auto-bump connector version

---------

Co-authored-by: Octavia Squidington III <[email protected]>
marcosmarxm pushed a commit to natalia-miinto/airbyte that referenced this pull request Jun 8, 2023
* Log cursor alongside indexes

* Better formatting for table estimates, indexes

* Doc & dockerfile bump

* Fix formatting

* auto-bump connector version

* Automated Commit - Formatting Changes

* Fixing connector base issues

* Fix failure

* Fix changelog

---------

Co-authored-by: Octavia Squidington III <[email protected]>
Co-authored-by: airbyteio <[email protected]>
marcosmarxm pushed a commit to natalia-miinto/airbyte that referenced this pull request Jun 8, 2023
* Revert "Better formatting/logging for pre-sync data (airbytehq#25459)"

This reverts commit 0d9b7b4.

* Fix dockerfile + docs

* auto-bump connector version

---------

Co-authored-by: Octavia Squidington III <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants