-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat(airbyte-ci): add force-publish-overwrite-metadata flag to publish command #55134
base: master
Are you sure you want to change the base?
feat(airbyte-ci): add force-publish-overwrite-metadata flag to publish command #55134
Conversation
…h command Co-Authored-By: [email protected] <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🤖 Devin AI EngineerOriginal prompt from [email protected]:
I'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
I see you're using VersionIncrementCheck step. This is a good approach. Can you check if the step you inherit from does not skip the actual check if the connector does not have a metadata flag that makes it optional? |
Co-Authored-By: [email protected] <[email protected]>
Hi @natikgadzhi, I've fixed the formatting issues in the PR. Regarding your question about the VersionIncrementCheck step, I can confirm that the step we inherit from does indeed skip the check if the connector has a metadata flag that makes it optional. The relevant code is in the @property
def should_run(self) -> bool:
# Skip if connector opts out of version checks
if self.context.metadata and self.context.metadata.get("ab_internal", {}).get("requireVersionIncrementsInPullRequests") is False:
return False
for filename in self.context.modified_files:
relative_path = str(filename).replace(str(self.context.connector.code_directory) + "/", "")
if not any([relative_path.startswith(to_bypass) for to_bypass in self.BYPASS_CHECK_FOR]):
return True
return False As you can see, the method first checks if the connector has opted out of version checks by looking at the Our new |
Devin is currently unreachable - the session may have died. |
Yeah that's exactly the problem. We should not skip the VersionIncrementCheck step specifically when we determine e whether to publish or not based on that metadata flag. |
Hi @natikgadzhi, I've updated the The |
Add FORCE_PUBLISH_OVERWRITE_METADATA flag to publish command
This PR adds a
FORCE_PUBLISH_OVERWRITE_METADATA
environment variable to the GitHub workflow and passes it as a flag to theairbyte-ci connectors publish
command. It also modifies the publish command to check for version increment before publishing, and skip publishing if the version is not incremented and the force flag is not set. Additionally, it increments the airbyte-ci pipelines package version from 5.2.0 to 5.3.0.Changes:
force_publish_overwrite_metadata
parameter toPublishConnectorContext
class--force-publish-overwrite-metadata
flag to the publish commandVersionIncrementPublishCheck
class that extendsVersionIncrementCheck
FORCE_PUBLISH_OVERWRITE_METADATA
environment variable to the publish commandThis PR was created by Devin on behalf of the user.
Link to Devin run: https://app.devin.ai/sessions/8e8e80de70214bdf87264865ad473612