feat(raycilint): add GitHub Action workflow for PR size checks#438
Conversation
|
Summary of ChangesHello @andrew-anyscale, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new automated system for managing pull request sizes. By integrating Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Ignored Files
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request introduces a GitHub Actions workflow for PR size checks using prcheck. It includes a new prcheck-policy.yaml with default size thresholds and a run_prcheck.sh script to handle binary installation or building from source. The changes are well-structured and address the stated objective. I've identified a few areas for improvement regarding error handling and clarity in the run_prcheck.sh script.
44d6161 to
b98b06d
Compare
aee1852 to
3d404b7
Compare
b98b06d to
2bf584b
Compare
ae60a6a to
f2915a4
Compare
2bf584b to
7dc82aa
Compare
f2915a4 to
7621af7
Compare
7dc82aa to
f6cb8b6
Compare
7621af7 to
de1b0f0
Compare
f6cb8b6 to
fc30262
Compare
de1b0f0 to
c6f1008
Compare
fc30262 to
aeccf77
Compare
5c208eb to
4a44f56
Compare
aeccf77 to
cf45059
Compare
4a44f56 to
416850e
Compare
cf45059 to
56533db
Compare
416850e to
8ade3db
Compare
| - uses: actions/setup-go@v5 | ||
| if: steps.check.outputs.run | ||
| with: | ||
| go-version-file: go.mod |
There was a problem hiding this comment.
For other repos, we will instead just fetch as--
# Example of how we run this in other repos.
- name: Download prcheck
run: |
set -euo pipefail
version="$(cat .rayciversion)"
url="https://github.com/ray-project/rayci/releases/download/v${version}/prcheck-linux-amd64"
curl -fsSL "$url" -o prcheck && chmod +x prcheck
There was a problem hiding this comment.
could you leave this in as step with maybe if: ${{ false }} (not 100% sure if the syntax will be correct..) and with a comment on how to enable it?
8ade3db to
bf13bee
Compare
ac6a59f to
760b770
Compare
6f876fa to
6e7dcb5
Compare
760b770 to
cfca375
Compare
5f4d810 to
dde57f5
Compare
19bb22d to
ec9cb7b
Compare
6749ba6 to
41899a7
Compare
ec9cb7b to
0ece8e2
Compare
41899a7 to
d1c7b8e
Compare
0ece8e2 to
3995d9a
Compare
d1c7b8e to
d738dfe
Compare
539adaa to
f7ecc84
Compare
d738dfe to
cad47aa
Compare
f7ecc84 to
7876d07
Compare
cad47aa to
f46e7fd
Compare
7876d07 to
0fee6ca
Compare
f46e7fd to
845592a
Compare
0fee6ca to
dbf0e54
Compare
845592a to
dc0586d
Compare
| - uses: actions/setup-go@v5 | ||
| if: steps.check.outputs.run | ||
| with: | ||
| go-version-file: go.mod |
There was a problem hiding this comment.
could you leave this in as step with maybe if: ${{ false }} (not 100% sure if the syntax will be correct..) and with a comment on how to enable it?
| BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
| HEAD_REF: ${{ github.event.pull_request.head.ref }} | ||
| run: >- | ||
| go run ./raycilint/raycilint -config-file "$CONFIG_PATH" prsize |
There was a problem hiding this comment.
use binary if the binary has downloaded and exists?
Adds a GitHub Actions workflow that runs rayci-lint prsize on pull requests and posts a sticky comment when thresholds are exceeded. The job fails unless the PR has a configurable skip label (default: skip-prcheck). Topic: prcheck-action Relative: prcheck-binary Signed-off-by: andrew <andrew@anyscale.com>
a0bd1be to
46e64cd
Compare
|
let's roll it~ |
Adds a GitHub Actions workflow that runs rayci-lint prsize on pull requests and posts a sticky comment when thresholds are exceeded. The job fails unless the PR has a configurable skip label (default: skip-prcheck).
Topic: prcheck-action
Relative: prcheck-binary
Signed-off-by: andrew andrew@anyscale.com