-
Notifications
You must be signed in to change notification settings - Fork 9
Fix directory path for artifact submission script and set version #455
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
WalkthroughThe Changes
Possibly related PRs
Suggested reviewers
Poem
Warning Review ran into problems🔥 ProblemsGitHub Actions and Pipeline Checks: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository. Please grant the required permissions to the CodeRabbit GitHub App under the organization or repository settings. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| VERSION=$(cat version.sbt | cut -d " " -f3 | tr -d '"') pip wheel api/py | ||
| EXPECTED_ZIPLINE_WHEEL="zipline_ai-0.1.0.dev0-py3-none-any.whl" | ||
|
|
||
| WHEEL_VERSION="0.1.0" |
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.
hardcoded for now until we do semantic releases
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
scripts/distribution/build_and_upload_artifacts.sh (1)
89-90: Directory resolution tweak.
CHRONON_ROOT_DIRnow usespwd | awk; note thatSCRIPT_DIRECTORYis unused.🧰 Tools
🪛 Shellcheck (0.10.0)
[warning] 89-89: SCRIPT_DIRECTORY appears unused. Verify use (or export if used externally).
(SC2034)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)
📒 Files selected for processing (1)
scripts/distribution/build_and_upload_artifacts.sh(3 hunks)
🧰 Additional context used
🪛 Shellcheck (0.10.0)
scripts/distribution/build_and_upload_artifacts.sh
[warning] 89-89: SCRIPT_DIRECTORY appears unused. Verify use (or export if used externally).
(SC2034)
🔇 Additional comments (3)
scripts/distribution/build_and_upload_artifacts.sh (3)
87-87: Enhanced error handling.
Usingset -euxo pipefailguarantees robust failure behavior.
118-121: Version hardcoding.
HardcodingWHEEL_VERSION="0.1.0"aligns artifact naming with expectations.
235-238: Upload target check.
Ensures at least one upload option is set, preventing misexecution.
e0098db to
3368fd4
Compare
piyush-zlai
left a comment
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 picking this up!
|
|
||
| SCRIPT_DIRECTORY=$(dirname -- "$(realpath -- "$0")") | ||
| CHRONON_ROOT_DIR=$(dirname "$SCRIPT_DIRECTORY") | ||
| CHRONON_ROOT_DIR=$(echo "$SCRIPT_DIRECTORY" | awk -F 'chronon' '{print $1 "chronon"}') |
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.
an alt here would be - CHRONON_ROOT_DIR=$(dirname "$(dirname "$SCRIPT_DIRECTORY")")
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.
changed
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.
did it with awk though because wanted to make the script safe against another PR that moves this script haha
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
scripts/distribution/run_zipline_quickstart.sh (1)
14-14: WHEEL_FILE: Version Update & Trailing Space.
The version update is correct, but remove the extra trailing space to avoid filename issues.
## Summary ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update Tested with: ``` davidhan@Davids-MacBook-Pro: ~/zipline/chronon (davidhan/fix_artifact_submission) $ bash scripts/distribution/build_and_upload_artifacts.sh --gcp --gcp_customer_ids canary ... ``` and succeeded <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Enhanced error handling and configuration management for the build and upload process. - Simplified artifact versioning with a preset version for consistent naming. - Added a check to ensure a valid upload option is selected, providing clearer user feedback. - Updated the wheel filename to reflect a stable version by removing the `dev0` suffix. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Checklist
Tested with:
and succeeded
Summary by CodeRabbit
dev0suffix.