feat(raycicmd): set RAYCI_ARTIFACTS_DIR for wanda steps#410
feat(raycicmd): set RAYCI_ARTIFACTS_DIR for wanda steps#410andrew-anyscale wants to merge 1 commit intoandrew/revup/main/wanda-artifact-clifrom
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 enhances 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 introduces a RAYCI_ARTIFACTS_DIR environment variable for build steps, with its value dependent on the operating system. This is intended to allow artifacts like Python wheels to be uploaded from Wanda steps. While the feature is valuable, the current implementation has a critical flaw: the artifact directory path is determined by the OS of the raycicmd runner, not the target OS of the individual build step. This will lead to incorrect paths for cross-platform builds (e.g., generating Windows steps from a Linux runner). My review includes a suggestion to move this logic into the individual step converters to correctly determine the path based on the step's target environment. I've also pointed out necessary updates to test cases that will be required after this change.
d09894c to
47c8864
Compare
e45039d to
3ba30cb
Compare
3ba30cb to
b0cff49
Compare
47c8864 to
5583f7c
Compare
b0cff49 to
2f92adb
Compare
5583f7c to
8ebf196
Compare
2f92adb to
81f41f5
Compare
8ebf196 to
2a465c2
Compare
81f41f5 to
3920c22
Compare
2a465c2 to
af6ce95
Compare
3920c22 to
5f98615
Compare
af6ce95 to
1a2e1f0
Compare
5f98615 to
e090ae8
Compare
1a2e1f0 to
54099d6
Compare
1feebe0 to
c8452f5
Compare
e090ae8 to
cefe4d9
Compare
c8452f5 to
aaedbd8
Compare
Set RAYCI_ARTIFACTS_DIR environment variable for wanda steps based on the target platform. Uses /c/tmp/artifacts for Windows (detected via instance_type containing "windows") and /tmp/artifacts for other platforms. This enables wanda to extract build artifacts to the correct location for Buildkite artifact upload. Topic: raycicmd-artifacts Relative: wanda-artifact-cli Signed-off-by: andrew <andrew@anyscale.com>
aaedbd8 to
83996e6
Compare
cefe4d9 to
bd70791
Compare
83996e6 to
34ea9f9
Compare
bd70791 to
5c06796
Compare
.buildkite/artifact-test.Dockerfile
Outdated
| RUN mkdir -p /build/dist /app/bin \ | ||
| && echo "wheel-content-1.0" > /build/dist/mypackage-1.0.0.whl \ | ||
| && echo "wheel-content-1.1" > /build/dist/mypackage-1.1.0.whl \ | ||
| && echo "binary-content" > /app/bin/myapp \ |
There was a problem hiding this comment.
use heredoc / multi-line for this, and add set -euo pipefail?
raycicmd/converter.go
Outdated
| import ( | ||
| "fmt" | ||
| ) | ||
| import "fmt" |
There was a problem hiding this comment.
nit: why? can we revert this?
There was a problem hiding this comment.
This was a victim of go fmt on a previous iteration that updated this file more. Reverting
92b01d3 to
40bb72b
Compare
Set RAYCI_ARTIFACTS_DIR environment variable for wanda steps based on the target platform. Uses /c/tmp/artifacts for Windows (detected via instance_type containing "windows") and /tmp/artifacts for other platforms.
This enables wanda to extract build artifacts to the correct location for Buildkite artifact upload.
Topic: raycicmd-artifacts
Relative: wanda-artifact-cli
Signed-off-by: andrew andrew@anyscale.com