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

airbyte-ci: introduce ConnectorTestContext #38628

Merged

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented May 23, 2024

What

#38615 made the ConnectorContext try to fetch secrets for tests on initialization.
But the ConnectorContext is the parent class of PublishContext.
It led to failures in the publish workflow because PublishContext is not instantiated with the secret stores we use for testing.

Instead of passing the test secret store to PublishContext I find it more appropriate to create a ConnectorTestContext subclass in which the secret fetching for specific step is handled.

Copy link

vercel bot commented May 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 6:43pm

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alafanechere and the rest of your teammates on Graphite Graphite

@alafanechere alafanechere force-pushed the augustin/05-23-airbyte-ci_introduce_ConnectorContext branch from 27bfe26 to 54fcaaf Compare May 23, 2024 18:42
@alafanechere alafanechere marked this pull request as ready for review May 23, 2024 18:51
@alafanechere alafanechere requested review from a team, bnchrch and clnoll and removed request for a team May 23, 2024 18:51
@alafanechere alafanechere changed the title airbyte-ci: introduce ConnectorContext airbyte-ci: introduce ConnectorTestContext May 23, 2024
Copy link
Contributor

@clnoll clnoll left a comment

Choose a reason for hiding this comment

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

LGTM

@alafanechere alafanechere merged commit 9a3a517 into master May 24, 2024
39 checks passed
@alafanechere alafanechere deleted the augustin/05-23-airbyte-ci_introduce_ConnectorContext branch May 24, 2024 05:50
Copy link

sentry-io bot commented Jun 4, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ SecretNotFoundError: No enabled secret version in GSM found for secret SECRET_SOURCE-COPPER__CREDS pipelines.models.secrets in _fetch_secret View Issue
  • ‼️ TypeError: 'NoneType' object is not iterable pipelines.airbyte_ci.connectors.test.context in... View Issue

Did you find this useful? React with a 👍 or 👎

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.

3 participants