Conversation
Postmerge runs all tests, regardless of filters. We want to skip these, since they will always trigger when run.
Summary of ChangesHello, 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 resolves an issue where the 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
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
This pull request prevents the array-test from running its assertions during postmerge builds by adding a conditional exit to the script. The change is effective in solving the issue where postmerge runs would cause this test to fail. I've provided one suggestion to consider a more declarative approach using Buildkite's if conditions, which could make the configuration cleaner and slightly more efficient.
.buildkite/array-test.rayci.yaml
Outdated
| if [ "${RAYCI_STAGE:-}" = "postmerge" ]; then | ||
| echo "Postmerge: skipping filter assertions" | ||
| exit 0 | ||
| fi |
There was a problem hiding this comment.
A more declarative and efficient way to achieve this would be to use a Buildkite if condition on the step definition, for example: if: build.env("RAYCI_STAGE") != "postmerge". This would prevent the job from being scheduled at all during postmerge runs, which is more efficient than starting a job just to have it exit immediately. If you apply this to the step definition, this block of code can be removed.
.buildkite/array-test.rayci.yaml
Outdated
| if [ "${RAYCI_STAGE:-}" = "postmerge" ]; then | ||
| echo "Postmerge: skipping filter assertions" | ||
| exit 0 | ||
| fi |
The structure of this test is But the only job that should trigger it is: Notably, these only actually require [linux, macos] X [1] So, if any jobs spawn that aren't exactly these parameters, that means the |
Removed postmerge stage check from array step command. Signed-off-by: Andrew Pollack-Gray <andrew@anyscale.com>
Postmerge runs all tests, regardless of filters. We want to skip these, since they will purposefully fail when triggered to validate the array feature.