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: ignore archived connectors #43426

Merged

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Aug 9, 2024

What

Closes https://github.com/airbytehq/airbyte-internal-issues/issues/8942

This change means we won't auto select any archived connectors to run connectors subcommand like publish and test.
Archived connectors could still be selected with explicit --name option, but they won't be selected according to file modification when using --modified.
This is to avoid publishing (and testing) archived connectors.

@alafanechere alafanechere requested a review from a team as a code owner August 9, 2024 14:19
Copy link

vercel bot commented Aug 9, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Aug 12, 2024 8:57am

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/08-09-airbyte-ci_ignore_archived_connectors branch from 1f396ae to 2b14192 Compare August 9, 2024 14:20
@alafanechere alafanechere force-pushed the augustin/08-09-airbyte-ci_ignore_archived_connectors branch from 2b14192 to cd478ea Compare August 9, 2024 14:27
Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

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

Curious: it looks like this change only excludes archived connectors form --modified selection? Is that the intent? (unblocking in case it is).

I assume airbyte-ci connectors --support-level archived would work to select them as well?

Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

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

Curious: it looks like this change only excludes archived connectors form --modified selection? Is that the intent? (unblocking in case it is).

I assume airbyte-ci connectors --support-level archived would work to select them as well?

Left one ask, but overall this seems like a good step. Let's add the help message clarification!

@@ -27,6 +27,9 @@ def _find_modified_connectors(
modified_connectors = set()

for connector in all_connectors:
if connector.support_level == "archived":
main_logger.info(f"Skipping connector '{connector}' due to 'archived' support level.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Ask: let's add that caveat to the help message of the --modified flag.

@alafanechere
Copy link
Contributor Author

Curious: it looks like this change only excludes archived connectors form --modified selection? Is that the intent? (unblocking in case it is).

I assume airbyte-ci connectors --support-level archived would work to select them as well?

Yes the indent is to only deselect them on automatic selection with --modified. Others explicit (and likely local) execution with --name or --support-level will still allow selecting archived connectors

@alafanechere alafanechere force-pushed the augustin/08-09-airbyte-ci_ignore_archived_connectors branch 2 times, most recently from 25d874b to 483e875 Compare August 12, 2024 08:18
@alafanechere alafanechere enabled auto-merge (squash) August 12, 2024 08:19
@alafanechere alafanechere force-pushed the augustin/08-09-airbyte-ci_ignore_archived_connectors branch from 483e875 to 51cec4c Compare August 12, 2024 08:57
@alafanechere alafanechere merged commit bc6bd50 into master Aug 12, 2024
33 checks passed
@alafanechere alafanechere deleted the augustin/08-09-airbyte-ci_ignore_archived_connectors branch August 12, 2024 09:20
LouisAuneau pushed a commit to LouisAuneau/airbyte that referenced this pull request Aug 13, 2024
Copy link

sentry-io bot commented Aug 18, 2024

Suspect Issues

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

  • ‼️ ScannerError: while scanning a simple key yaml.scanner in stale_possible_simple_keys 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.

2 participants