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

🎉 CI secrets: full migration to GSM #8561

Merged
merged 21 commits into from
Dec 15, 2021

Conversation

antixar
Copy link
Contributor

@antixar antixar commented Dec 6, 2021

What

All secrets must be loaded from GSM only

How

  1. Rewrite all logic scripts to Python
  2. migrate of exist GitHub secrets to GSM
  3. remove GitHub connectors' secrets from CI flow

migrated values: github_secrets_keys.txt

@antixar antixar temporarily deployed to more-secrets December 6, 2021 22:50 Inactive
@antixar antixar self-assigned this Dec 6, 2021
@antixar antixar linked an issue Dec 6, 2021 that may be closed by this pull request
@antixar
Copy link
Contributor Author

antixar commented Dec 6, 2021

/test connector=connectors/source-s3

🕑 connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1546975050
❌ connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1546975050
🐛

@jrhizor jrhizor temporarily deployed to more-secrets December 6, 2021 22:56 Inactive
@antixar antixar temporarily deployed to more-secrets December 6, 2021 23:16 Inactive
@antixar
Copy link
Contributor Author

antixar commented Dec 6, 2021

/test connector=connectors/source-s3

🕑 connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547042160
❌ connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547042160
🐛

@jrhizor jrhizor temporarily deployed to more-secrets December 6, 2021 23:19 Inactive
@antixar
Copy link
Contributor Author

antixar commented Dec 6, 2021

/test connector=connectors/source-s3

🕑 connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547063702
❌ connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547063702
🐛

@antixar antixar temporarily deployed to more-secrets December 6, 2021 23:24 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 6, 2021 23:25 Inactive
@antixar
Copy link
Contributor Author

antixar commented Dec 6, 2021

/test connector=connectors/source-s3

🕑 connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547148411
❌ connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547148411
🐛

@antixar antixar temporarily deployed to more-secrets December 6, 2021 23:55 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 6, 2021 23:56 Inactive
@antixar
Copy link
Contributor Author

antixar commented Dec 7, 2021

/test connector=connectors/source-s3

🕑 connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547186710
❌ connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547186710
🐛

@antixar antixar temporarily deployed to more-secrets December 7, 2021 00:08 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 7, 2021 00:09 Inactive
@antixar
Copy link
Contributor Author

antixar commented Dec 7, 2021

/test connector=connectors/source-s3

🕑 connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547215788
❌ connectors/source-s3 https://github.com/airbytehq/airbyte/actions/runs/1547215788
🐛

@antixar antixar temporarily deployed to more-secrets December 7, 2021 00:16 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 7, 2021 00:17 Inactive
@antixar antixar marked this pull request as ready for review December 14, 2021 17:05
@antixar
Copy link
Contributor Author

antixar commented Dec 14, 2021

/test connector=connectors/source-lemlist

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

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        76      8    89%
	 source_acceptance_test/conftest.py                     109    109     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              235     95    60%
	 source_acceptance_test/tests/test_full_refresh.py       38     27    29%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  54     24    56%
	 source_acceptance_test/utils/compare.py                 62     25    60%
	 source_acceptance_test/utils/connector_runner.py        82     49    40%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  946    442    53%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                       Stmts   Miss  Cover
	 --------------------------------------------------------------
	 base_python/__init__.py                       13      0   100%
	 base_python/catalog_helpers.py                10      6    40%
	 base_python/cdk/__init__.py                    0      0   100%
	 base_python/cdk/abstract_source.py            89     64    28%
	 base_python/cdk/streams/__init__.py            0      0   100%
	 base_python/cdk/streams/auth/__init__.py       0      0   100%
	 base_python/cdk/streams/auth/core.py           8      1    88%
	 base_python/cdk/streams/auth/jwt.py            5      5     0%
	 base_python/cdk/streams/auth/oauth.py         37     26    30%
	 base_python/cdk/streams/auth/token.py          9      4    56%
	 base_python/cdk/streams/core.py               63     32    49%
	 base_python/cdk/streams/exceptions.py         10      2    80%
	 base_python/cdk/streams/http.py               67     33    51%
	 base_python/cdk/streams/rate_limiting.py      30     14    53%
	 base_python/cdk/utils/__init__.py              0      0   100%
	 base_python/cdk/utils/casing.py                4      0   100%
	 base_python/cdk/utils/event_timing.py         47      3    94%
	 base_python/client.py                         56     33    41%
	 base_python/entrypoint.py                     70     56    20%
	 base_python/integration.py                    52     25    52%
	 base_python/logger.py                         33     15    55%
	 base_python/schema_helpers.py                 56     41    27%
	 base_python/source.py                         51     34    33%
	 main_dev.py                                    3      3     0%
	 --------------------------------------------------------------
	 TOTAL                                        713    397    44%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                         Stmts   Miss  Cover
	 ------------------------------------------------
	 source_lemlist/__init__.py       2      0   100%
	 source_lemlist/auth.py           8      0   100%
	 source_lemlist/source.py        19      2    89%
	 source_lemlist/streams.py       49     11    78%
	 ------------------------------------------------
	 TOTAL                           78     13    83%

Python short test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestIncremental.test_two_sequential_reads because not found in the config
======================== 13 passed, 1 skipped in 13.81s ========================

@jrhizor jrhizor temporarily deployed to more-secrets December 14, 2021 17:07 Inactive
@antixar
Copy link
Contributor Author

antixar commented Dec 14, 2021

/performance-test connector=connectors/source-mysql

@antixar
Copy link
Contributor Author

antixar commented Dec 15, 2021

/test connector=connectors/source-marketo

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

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        76      8    89%
	 source_acceptance_test/conftest.py                     109    109     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              235     95    60%
	 source_acceptance_test/tests/test_full_refresh.py       38     27    29%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  54     24    56%
	 source_acceptance_test/utils/compare.py                 62     25    60%
	 source_acceptance_test/utils/connector_runner.py        82     49    40%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  946    442    53%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                         Stmts   Miss  Cover
	 ------------------------------------------------
	 source_marketo/__init__.py       2      0   100%
	 source_marketo/source.py       237    151    36%
	 source_marketo/utils.py         31      8    74%
	 ------------------------------------------------
	 TOTAL                          270    159    41%

@jrhizor jrhizor temporarily deployed to more-secrets December 15, 2021 10:39 Inactive
@antixar antixar temporarily deployed to more-secrets December 15, 2021 10:43 Inactive
Copy link
Contributor

@Phlair Phlair left a comment

Choose a reason for hiding this comment

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

Good stuff, mostly minor comments.

Main point would be, if we're removing github secrets entirely, doesn't that make the github secrets code in this PR redundant?

tools/ci_common_utils/ci_common_utils/google_api.py Outdated Show resolved Hide resolved
tools/ci_credentials/ci_credentials/secrets_loader.py Outdated Show resolved Hide resolved
tools/ci_credentials/ci_credentials/secrets_loader.py Outdated Show resolved Hide resolved
tools/ci_credentials/ci_credentials/secrets_loader.py Outdated Show resolved Hide resolved
tools/ci_credentials/ci_credentials/main.py Outdated Show resolved Hide resolved
tools/lib/gcp-token.sh Show resolved Hide resolved
@antixar
Copy link
Contributor Author

antixar commented Dec 15, 2021

/test connector=connectors/source-intercom

🕑 connectors/source-intercom https://github.com/airbytehq/airbyte/actions/runs/1582600282
❌ connectors/source-intercom https://github.com/airbytehq/airbyte/actions/runs/1582600282
🐛

@antixar antixar temporarily deployed to more-secrets December 15, 2021 12:03 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 15, 2021 12:05 Inactive
@antixar
Copy link
Contributor Author

antixar commented Dec 15, 2021

/test connector=connectors/source-intercom

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

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        76      8    89%
	 source_acceptance_test/conftest.py                     109    109     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              235     95    60%
	 source_acceptance_test/tests/test_full_refresh.py       38     27    29%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  54     24    56%
	 source_acceptance_test/utils/compare.py                 62     25    60%
	 source_acceptance_test/utils/connector_runner.py        82     49    40%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  946    442    53%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                          Stmts   Miss  Cover
	 -------------------------------------------------
	 source_intercom/__init__.py       2      0   100%
	 source_intercom/source.py       215     40    81%
	 -------------------------------------------------
	 TOTAL                           217     40    82%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                          Stmts   Miss  Cover
	 -------------------------------------------------
	 source_intercom/__init__.py       2      0   100%
	 source_intercom/source.py       215    105    51%
	 -------------------------------------------------
	 TOTAL                           217    105    52%

@antixar antixar requested a review from Phlair December 15, 2021 12:11
@antixar antixar temporarily deployed to more-secrets December 15, 2021 12:12 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 15, 2021 12:12 Inactive
@antixar antixar temporarily deployed to more-secrets December 15, 2021 12:32 Inactive
Copy link
Contributor

@Phlair Phlair left a comment

Choose a reason for hiding this comment

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

lgtm

@antixar
Copy link
Contributor Author

antixar commented Dec 15, 2021

/test connector=connectors/source-intercom

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

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        76      8    89%
	 source_acceptance_test/conftest.py                     109    109     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              235     95    60%
	 source_acceptance_test/tests/test_full_refresh.py       38     27    29%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  54     24    56%
	 source_acceptance_test/utils/compare.py                 62     25    60%
	 source_acceptance_test/utils/connector_runner.py        82     49    40%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  946    442    53%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                          Stmts   Miss  Cover
	 -------------------------------------------------
	 source_intercom/__init__.py       2      0   100%
	 source_intercom/source.py       215     40    81%
	 -------------------------------------------------
	 TOTAL                           217     40    82%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                          Stmts   Miss  Cover
	 -------------------------------------------------
	 source_intercom/__init__.py       2      0   100%
	 source_intercom/source.py       215    105    51%
	 -------------------------------------------------
	 TOTAL                           217    105    52%

@jrhizor jrhizor temporarily deployed to more-secrets December 15, 2021 13:03 Inactive
@antixar antixar merged commit d3b0c99 into master Dec 15, 2021
@antixar antixar deleted the antixar/7774-finish-migration-to-GSM branch December 15, 2021 13:08
schlattk pushed a commit to schlattk/airbyte that referenced this pull request Jan 4, 2022
* add python packages for CI scripts

* add tox config for all subpackages

* draft version

* init venv for scripts

* fix venv

* remove used comments

* fix run test

* change base folder

* update secret format

* update docs

* remove an unused file

* remove github secrets logic fully

* fix base_folder balue

* add functions desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Completion of migration to GSM
3 participants