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[orchestrator]: ensure RC are always newer than current version in the registry #46735

Conversation

alafanechere
Copy link
Contributor

What

We want to guarantee that the RC exposed in the connector registry are always newer compared to the main version.
This simplifies the RC promotion logic as we won't need to delete the previous RC registry entry to remove it from the final registry.

How

Parse RC and main version with semver.
Compare them.
Only nest RC when RC version > main version.

@alafanechere alafanechere requested a review from a team October 11, 2024 08:43
Copy link

vercel bot commented Oct 11, 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 14, 2024 1:07pm

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

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.

Would be great to have a test for this! & 1 other non-blocking comment.

release_candidate_registry_entry.dockerImageTag: to_json_sanitized_dict(release_candidate_registry_entry)
}
updated_registry_entry = copy.deepcopy(latest_registry_entry)
updated_registry_entry.setdefault("releases", {})
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this go above the updated_registry_entry["releases"]["releaseCandidates"] line?

@alafanechere alafanechere force-pushed the augustin/10-11-metadata-service_orchestrator_ensure_RC_are_always_newer_than_current_version_in_the_registry branch from 2953e0d to 66cc446 Compare October 11, 2024 14:47
@alafanechere alafanechere force-pushed the augustin/10-11-metadata-service_orchestrator_ensure_RC_are_always_newer_than_current_version_in_the_registry branch from 66cc446 to 6386e0d Compare October 14, 2024 13:06
@alafanechere alafanechere merged commit 085a72f into master Oct 14, 2024
30 checks passed
@alafanechere alafanechere deleted the augustin/10-11-metadata-service_orchestrator_ensure_RC_are_always_newer_than_current_version_in_the_registry branch October 14, 2024 13:20
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