Closed erohmensing closed 11 months ago
This is probably a "the registry entry should always be for the version, and when we create the actual registries we should take into account the overrides" or something of the sort
A registry entry for 2.1.1 should not have a dockerImageTag of 2.0.9
Grooming:
The problem:
Fix:
Sins:
I believe fixing this sin would also let us undo "never upsert ADVs" which we introduced to patch this but is causing issues in the dev workflow
Things we want to support:
Happy path (no platform overrides)
enabled
under oss
/cloud
) for each connectorConsidering rollbacks:
Open question:
dev
workflow for OSS - what's a better way to handle this? Potential to include a ref
underneath oss/cloud: refs do not have to be the same as overrides
This should be closed in https://github.com/airbytehq/airbyte/pull/30699 and https://github.com/airbytehq/airbyte-platform-internal/pull/9000
Captured feedback for metadataspec v2 in this issue.
Follow up: ok i guess we can upsert ADVs
We're writing a LOT of ADVs for salesforce: Private Zenhub Image
Those are supposed to be unique. And once it exists we shouldn't have to retrieve it anymore.
There are two issues here:
Re: Number 1: this is specifically happening because we attempt to fetch the registry entry for version 2.1.1. This contains a version override for cloud which is 2.0.9 (So I guess at the time 2.1.1 was released, cloud was still pinned to 2.0.9?). This means that the cloud registry entry for 2.1.1 is actually the entry for 2.0.9 (I think? Not sure if the metadata comes from 2.0.9, or is just the metadata for 2.1.1 with the image tag 2.0.9).
Before we do that, we do a lookup for 2.1.1 (which doesn't exist in the DB), which is why we keep hitting the registry to look for it. We then persist that 2.0.9 version (which shouldnt be possible, see (2)) again and again. But our "check if version exists before grabbing and persisting" was not prepped to handle this override behavior.
While this setup is expected behavior (probably) for creating the registry itself, its definitely not what we want when retrieving registry entries for a specific version.
https://airbytehq-team.slack.com/archives/C03VDJ4FMJB/p1692296267932739