-
Notifications
You must be signed in to change notification settings - Fork 130
ci: fix release scripts for engine #3258
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code Review SummaryThis PR updates the release and CI scripts to fix file paths after the ✅ Positive Aspects
📝 Code Quality ObservationsPath Updates (.github/workflows/)
TypeScript Runner SDK (engine/sdks/typescript/runner/) The changes in engine/sdks/typescript/runner/src/mod.ts:170
engine/sdks/typescript/test-runner/src/index.ts:82
engine/sdks/typescript/runner/src/tunnel.ts:
🔍 Potential Issues
🎯 Recommendations
✅ Security & Performance
📊 Test CoverageThe changes to CI workflows don't affect test execution paths. The TypeScript SDK changes are minor refactors that maintain existing functionality. Final VerdictStatus: ✅ Approved with minor suggestions The core purpose of this PR (fixing release scripts) is achieved successfully. The minor code quality issues identified are non-blocking and can be addressed in a follow-up PR if desired. 🤖 Generated with Claude Code |
c6b0205 to
db025c7
Compare
PR Review: CI Fix for Engine Release ScriptsOverviewThis PR updates file paths in CI workflows and scripts to reflect the reorganization of the Code Quality & Best Practices ✅Strengths:
Minor Issues:
File-by-File AnalysisGitHub Actions Workflows
TypeScript SDK Changes
Test Deletions
Infrastructure Scripts
Potential Bugs 🐛
Performance Considerations ⚡No performance impact expected. The changes are primarily path corrections and logging improvements. Security Concerns 🔒No security issues identified. All changes are infrastructure and path-related. Test Coverage 📊Concerns:
RecommendationsHigh Priority:
Medium Priority: Low Priority: SummaryThis is a necessary cleanup PR to fix release script paths after a directory reorganization. The changes are mostly correct, but there's a potential bug with duplicate function calls that should be addressed before merging. The test file deletion should also be explained. Recommendation: Request Changes - Fix the |
More templates
@rivetkit/actor
@rivetkit/cloudflare-workers
@rivetkit/core
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
db025c7 to
df5221f
Compare
PR Review - CI: Fix Release Scripts for EngineThis PR primarily addresses path corrections in CI/CD workflows following a repository restructuring. Overall, the changes are straightforward and necessary. Here's my detailed feedback: ✅ Positive Aspects
📋 Code Quality & Best PracticesGitHub Workflows (.github/workflows/)
TypeScript SDK Changesengine/sdks/typescript/runner/src/mod.ts (lines 154-178):
engine/sdks/typescript/runner/src/tunnel.ts:
engine/sdks/typescript/test-runner/src/index.ts:
RivetKit Changesrivetkit-typescript/packages/rivetkit/src/drivers/engine/actor-driver.ts:
🔒 Security Considerations
⚡ Performance Considerations
🧪 Test Coverage
🐛 Potential Bugs
📦 Artifact ChangesThe OpenAPI spec and error JSON files show formatting changes (tabs → spaces, removed trailing newlines). These appear to be auto-generated artifacts and are fine. ✨ Recommendations
📊 Overall AssessmentStatus: ✅ Approve with minor fixes recommended The PR successfully addresses the CI path issues. The main concern is the duplicate Risk Level: Low (primarily path corrections and minor refactoring) Generated with Claude Code 🤖 |
df5221f to
e32f86f
Compare
PR Review: Fix Release Scripts for EngineOverviewThis PR updates release scripts and build paths to reflect the new engine directory structure. The changes are primarily infrastructure-related with some substantive TypeScript SDK improvements. ✅ Positive Aspects
🐛 Potential Issues1. Critical: Duplicate
|
e32f86f to
eafdf05
Compare
PR Review: CI Fix for Engine Release ScriptsSummaryThis PR fixes the release scripts for the engine by updating file paths from docker/ to engine/docker/, along with some formatting improvements and test file removal. Overall Assessment✅ APPROVED - This is a clean infrastructure fix with no functional code changes. The PR correctly updates paths to match the current repository structure. Code QualityStrengths:
Path Updates:
Key Changes1. CI/CD Workflow Updates ✅ 2. TypeScript SDK Improvements ✅
3. Test Runner Updates ✅
4. JSON/OpenAPI Formatting 📋
5. Test Deletion
Security & Performance
RecommendationsMinor Improvements:
Final VerdictStatus: ✅ APPROVED - Ready to Merge This is a solid infrastructure fix that correctly updates paths after a repository restructuring. The TypeScript SDK improvements add proper resource cleanup, which is a net positive. The only minor concern is the undocumented test file removal. Confidence Level: High - The changes are straightforward, well-scoped, and follow best practices. Review generated by Claude Code |
eafdf05 to
22b7294
Compare
Pull Request Review: CI Fix for Release ScriptsSummaryThis PR updates file paths in CI workflows and build scripts to reflect the new Code Quality & Best Practices ✅Positive Aspects:
Changes Breakdown:CI/CD Workflows (.github/workflows/)
Build Scripts
Generated Artifacts
Potential Issues & Concerns1. Test Coverage
|
22b7294 to
6aaeac5
Compare
Pull Request Review: ci: fix release scripts for engineOverviewThis PR updates file paths in CI workflows and build scripts to reflect the new ✅ Positive Aspects1. Correct Path Updates
2. Consistent Formatting
📝 Observations & Minor Issues1. Large OpenAPI Schema Changes (engine/artifacts/openapi.json)The 200-line diff in the OpenAPI schema is mostly formatting (tabs → spaces), but it's difficult to verify if there are any substantive changes mixed in. Consider:
2. Test File Deletion (examples/cursors/tests/cursors.test.ts)
3. TypeScript SDK ChangesThe TypeScript runner SDK changes show functional improvements: engine/sdks/typescript/runner/src/mod.ts (+68/-18):
engine/sdks/typescript/runner/src/tunnel.ts (+14/-5):
engine/sdks/typescript/test-runner/src/index.ts (+46/-29):
4. Actor Driver Updates (rivetkit-typescript/packages/rivetkit/src/drivers/engine/actor-driver.ts)
🔍 Code Quality AssessmentStrengths:
Areas for Attention:
🛡️ Security Considerations
🎯 RecommendationsRequired Before Merge:
Nice to Have:
Overall AssessmentStatus: ✅ Approve with minor clarifications The PR correctly updates paths for the engine directory restructure. The code quality is good, and the TypeScript SDK improvements are beneficial. The main concern is the deleted test file which should be clarified before merge. Risk Level: Low
Review generated with attention to the CLAUDE.md conventions for this repository. |
6aaeac5 to
0b5b7da
Compare
Pull Request ReviewThis PR fixes release script paths for the engine. Overall, the changes look good and are primarily focused on path corrections and formatting cleanup. Here's my detailed review: ✅ Positive Observations
🔍 Code Quality ObservationsTypeScript SDK Changesengine/sdks/typescript/runner/src/mod.ts (+68/-18 lines):
engine/sdks/typescript/tunnel.ts (+14/-5 lines):
engine/sdks/typescript/test-runner/src/index.ts (+46/-29 lines):
Minor Issues
🐛 Potential IssuesNone identified - The changes are straightforward path corrections. 🔒 Security ConsiderationsNo security concerns - The changes don't introduce new attack vectors or expose sensitive data. ⚡ Performance ConsiderationsNo performance impact - These are primarily path and configuration changes that don't affect runtime performance. 🧪 Test CoverageThe PR removes a test file:
Question: Was this test file obsolete or is it being moved elsewhere? If it provided valuable test coverage, consider migrating it rather than deleting it. 📋 Recommendations
✅ ConclusionThis is a solid cleanup PR that fixes release script paths. The changes are well-scoped and don't introduce breaking changes. Once you address the test coverage question, this should be good to merge. Overall Rating: ✅ Approve with minor questions Review generated with Claude Code |
0b5b7da to
33d40c9
Compare
Pull Request Review: CI Fix for Engine Release ScriptsSummaryThis PR fixes the release scripts for the engine by correcting Docker build paths and enabling ARM64 support. The changes are primarily infrastructure-focused with path corrections and CI improvements. Positive Aspects1. Path Corrections✅ Correctly updated Docker paths: Changed from 2. ARM64 Support Restoration✅ Re-enabled ARM64 builds: Removed the TODO comment and restored ARM64 Docker image building 3. macOS Build Improvements✅ Native macOS runners: Switched from
Issues & Recommendations1. Critical: Duplicate
|
33d40c9 to
6ea8762
Compare
PR Review: Fix Release Scripts for EngineSummaryThis PR adds ARM64 (aarch64) support to the release pipeline and reorganizes Docker build paths from ✅ Strengths
🔍 Code Quality ObservationsGitHub Actions Workflow (.github/workflows/release.yaml)Good:
Suggestions:
Docker Build Script (engine/docker/engine/build.sh)Good:
Potential Issues:
Recommendation: Add file existence check: if [ ! -f "engine/docker/engine/$DOCKERFILE" ]; then
echo "Dockerfile not found: engine/docker/engine/$DOCKERFILE"
exit 1
fiDockerfiles (linux-aarch64.Dockerfile)Good:
Concerns:
TypeScript SDK Changesengine/sdks/typescript/runner/src/mod.ts: Concerns:
await this.#config.onActorStop(actorId, actor.generation); // Line 163
// ... error handling ...
this.#config.onActorStop(actorId, actor.generation).catch((err) => { // Line 170The second call at line 170 will execute even if the first one completes successfully, potentially calling the callback twice. This should likely be removed or the logic restructured.
engine/sdks/typescript/runner/src/tunnel.ts: No significant issues found. The tunnel implementation looks solid with:
engine/sdks/typescript/test-runner/src/index.ts: Minor issues:
🔒 Security Considerations
🧪 Testing Recommendations
📊 Performance Considerations
🐛 Bugs FoundCritical:
Minor:
✏️ Style & ConventionsGood adherence to CLAUDE.md:
Whitespace changes:
📝 Final RecommendationsMust Fix Before Merge:
Should Consider:
Nice to Have:
Overall AssessmentQuality: Good ⭐⭐⭐⭐ (4/5) The PR successfully achieves its goal of adding ARM64 support and reorganizing paths. The main concern is the duplicate callback invocation bug that should be fixed before merge. Review generated with assistance from Claude Code |
6ea8762 to
efbb703
Compare
Pull Request Review: CI Fix for Engine Release ScriptsSummaryThis PR addresses critical issues in the release workflow for the Rivet engine, adding ARM64 support, fixing file paths, and improving Docker build configurations. Overall, this is a well-structured fix that modernizes the build infrastructure. ✅ Positive Changes1. ARM64 Support Re-enabled
Impact: Enables production ARM deployments, critical for cost optimization on ARM-based infrastructure. 2. Path Corrections
Impact: Essential fix - previous paths would cause build failures. 3. Improved .dockerignore
Impact: Faster builds and smaller context transfers to Docker daemon. 4. TypeScript SDK ImprovementsRunner SDK (
|
efbb703 to
c2d4617
Compare
PR Review: ci: fix release scripts for engineSummaryThis PR updates the release infrastructure to fix engine build and release processes. The changes include adding ARM64 support, fixing Docker build paths, improving the Positive Aspects ✅
Issues and Recommendations 🔍Critical Issues1. Docker Build Path Consistency (release.yaml:123) engine/docker/engine/build.sh ${{ matrix.target }}The script path was updated from 2. Dockerfile Path References (build.sh:51,53) DOCKER_BUILDKIT=1 docker build --platform $PLATFORM --target $TARGET_STAGE -f engine/docker/engine/$DOCKERFILE -t rivet-engine-builder-$TARGET .This assumes the script is run from the repository root. We should ensure the GitHub Actions workflow runs from the correct directory. Moderate Issues3. Missing Whitespace Changes (rust.yml) 4. Duplicate onActorStop Call (engine/sdks/typescript/runner/src/mod.ts:170) await this.#config.onActorStop(actorId, actor.generation); // Line 163
// ...
this.#config.onActorStop(actorId, actor.generation).catch(...); // Line 170The second call is not awaited and has error handling, while the first one is awaited with a try-catch. This seems redundant and could cause confusion. 5. OpenAPI Schema Changes Minor Issues6. Test File Deletion (examples/cursors/tests/cursors.test.ts) 7. Platform Architecture Naming (release.yaml:168) 8. Commented Code (release.yaml:201-204, 218-221) Code Quality AssessmentStrengths
Concerns
Security Considerations✅ No security concerns identified
Performance Considerations✅ Improvements identified
Test Coverage
RecommendationsHigh Priority
Medium Priority
Low Priority
ConclusionThis is a solid infrastructure improvement that adds important ARM64 support and fixes path issues. The main concern is the potential duplicate function call in the TypeScript SDK that needs verification. Once that's addressed, this should be good to merge. Recommendation: Request changes to address the duplicate Review generated by Claude Code |
c2d4617 to
5bf04f4
Compare
Pull Request Review: CI/CD Release Scripts FixesOverviewThis PR fixes and improves the release scripts for the engine, focusing on ARM64 support, Docker build paths, and code formatting. StrengthsARM64 Support Addition
Path Corrections
Docker Improvements
TypeScript SDK Enhancements
Issues and Concerns1. Critical: Docker Cache Mount ID Typos
2. Critical: Missing Integration Tests
3. TypeScript: Duplicate onActorStop Call
4. Deleted Test File
5. Security: .dockerignore Gaps
6. Build Script Error Handling
RecommendationsHigh Priority:
Medium Priority: Approval StatusOverall Assessment: The PR makes meaningful improvements but has several issues that should be addressed. Recommended Action: Request Changes Key Blockers:
Great work on adding ARM64 support! The foundation is solid, but please address the cache mount typos and consider adding platform validation tests before merging. |
5bf04f4 to
a707646
Compare
Pull Request Review: ci: fix release scripts for engineOverviewThis PR addresses CI/CD release workflow issues for the engine, primarily fixing Docker file paths and improving build configurations. The changes span CI workflows, Docker configurations, TypeScript SDK improvements, and code quality enhancements. ✅ Strengths1. Correct Path UpdatesThe PR properly fixes the Docker file paths from the old
2. Improved .dockerignoreThe enhanced
3. Code Quality ImprovementsTypeScript changes show attention to code quality:
4. Multi-Architecture SupportRe-enabled ARM64 Docker builds (
|
00e258e to
21324dd
Compare
a707646 to
1fd2b52
Compare
PR Review: CI Fix for Engine Release ScriptsStrengths
Critical Issues1. ARM64 Binary Build Commented Out
2. Test File Deletion
3. Missing Error Handling (engine/docker/engine/build.sh)
4. Hardcoded Token (engine/sdks/typescript/test-runner/src/index.ts:24)
Code Quality Issues
Performance Notes
Minor Suggestions
Testing Recommendations
SummaryThis PR fixes the core path issue effectively. Main concerns:
Recommendation: Address critical issues 1, 2, and 3 before merging. Overall: Good foundation, needs minor fixes before merge |

No description provided.