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

Source Gnews: reorganize inline schema in gnews.yaml #21322

Merged
merged 5 commits into from
Jan 17, 2023

Conversation

clnoll
Copy link
Contributor

@clnoll clnoll commented Jan 12, 2023

What

Improve readability of the gnews manifest.

How

Now that we're supporting forward references, we can move the schemas key in to the bottom of the manifest, when using inline schemas.

Pre-merge Checklist

@clnoll clnoll force-pushed the source-gnews-use-schema-forward-reference branch from c0c8aec to 4bd392c Compare January 12, 2023 15:15
@octavia-squidington-iv octavia-squidington-iv added the area/documentation Improvements or additions to documentation label Jan 12, 2023
@clnoll
Copy link
Contributor Author

clnoll commented Jan 12, 2023

/test connector=connectors/source-gnews

🕑 connectors/source-gnews https://github.com/airbytehq/airbyte/actions/runs/3903559551
✅ connectors/source-gnews https://github.com/airbytehq/airbyte/actions/runs/3903559551
Python tests coverage:

Name                                                   Stmts   Miss  Cover
--------------------------------------------------------------------------
source_gnews/wait_until_midnight_backoff_strategy.py      16      0   100%
source_gnews/__init__.py                                   3      0   100%
source_gnews/source.py                                     4      1    75%
--------------------------------------------------------------------------
TOTAL                                                     23      1    96%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          12      4    67%   16-19
	 source_acceptance_test/config.py                       141      5    96%   87, 93, 239, 243-244
	 source_acceptance_test/conftest.py                     211     95    55%   36, 42-44, 49, 54, 77, 83, 89-91, 110, 115-117, 123-125, 131-132, 137-138, 143, 149, 158-167, 173-178, 193, 217, 248, 254, 262-267, 275-285, 293-306, 311-317, 324-335, 342-358
	 source_acceptance_test/plugin.py                        69     25    64%   22-23, 31, 36, 120-140, 144-148
	 source_acceptance_test/tests/test_core.py              402    115    71%   53, 58, 93-104, 109-116, 120-121, 125-126, 308, 346-363, 376-387, 391-396, 402, 435-440, 478-485, 528-530, 533, 598-606, 618-621, 626, 682-683, 689, 692, 728-738, 751-776
	 source_acceptance_test/tests/test_incremental.py       160     14    91%   56-63, 68-81, 244
	 source_acceptance_test/utils/asserts.py                 39      2    95%   62-63
	 source_acceptance_test/utils/common.py                  94     10    89%   16-17, 32-38, 72, 75
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       133     33    75%   24-27, 46-47, 50-54, 57-58, 73-75, 78-80, 83-85, 88-90, 93-95, 124-125, 159-161, 208
	 source_acceptance_test/utils/json_schema_helper.py     107     13    88%   30-31, 38, 41, 65-68, 96, 120, 192-194
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1609    339    79%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_core.py:94: The previous and actual specifications are identical.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_core.py:377: The previous and actual discovered catalogs are identical.
============ 29 passed, 2 skipped, 31 warnings in 66.74s (0:01:06) =============

@clnoll clnoll requested review from brianjlai and girarda January 12, 2023 15:57
Copy link
Contributor

@girarda girarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much better :)

@clnoll
Copy link
Contributor Author

clnoll commented Jan 12, 2023

/publish connector=connectors/source-gnews

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


Connector Did it publish? Were definitions generated?
connectors/source-gnews

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

@clnoll
Copy link
Contributor Author

clnoll commented Jan 12, 2023

/publish connector=connectors/source-gnews

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


Connector Did it publish? Were definitions generated?
connectors/source-gnews

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

@clnoll
Copy link
Contributor Author

clnoll commented Jan 12, 2023

/publish connector=connectors/source-gnews

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


Connector Did it publish? Were definitions generated?
connectors/source-gnews

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

@clnoll clnoll force-pushed the source-gnews-use-schema-forward-reference branch from ddd9127 to fc9fd60 Compare January 12, 2023 18:08
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 18:10 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 18:10 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 18:10 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 18:10 — with GitHub Actions Inactive
@clnoll clnoll force-pushed the source-gnews-use-schema-forward-reference branch 2 times, most recently from a3f9846 to f0cb5d7 Compare January 12, 2023 18:58
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 19:01 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 19:01 — with GitHub Actions Inactive
@clnoll clnoll force-pushed the source-gnews-use-schema-forward-reference branch from 6a1780c to 3daafec Compare January 12, 2023 19:19
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 19:21 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 19:22 — with GitHub Actions Inactive
@clnoll clnoll force-pushed the source-gnews-use-schema-forward-reference branch from 3daafec to f093d95 Compare January 12, 2023 20:37
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 20:39 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 12, 2023 20:39 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 13, 2023 10:37 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 13, 2023 10:37 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 17, 2023 11:08 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 17, 2023 11:08 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

Airbyte Code Coverage

There is no coverage information present for the Files changed

Total Project Coverage 26.59% 🍏

@clnoll clnoll temporarily deployed to more-secrets January 17, 2023 11:46 — with GitHub Actions Inactive
@clnoll clnoll temporarily deployed to more-secrets January 17, 2023 11:47 — with GitHub Actions Inactive
@clnoll
Copy link
Contributor Author

clnoll commented Jan 17, 2023

/test connector=connectors/source-gnews

🕑 connectors/source-gnews https://github.com/airbytehq/airbyte/actions/runs/3939364807
✅ connectors/source-gnews https://github.com/airbytehq/airbyte/actions/runs/3939364807
Python tests coverage:

Name                                                   Stmts   Miss  Cover
--------------------------------------------------------------------------
source_gnews/wait_until_midnight_backoff_strategy.py      16      0   100%
source_gnews/__init__.py                                   3      0   100%
source_gnews/source.py                                     4      1    75%
--------------------------------------------------------------------------
TOTAL                                                     23      1    96%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          12      4    67%   16-19
	 source_acceptance_test/config.py                       141      5    96%   87, 93, 239, 243-244
	 source_acceptance_test/conftest.py                     211     95    55%   36, 42-44, 49, 54, 77, 83, 89-91, 110, 115-117, 123-125, 131-132, 137-138, 143, 149, 158-167, 173-178, 193, 217, 248, 254, 262-267, 275-285, 293-306, 311-317, 324-335, 342-358
	 source_acceptance_test/plugin.py                        69     25    64%   22-23, 31, 36, 120-140, 144-148
	 source_acceptance_test/tests/test_core.py              402    115    71%   53, 58, 93-104, 109-116, 120-121, 125-126, 308, 346-363, 376-387, 391-396, 402, 435-440, 478-485, 528-530, 533, 598-606, 618-621, 626, 682-683, 689, 692, 728-738, 751-776
	 source_acceptance_test/tests/test_incremental.py       160     14    91%   58-65, 70-83, 246
	 source_acceptance_test/utils/asserts.py                 39      2    95%   62-63
	 source_acceptance_test/utils/common.py                  94     10    89%   16-17, 32-38, 72, 75
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       133     33    75%   24-27, 46-47, 50-54, 57-58, 73-75, 78-80, 83-85, 88-90, 93-95, 124-125, 159-161, 208
	 source_acceptance_test/utils/json_schema_helper.py     107     13    88%   30-31, 38, 41, 65-68, 96, 120, 192-194
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1609    339    79%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_core.py:94: The previous and actual specifications are identical.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_core.py:377: The previous and actual discovered catalogs are identical.
============ 29 passed, 2 skipped, 31 warnings in 66.01s (0:01:06) =============

@clnoll
Copy link
Contributor Author

clnoll commented Jan 17, 2023

/publish connector=connectors/source-gnews

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


Connector Did it publish? Were definitions generated?
connectors/source-gnews

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

@clnoll clnoll merged commit 9b7535e into master Jan 17, 2023
@clnoll clnoll deleted the source-gnews-use-schema-forward-reference branch January 17, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/gnews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants