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 on up-to-date and don't fail publish when no connector is selected #43970

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Aug 13, 2024

What

  • We don't want up-to-date to run on archived connectors: I explicitly passed certified and community connectors to up-to-date in the workflow.
  • Even by "accident" an archived connector should not be published. We made --modified skip archived connectors but our pipeline fails when no connector is selected. So I made the connectors subcommand early exit with 0 status code if no connector is selected.

Copy link

vercel bot commented Aug 13, 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 13, 2024 9:27pm

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 marked this pull request as ready for review August 13, 2024 18:10
@alafanechere alafanechere requested review from a team and clnoll August 13, 2024 18:10
@alafanechere alafanechere force-pushed the augustin/08-13-airbyte-ci_ignore_archived_connectors_on_up-to-date_and_don_t_fail_publish_when_no_connector_is_selected branch 2 times, most recently from 5ef49e3 to 0502b3d Compare August 13, 2024 18:17
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! One question, not a blocker.

@@ -39,4 +39,4 @@ jobs:
sentry_dsn: ${{ secrets.SENTRY_AIRBYTE_CI_DSN }}
s3_build_cache_access_key_id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
s3_build_cache_secret_key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
subcommand: "connectors ${{ github.event.inputs.connectors-options || '--concurrency=10 --language=python --language=low-code' }} up-to-date --ignore-connector=source-declarative-manifest --create-prs ${{ github.event.inputs.auto-merge == 'false' && '' || '--auto-merge' }}"
subcommand: "connectors ${{ github.event.inputs.connectors-options || '--concurrency=10 --language=python --language=low-code --support-level=community --support-level=certified' }} up-to-date --ignore-connector=source-declarative-manifest --create-prs ${{ github.event.inputs.auto-merge == 'false' && '' || '--auto-merge' }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a --support-level=all option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, these are additive filters, if you're not setting support-level it will not filter by support levels.

@alafanechere alafanechere enabled auto-merge (squash) August 13, 2024 18:22
@alafanechere alafanechere force-pushed the augustin/08-13-airbyte-ci_ignore_archived_connectors_on_up-to-date_and_don_t_fail_publish_when_no_connector_is_selected branch from 0502b3d to a3b0d3a Compare August 13, 2024 21:27
@alafanechere alafanechere merged commit 42c9bc1 into master Aug 13, 2024
33 checks passed
@alafanechere alafanechere deleted the augustin/08-13-airbyte-ci_ignore_archived_connectors_on_up-to-date_and_don_t_fail_publish_when_no_connector_is_selected branch August 13, 2024 21:50
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