-
Notifications
You must be signed in to change notification settings - Fork 285
to 3.0: supporting data branch diff as file with stage. #23189
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
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue ##21979
What this PR does / why we need it:
PR Type
Enhancement
Description
Add stage path decoding support for data branch diff output
Refactor file path handling to support both local and stage paths
Implement pipe-based file writing for improved performance
Add context cancellation checks in diff operations
Diagram Walkthrough
File Walkthrough
authenticate.go
Extract stage path decoding into helper functionpkg/frontend/authenticate.go
tryDecodeStagePathfunctiondoCheckFilePathto use the new helper functiondata_branch.go
Add stage path support and pipe-based file writingpkg/frontend/data_branch.go
iopackage import for pipe-based file writingdiffOnBasecall fromexecCtx.reqCtxtoctxprepareFSForDiffAsFileto support stage paths with propercleanup handling
newSingleWriteAppenderfunction usingio.Pipefor efficientstreaming writes
writeCSVto handle both stage and local file paths withappropriate cleanup
diffDataHelperto prevent resourceleaks