-
Notifications
You must be signed in to change notification settings - Fork 3
[rayci] allow wanda field to specify priority #306
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
Conversation
|
Gitar automatically fixes CI failures and addresses comments starting with ⚙️ Options:
🔄 To revert changes, post a comment: * Gitar never force pushes to your branch |
Summary of ChangesHello @aslonnie, 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 PR allows Wanda steps to define a custom Highlights
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds the capability to specify custom priority levels for individual wanda steps, allowing some steps to be prioritized over others in large builds. The change introduces step-level priority that can override the default config-level priority.
- Adds priority field to wandaStep struct and parsing logic
- Implements priority precedence where step-level priority overrides config-level priority
- Updates allowed keys list to include "priority" field
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| raycicmd/wanda.go | Adds priority field to wandaStep struct and implements priority logic in buildkiteStep method |
| raycicmd/wanda_test.go | Adds test case to verify step-level priority overrides config-level priority |
| raycicmd/rayci_pipeline.go | Updates allowed keys list to include "priority" field |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Code Review
This pull request introduces a useful feature to allow setting priority for Wanda steps. The implementation is straightforward and the addition of a test case is great. I've found one potential issue with how the priority value is parsed, which could lead to errors if users format numbers as floats in YAML (e.g., 5.0). My suggestion addresses this to make the parsing more robust. Overall, a good change.
raycicmd/wanda.go
Outdated
| var pInt int | ||
| if v, ok := p.(int); ok { | ||
| pInt = v | ||
| } else if v, ok := p.(float64); ok && v == float64(int(v)) { |
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 for the detailed suggestion! I've implemented the more robust parsing approach you recommended, which now handles both int and float64 types appropriately. I've also added comprehensive tests to cover these different parsing scenarios.
|
created by claude code last night.. does not pass all the tests though. |
108f00a to
40d2512
Compare
actually was gitar's fault.. claude code was doing a good job. |
this allows wanda steps to have custom priority, so that some steps can be prioritized to run in a big build.