Skip to content

Conversation

maxi297
Copy link
Contributor

@maxi297 maxi297 commented Jun 17, 2025

What

Following this PR, Python generation scripts do not work ; they don't generate the protocol-models/python/*/*/models/airbyte_protocol.py file

How

Ensuring that the airbyte_protocol.yaml file is not in $ROOT_DIR/$YAML_DIR and generating the airbyte_protocol.py file using the yaml file under the v0 folder.

In case the yaml file exist in both folders, the script will print ERROR: File airbyte_protocol.yaml exists in both /airbyte-protocol/protocol-models/src/main/resources/airbyte_protocol and /airbyte-protocol/protocol-models/src/main/resources/airbyte_protocol/v0. Only one is expected and will exit.

@maxi297 maxi297 requested a review from pedroslopez June 17, 2025 15:54
Comment on lines -31 to +36
--input "$ROOT_DIR/$YAML_DIR/$filename_wo_ext.yaml" \
--input "$f" \
Copy link
Contributor

Choose a reason for hiding this comment

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

this would no longer generate the v0 file right? do we need that for anything else? (not sure if there are other consumers of the protocol)

Copy link
Contributor

Choose a reason for hiding this comment

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

oh maybe the output is still the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that it never generated the V0 files. However when I compared v0 and v2 airbyte_protocol.yaml files, they were the same (except some formatting and comments differing)

@maxi297 maxi297 merged commit 772c73b into main Jun 17, 2025
5 checks passed
@maxi297 maxi297 deleted the maxi297/fix-python-generation-script branch June 17, 2025 16:04
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