Skip to content

feat(scratch): Make scratch init faster#1499

Open
ZohebShaikh wants to merge 3 commits intomainfrom
init-faster
Open

feat(scratch): Make scratch init faster#1499
ZohebShaikh wants to merge 3 commits intomainfrom
init-faster

Conversation

@ZohebShaikh
Copy link
Copy Markdown
Contributor

@ZohebShaikh ZohebShaikh commented Apr 22, 2026

closes #1417

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.27%. Comparing base (e0a2c9d) to head (f19f225).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1499      +/-   ##
==========================================
+ Coverage   95.25%   95.27%   +0.01%     
==========================================
  Files          43       43              
  Lines        3164     3173       +9     
==========================================
+ Hits         3014     3023       +9     
  Misses        150      150              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ZohebShaikh ZohebShaikh marked this pull request as ready for review April 22, 2026 12:08
@ZohebShaikh ZohebShaikh requested a review from a team as a code owner April 22, 2026 12:08
LOGGER.info(f"Installing {path}")
process = Popen(
[
if paths:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: if not paths: return would stop the whole function being indented


def scratch_install(path: Path, timeout: float = _DEFAULT_INSTALL_TIMEOUT) -> None:
def scratch_install(
paths: list[Path], timeout: float = _DEFAULT_INSTALL_TIMEOUT
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
paths: list[Path], timeout: float = _DEFAULT_INSTALL_TIMEOUT
*paths: Path, timeout: float = _DEFAULT_INSTALL_TIMEOUT

Would prevent the API changing for existing calls

) -> None:
"""
Install a scratch package. Make blueapi aware of a repository checked out in
Install all scratch package. Make blueapi aware of a repository checked out in
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Install all scratch package. Make blueapi aware of a repository checked out in
Install scratch packages. Make blueapi aware of repositories checked out in

(and a couple more plural consistency changes in the doc string)

remote_url,
local_directory,
branch=target_revision,
multi_options=["--filter=blob:none"],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think you can pass this as a keyword

Suggested change
multi_options=["--filter=blob:none"],
filter="blob:none",

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.

Improve time required to clone repositories in initContainer

2 participants