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

add workflow for updating duckdb refs #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

srikrishnak
Copy link
Contributor

No description provided.

@srikrishnak srikrishnak force-pushed the sd9320 branch 2 times, most recently from ba8f83d to 3ce62b6 Compare February 18, 2025 18:38
@srikrishnak srikrishnak marked this pull request as draft February 18, 2025 18:38
@srikrishnak srikrishnak marked this pull request as ready for review February 18, 2025 18:38
@srikrishnak srikrishnak force-pushed the sd9320 branch 18 times, most recently from 86f372e to 88ae2b3 Compare February 19, 2025 16:05
@srikrishnak srikrishnak force-pushed the sd9320 branch 7 times, most recently from 4a9e502 to 7a244ee Compare February 20, 2025 13:18
@srikrishnak srikrishnak force-pushed the sd9320 branch 2 times, most recently from d2344d3 to cc86b7b Compare February 20, 2025 14:10
@srikrishnak srikrishnak marked this pull request as draft February 20, 2025 14:10
@srikrishnak srikrishnak force-pushed the sd9320 branch 9 times, most recently from e102286 to e744686 Compare February 20, 2025 17:41
@srikrishnak srikrishnak changed the title DRAFT PR to check environment add workflow for updating duckdb refs Feb 20, 2025
@srikrishnak srikrishnak marked this pull request as ready for review February 20, 2025 17:41
echo "COMMIT_DETAILS=$COMMIT_DETAILS" >> "$GITHUB_ENV"
- name: Commit and Push Updates
uses: stefanzweifel/git-auto-commit-action@v5
with:
Copy link
Contributor Author

@srikrishnak srikrishnak Feb 20, 2025

Choose a reason for hiding this comment

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

@rymurr I couldn't test this step as it doesn't find the branch sd9320 on sundeck.io/duckdb-go-extensions. Wondering if it is ok to create a branch.

Or I could test this once it merges to main

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked the diff as well, only part I didn't check is the final commit that gets raised.

I put a workflow_dispatch so i can trigger and see how the commit looks like once this is merged.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is goign to commit to main if run on main, I think rather than commit you want to create a PR

@srikrishnak srikrishnak requested a review from rymurr February 20, 2025 17:49
@srikrishnak
Copy link
Contributor Author

srikrishnak commented Feb 21, 2025

Note: Ron asked to hold this PR until we have answers for this, this comment and all other comments on the ticket :)

echo "COMMIT_DETAILS=$COMMIT_DETAILS" >> "$GITHUB_ENV"
- name: Commit and Push Updates
uses: stefanzweifel/git-auto-commit-action@v5
with:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is goign to commit to main if run on main, I think rather than commit you want to create a PR

shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be good to skip the update if the duckdb ref hasn't updated. I don't think we want to update the extensions if we aren't updating dudckdb

Copy link
Contributor Author

@srikrishnak srikrishnak Feb 24, 2025

Choose a reason for hiding this comment

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

Agree that is better approach as it saves cycles but just to confirm, I think we might lose one corner case.

  1. lets sayd duckdb updated to a latest release A, and we found a stable build with all extensions and merged the commit.
  2. later, in one of the extensions, like substrait, we did a commit B on the same release A.

We might miss a chance to pull that commit B. @rymurr Thoughts?

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