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

metadata-service[lib]: validate that release candidate have rc suffix in their version #46573

Conversation

alafanechere
Copy link
Contributor

What

Relates to https://github.com/airbytehq/airbyte-internal-issues/issues/10211

Add a metadata validator to ensure that a connector with the releases.isReleaseCandidate flag set to true has a rc suffix in its version.

@alafanechere alafanechere requested a review from a team as a code owner October 8, 2024 12:23
Copy link

vercel bot commented Oct 8, 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 Oct 10, 2024 10:12am

Copy link
Contributor Author

alafanechere commented Oct 8, 2024

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
Copy link
Contributor Author

Testing the change on source-faker. It's a release candidate but currently does not have a RC suffix. I expect the following workflow to fail:
https://github.com/airbytehq/airbyte/actions/runs/11235425276/job/31233360865

@alafanechere alafanechere force-pushed the augustin/10-08-metadata-service_lib_validate_that_release_candidate_have_rc_suffix_in_their_version branch 2 times, most recently from a0fcc33 to 0296422 Compare October 8, 2024 14:04
@alafanechere alafanechere force-pushed the augustin/10-08-metadata-service_lib_validate_that_release_candidate_have_rc_suffix_in_their_version branch from 0296422 to 3d5bcfa Compare October 9, 2024 16:00
@octavia-squidington-iii octavia-squidington-iii removed the area/connectors Connector related issues label Oct 9, 2024
@alafanechere alafanechere requested a review from clnoll October 9, 2024 16:00
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.

Thanks @alafanechere, just one small request.

if not has_rc_suffix:
return (
False,
"The dockerImageTag field should end with -rc as the connector is marked as a release candidate (releases.isReleaseCandidate).",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"The dockerImageTag field should end with -rc as the connector is marked as a release candidate (releases.isReleaseCandidate).",
"The dockerImageTag field should have an -rc.<RC #> suffix as the connector is marked as a release candidate (releases.isReleaseCandidate). Example: 2.1.0-rc.1",

Just wanted it to be clear that there should be an rc number at the end, too.

@alafanechere alafanechere force-pushed the augustin/10-08-metadata-service_lib_validate_that_release_candidate_have_rc_suffix_in_their_version branch 2 times, most recently from 1d7193a to f0c71ef Compare October 10, 2024 09:37
@alafanechere alafanechere force-pushed the augustin/10-08-metadata-service_lib_validate_that_release_candidate_have_rc_suffix_in_their_version branch from f0c71ef to 1a998df Compare October 10, 2024 10:11
@alafanechere alafanechere merged commit 6256948 into master Oct 10, 2024
33 checks passed
@alafanechere alafanechere deleted the augustin/10-08-metadata-service_lib_validate_that_release_candidate_have_rc_suffix_in_their_version branch October 10, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants