fix(dist-git): fix render staging, import-commit seeding, and commit …#139
Merged
dmcilvaney merged 2 commits intomicrosoft:mainfrom Apr 30, 2026
Merged
Conversation
…parsing - Use project WorkDir for render staging instead of /tmp to avoid filling tmpfs on large batch renders with synthetic git history. - Seed import-commit on first update so synthetic history walks have a bounded starting point instead of traversing entire repo histories. - Fix TrimRight -> Trim in commit metadata parsing to handle leading newlines that caused hash parse failures.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes performance and correctness issues in dist-git synthetic history generation and commit metadata parsing, and adjusts component render staging to use the project work directory to avoid exhausting /tmp/tmpfs during large batch renders.
Changes:
- Use project
WorkDirfor render staging instead of the OS temp dir. - Seed
import-commiton initial update for upstream components to bound synthetic history walks. - Fix git log metadata parsing by trimming leading newlines as well as trailing newlines.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| internal/app/azldev/core/sources/synthistory.go | Adjust commit metadata block trimming to handle leading newlines and avoid parse failures. |
| internal/app/azldev/cmds/component/update.go | Seed import-commit for upstream components to bound synthetic history traversal. |
| internal/app/azldev/cmds/component/render.go | Create render staging directories under the project work dir to avoid filling /tmp. |
reubeno
approved these changes
Apr 30, 2026
Tonisal-byte
approved these changes
Apr 30, 2026
Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…parsing