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

"how to release", add gh command to trigger workflow #1387

Closed
wants to merge 3 commits into from

Conversation

kevinjqliu
Copy link
Contributor

Add gh commands instead of trigger manually on github

@ndrluis
Copy link
Collaborator

ndrluis commented Nov 28, 2024

@kevinjqliu Nice work! What do you think about having a Makefile with these commands? I think it would be easier than copying and pasting from the documentation.

@kevinjqliu
Copy link
Contributor Author

@ndrluis thats a good point! something like make release will be helpful. I've been just making incremental improvements to the release process.

@kevinjqliu kevinjqliu requested a review from Fokko November 29, 2024 18:57
@kevinjqliu kevinjqliu marked this pull request as draft December 4, 2024 05:14
@kevinjqliu
Copy link
Contributor Author

going to reuse this PR based on the new release instructions from #1391

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Left some nits. I think it would be good to migrate to gh to reduce the risk of human error. I agree with @ndrluis that it would be good to have a more integral script at some point, but I'm also okay doing it in an incremental fashion.

Or if `gh` is available, trigger the action using:

```bash
gh workflow run python-release.yml --repo apache/iceberg-python --ref ${GIT_TAG} --field version=main
Copy link
Contributor

Choose a reason for hiding this comment

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

How about instead of having to trigger this manually, we could also trigger this by the tag creation. That's one of the first steps of the RC process: https://py.iceberg.apache.org/how-to-release/#create-tag This would trigger a job without having to do anything manual, similar to Iceberg-Go: https://github.com/apache/iceberg-go/blob/c1ffe04d56e31e475b52ce75fcbf16818a6e1169/.github/workflows/rc.yml#L24-L25


```bash
gh workflow run python-release.yml --repo apache/iceberg-python --ref ${GIT_TAG} --field version=main
SVN_RUN_ID=$(gh run list --repo apache/iceberg-python --json databaseId -q '.[0].databaseId')
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 takes the latest run, would that be safe? Or should we do some more filtering

@kevinjqliu
Copy link
Contributor Author

closing this in favor of #1391 where the workflow is triggered by tag push

@kevinjqliu kevinjqliu closed this Dec 4, 2024
@kevinjqliu kevinjqliu deleted the kevinjqliu/add-gh-commands branch December 4, 2024 21:02
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.

3 participants