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]: skip dockerImageTag decrement validation on pre-release #44580

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Aug 23, 2024

What

On pre-release the process responsible for uploading the metadata patches the dockerImageTag with a .dev<sha> suffix.
When we run the second metadata validation, before upload, the pre-release version is compared to the latest version.
The semver packages consider this version as lower than the latest one as it considers its a pre-release of the latest version (which should usually be released before the main version). This is logically correct.

This PR bypasses this validation on pre-release as it's useless to have it in a pre-release / testing context.

Copy link

vercel bot commented Aug 23, 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 26, 2024 4:48pm

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-23-metadata-service_lib_fix_dockerImageTag_decrement_validator branch from 0cfb0e9 to cc21917 Compare August 23, 2024 06:51
@alafanechere alafanechere force-pushed the augustin/08-23-metadata-service_lib_fix_dockerImageTag_decrement_validator branch 2 times, most recently from d607f93 to 8d561b5 Compare August 23, 2024 07:08
@alafanechere alafanechere changed the title metadata-service[lib]: fix dockerImageTag decrement validator metadata-service[lib]: skip dockerImageTag decrement validation on pre-release Aug 23, 2024
@alafanechere alafanechere force-pushed the augustin/08-23-metadata-service_lib_fix_dockerImageTag_decrement_validator branch from 8d561b5 to bf32e44 Compare August 23, 2024 07:26
@octavia-squidington-iii octavia-squidington-iii removed the area/connectors Connector related issues label Aug 23, 2024
return False, f"The dockerImageTag value can't be decremented: it should be equal to or above {latest_released_version}."
return (
False,
f"The dockerImageTag value ({current_semver_version}) can't be decremented: it should be equal to or above {latest_released_version}.",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change changing the error message for easier debugging

@alafanechere alafanechere marked this pull request as ready for review August 23, 2024 07:27
@alafanechere alafanechere requested a review from a team as a code owner August 23, 2024 07:27
@alafanechere alafanechere force-pushed the augustin/08-23-metadata-service_lib_fix_dockerImageTag_decrement_validator branch from bf32e44 to 77eb834 Compare August 26, 2024 16:32
@alafanechere alafanechere force-pushed the augustin/08-23-metadata-service_lib_fix_dockerImageTag_decrement_validator branch from 77eb834 to 9b787a6 Compare August 26, 2024 16:48
@alafanechere alafanechere enabled auto-merge (squash) August 26, 2024 16:54
@alafanechere alafanechere merged commit ec8d7e4 into master Aug 26, 2024
31 checks passed
@alafanechere alafanechere deleted the augustin/08-23-metadata-service_lib_fix_dockerImageTag_decrement_validator branch August 26, 2024 16:56
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