-
Notifications
You must be signed in to change notification settings - Fork 43
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: automate adding new go-libp2p versions to perf #256
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.
Very nice work @galargh! Thank you!!
id: remote | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: gh api repos/$REPO/releases/latest --jq '.tag_name' | xargs -I{} echo "version={}" | tee -a $GITHUB_OUTPUT |
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.
Have you considered using go list -m -versions github.com/libp2p/go-libp2p@latest
?
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.
No, didn't know about this one. If you prefer, this should behave the same.
run: gh api repos/$REPO/releases/latest --jq '.tag_name' | xargs -I{} echo "version={}" | tee -a $GITHUB_OUTPUT | |
run: go list -m github.com/$REPO@latest | cut -d' ' -f2 | xargs -I{} echo "version={}" | tee -a $GITHUB_OUTPUT |
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.
Thank you Piotr! Ready to merge from my end.
|
||
clean: | ||
rm perf | ||
rm .cache | ||
rm v0.28 |
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.
This is created when one runs go build .
. That said, fine to remove it.
git commit -m "chore: add go-libp2p@$REMOTE_VERSION to $DIR" | ||
git push origin $BRANCH --force | ||
gh pr create --title "chore: add go-libp2p@$REMOTE_VERSION to $DIR" --body "This PR adds go-libp2p@$REMOTE_VERSION to $DIR" --head $BRANCH --base $GITHUB_REF | ||
gh workflow run perf.yml --ref $BRANCH |
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.
🙏
Sweet! What's needed to merge this? |
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.
Ready to merge from my end.
This PR implements the process described here: libp2p/go-libp2p#2442 (comment)
Additionally:
Automatically created PR: #255
Automatically triggered perf run: https://github.com/libp2p/test-plans/actions/runs/5836370405