Skip to content

feat(render): add WithSkipLookaside preparer option#61

Open
dmcilvaney wants to merge 1 commit intomicrosoft:mainfrom
dmcilvaney:damcilva/skip-lookaside
Open

feat(render): add WithSkipLookaside preparer option#61
dmcilvaney wants to merge 1 commit intomicrosoft:mainfrom
dmcilvaney:damcilva/skip-lookaside

Conversation

@dmcilvaney
Copy link
Copy Markdown
Contributor

Add WithSkipLookaside() PreparerOption that skips lookaside cache downloads during source preparation. This avoids expensive tarball downloads when only spec + sidecar files are needed (e.g., for rendering).

Wired through three paths:

  • sourceprep: skips FetchFiles call entirely
  • fedorasourceprovider: skips ExtractSourcesFromRepo in processClonedRepo
  • sourcemanager: skips downloadLookasideSources for local components

Git-tracked files (spec, patches, scripts) are still fetched from the upstream clone.

Copilot AI review requested due to automatic review settings April 3, 2026 17:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “skip lookaside” option to the source preparation pipeline so rendering workflows can avoid expensive lookaside/tarball downloads while still fetching git-tracked spec + sidecar files.

Changes:

  • Add WithSkipLookaside() as a PreparerOption and plumb it into PrepareSources() to skip SourceManager.FetchFiles.
  • Add WithSkipLookaside() as a FetchComponentOption and wire it through SourceManager for local components and Fedora upstream fetching to skip lookaside extraction.
  • Add unit tests validating that lookaside extraction/download steps are skipped when the option is enabled.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
internal/providers/sourceproviders/sourcemanager.go Adds SkipLookaside fetch option and skips lookaside download for local components.
internal/providers/sourceproviders/fedorasourceprovider.go Skips ExtractSourcesFromRepo when SkipLookaside is set during upstream repo processing.
internal/providers/sourceproviders/fedorasourceprovider_test.go Adds test ensuring ExtractSourcesFromRepo is not invoked when skip-lookaside is enabled.
internal/app/azldev/core/sources/sourceprep.go Adds preparer-level WithSkipLookaside and skips FetchFiles, while passing skip option into FetchComponent.
internal/app/azldev/core/sources/sourceprep_test.go Adds tests for WithSkipLookaside behavior around FetchFiles/FetchComponent calls.

Add WithSkipLookaside() PreparerOption that skips lookaside cache
downloads during source preparation. This avoids expensive tarball
downloads when only spec + sidecar files are needed (e.g., for
rendering).

Wired through three paths:
- sourceprep: skips FetchFiles call entirely
- fedorasourceprovider: skips ExtractSourcesFromRepo in processClonedRepo
- sourcemanager: skips downloadLookasideSources for local components

Git-tracked files (spec, patches, scripts) are still fetched from
the upstream clone.
Copy link
Copy Markdown
Contributor

@Tonisal-byte Tonisal-byte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants