Skip to content

test: speed up spread test runtime by removing redundant package setup - #2774

Draft
lengau wants to merge 4 commits into
mainfrom
work/speed-up-spread
Draft

test: speed up spread test runtime by removing redundant package setup#2774
lengau wants to merge 4 commits into
mainfrom
work/speed-up-spread

Conversation

@lengau

@lengau lengau commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • remove a redundant apt update from top-level spread prepare
  • install snapd and unzip together in one global tests.pkgs call
  • remove per-task unzip installs from spread task.yaml files where unzip is already guaranteed globally

Impact

This removes repeated package-index refreshes in spread runs, reducing runtime while preserving test coverage and assertions.

lengau and others added 2 commits July 10, 2026 20:57
Avoid redundant apt index refreshes in top-level spread prepare by relying on tests.pkgs install and installing snapd+unzip in one invocation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Drop per-task tests.pkgs unzip installs now that the suite-level spread prepare installs unzip once for all tasks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 11, 2026 01:14
@lengau lengau changed the title Speed up spread test runtime by removing redundant package setup test: speed up spread test runtime by removing redundant package setup Jul 11, 2026

Copilot AI left a comment

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.

Pull request overview

This PR reduces Spread test runtime by removing redundant package installation steps and relying on a single global package setup in spread.yaml.

Changes:

  • Removed a manual apt-get update from the top-level Spread prepare step.
  • Consolidated global package installation into a single tests.pkgs install snapd unzip call.
  • Dropped per-task tests.pkgs install unzip calls where unzip is now guaranteed globally.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
spread.yaml Removes the explicit apt-get update and installs snapd + unzip together via tests.pkgs.
tests/spread/smoketests/remote-build/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/smoketests/pinned-dependencies/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/smoketests/parallel-build/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/smoketests/metafiles-unified-charmcraft-yaml/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/smoketests/metafiles-multiple-yaml/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/smoketests/metafiles-bad-yaml-unenforced/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/smoketests/different-dependencies/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/hooks/remove/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/hooks/configure/task.yaml Removes per-task unzip install; relies on global availability.
tests/spread/dependencies/strict-dependencies/task.yaml Removes per-task unzip install; relies on global availability.

Comment thread tests/spread/dependencies/strict-dependencies/task.yaml Outdated
lengau added 2 commits July 10, 2026 21:19
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.

2 participants