fix(request): propagate download stream errors#66
Conversation
|
|
Warning Review limit reached
Your plan currently allows 1 review/hour. Refill in 53 minutes and 8 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR establishes release automation via Changesets and GitHub Actions, introduces Turbo for monorepo build orchestration, fixes blob download error handling when network interrupts mid-progress, standardizes repository metadata across packages, bumps the core version to 0.1.3, and temporarily skips two portal-event tests. ChangesRelease automation, build orchestration, and download progress fix
Sequence Diagram(s)sequenceDiagram
participant Developer
participant GitHub
participant commitlint
participant test
participant release as Changesets Release
Developer->>GitHub: Push to master
GitHub->>commitlint: Run commitlint action
commitlint-->>GitHub: Validate commits
GitHub->>test: Run test.yml workflow
test-->>GitHub: Execute unit tests
GitHub->>release: Run changesets/action
release->>release: Version packages
release->>GitHub: Create release PR or publish
sequenceDiagram
participant Client
participant processDownloadProgress
participant ReadableStream as Source Stream
participant ProgressStream as Progress Stream
Client->>processDownloadProgress: onProgress callback
processDownloadProgress->>ReadableStream: getReader()
loop Progress Loop
ReadableStream->>ProgressStream: read chunk
ProgressStream->>Client: enqueue chunk
ProgressStream->>processDownloadProgress: call onProgress callback
end
alt Stream Cancels
Client->>ProgressStream: cancel(reason)
ProgressStream->>ReadableStream: reader.cancel()
ReadableStream-->>ProgressStream: suppressed further reads
else Stream Errors
ReadableStream->>ProgressStream: error event
ProgressStream->>Client: controller.error(error)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
b8d36f0 to
b02ce0a
Compare
Summary
Tests
Closes #65
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Chores