-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: rebase the latest release branch on push to main #24
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what the workflow is here please ?
Yes, it runs on pushes to the main branch and rebase the latest version branch (e.g. "v0.2") to it:
|
I don't recall all our discussions around this, it's a way to keep the latest version in sync with main right ? but still having versions to avoid relying on pulling main in TFHE-rs ? |
run: | | ||
git switch $DATA_LATEST_VERSION | ||
git rebase main | ||
git push --force-with-lease |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this fails we likely need a notification in our updates channel wdyt ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do that but I don't think this repo has acces to the slack bot token
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see with @soonum then please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The token has been enabled for this repo, so now it should work
Yes that's the idea. |
0083c97
to
571a480
Compare
- name: Slack Notification | ||
if: ${{ always() && job.status == 'failure' }} | ||
continue-on-error: true | ||
uses: rtCamp/action-slack-notify@4e5fb42d249be6a45a298f3c9543b111b02f7907 | ||
env: | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_MESSAGE: "backward-compat-data version auto-rebase failed: (${{ env.ACTION_RUN_URL }})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we have the PR number or even a link embedded in the notification such that we can take action more quickly in case of failure ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's what ${{ env.ACTION_RUN_URL }}
is for ?
I copied the slack part from tfhe-rs, the same pattern is used in most of our workflows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah wait, no I'm mistaken, we would need the branch that failed to rebase, not a PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I updated it to show the name of the branch
571a480
to
2466885
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot ! Sorry for the tedious review
The workflow has been tested here: https://github.com/nsarlin-zama/test-target-repo
closes: https://github.com/zama-ai/tfhe-rs-internal/issues/672