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

feat(connectors-qa): support manifest-only connectors #43377

Merged
merged 8 commits into from
Aug 8, 2024

Conversation

natikgadzhi
Copy link
Contributor

@natikgadzhi natikgadzhi commented Aug 7, 2024

What

As we're migrating all our connectors to manifest-only format, we must run connector static checks on them. This pull request adds basic support for manifest-only connectors in connectors-qa:

  • Tests will run applicable checks
  • New check to verify correct source-declarative-manifest is used.

User Impact

None.

@natikgadzhi natikgadzhi requested a review from a team August 7, 2024 23:46
Copy link

vercel bot commented Aug 7, 2024

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

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2024 10:12pm

@natikgadzhi
Copy link
Contributor Author

natikgadzhi commented Aug 8, 2024

/format-fix

Format-fix job started... Check job output.

✅ Changes applied successfully. (60f4fbd)

@@ -63,6 +63,24 @@ def _run(self, connector: Connector) -> CheckResult:
return self.create_check_result(connector=connector, passed=True, message="PyPi publishing is enabled")


class CheckManifestOnlyConnectorBaseImage(PackagingCheck):
Copy link
Contributor

Choose a reason for hiding this comment

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

@natikgadzhi I think we need to add an instance of this class to the ENABLED_CHECKS list at the bottom of this file for it to run?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BREH you're right.

Copy link
Contributor

@lmossman lmossman left a comment

Choose a reason for hiding this comment

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

I'm not super familiar with this area of the code, so you may want a review from someone more familiar.

But everything here looks reasonable to me

@@ -63,6 +62,24 @@ def _run(self, connector: Connector) -> CheckResult:
return self.create_check_result(connector=connector, passed=True, message="PyPi publishing is enabled")


class CheckManifestOnlyConnectorBaseImage(PackagingCheck):
Copy link
Contributor

Choose a reason for hiding this comment

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

One other check we could add here is that there are none of the python boilerplate files in this connector directory (e.g. source.py, run.py, etc).

But if we want to add that, that can come in a separate PR. Doesn't need to block this

@ChristoGrab
Copy link
Contributor

Looks like we need to run connectors-qa generate-documentation docs/contributing-to-airbyte/resources/qa-checks.md to generate the updated docs

@natikgadzhi
Copy link
Contributor Author

Regenerated the docs, this should get it cleared.

@natikgadzhi natikgadzhi merged commit 91cfd89 into master Aug 8, 2024
31 checks passed
@natikgadzhi natikgadzhi deleted the ng/connectors-qa/manifest-only branch August 8, 2024 22:17
LouisAuneau pushed a commit to LouisAuneau/airbyte that referenced this pull request Aug 13, 2024
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.

7 participants