Skip to content

Commit

Permalink
fix(airbyte-ci)Skip breaking change validation for source declarative…
Browse files Browse the repository at this point in the history
… manifest (#38535)
  • Loading branch information
girarda authored May 21, 2024
1 parent 4aad08f commit 6a74f5d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class ValidatorOptions:
ValidationResult = Tuple[bool, Optional[Union[ValidationError, str]]]
Validator = Callable[[ConnectorMetadataDefinitionV0, ValidatorOptions], ValidationResult]

_SOURCE_DECLARATIVE_MANIFEST_DEFINITION_ID = "64a2f99c-542f-4af8-9a6f-355f1217b436"


def validate_metadata_images_in_dockerhub(
metadata_definition: ConnectorMetadataDefinitionV0, validator_opts: ValidatorOptions
Expand Down Expand Up @@ -102,6 +104,13 @@ def validate_major_version_bump_has_breaking_change_entry(
if not is_major_version(image_tag):
return True, None

# We are updating the same version since connector builder projects have a different concept of
# versioning.
# We do not check for breaking changes for source-declarative-connector in the metadata because the conenctor isn't directly used by any workspace.
# Breaking changes are instead tracked at the CDK level
if str(metadata_definition.data.definitionId) == _SOURCE_DECLARATIVE_MANIFEST_DEFINITION_ID:
return True, None

docker_repo = get(metadata_definition_dict, "data.dockerRepository")
releases = get(metadata_definition_dict, "data.releases")
if not releases:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
metadataSpecVersion: 1.0
data:
name: Low-code
definitionId: 1fa90628-2b9e-11ed-a261-0242ac120002
connectorType: source
dockerRepository: airbyte/image-exists-1
githubIssueLabel: source-alloydb-strict-encrypt
dockerImageTag: 1.0.0
documentationUrl: https://docs.airbyte.com/integrations/sources/existingsource
connectorSubtype: database
releaseStage: generally_available
license: MIT
tags:
- language:java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
metadataSpecVersion: 1.0
data:
name: Low-code
definitionId: 64a2f99c-542f-4af8-9a6f-355f1217b436
connectorType: source
dockerRepository: airbyte/image-exists-1
githubIssueLabel: source-alloydb-strict-encrypt
dockerImageTag: 1.0.0
documentationUrl: https://docs.airbyte.com/integrations/sources/existingsource
connectorSubtype: database
releaseStage: generally_available
license: MIT
tags:
- language:java

0 comments on commit 6a74f5d

Please sign in to comment.