Skip to content

kernel_installer transformer: Use main repo component as default - #4547

Merged
LiliDeng merged 3 commits into
mainfrom
smyakam/kernel_installer/2026_06_17
Jun 22, 2026
Merged

kernel_installer transformer: Use main repo component as default#4547
LiliDeng merged 3 commits into
mainfrom
smyakam/kernel_installer/2026_06_17

Conversation

@SRIKKANTH

@SRIKKANTH SRIKKANTH commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator
  • Use main repo component as default enabling custom ppa kernel installation.
  • Pipe through cat so apt's stdout is not a TTY.

Description

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Impacted LISA Features:

Tested Azure Marketplace Images:

  • Canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Test Results

Image VM Size Result
Canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest Standard_D2ds_v5 PASSED

- Use main as repo component as default enabling custom ppa kernel installation.
- Pipe through `cat` so apt's stdout is not a TTY.
Copilot AI review requested due to automatic review settings June 19, 2026 15:39
@github-actions

Copy link
Copy Markdown

🤖 AI Test Selection

No test cases were selected for this PR.

@github-actions

Copy link
Copy Markdown

🤖 AI Test Selection

No test cases were selected for this PR.

@SRIKKANTH SRIKKANTH changed the title kernel_installer transformer: Use main as repo component as default kernel_installer transformer: Use main repo component as default Jun 19, 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.

⚠️ Not ready to approve

The proposed-repo selection logic appears to regress the default is_proposed=True path for the Ubuntu archive, and the new apt search | cat pipeline can mask apt failures without pipefail.

Key Test Cases:
smoke_test|verify_reboot_in_platform

Impacted LISA Features:
StartStop

Tested Azure Marketplace Images:

  • canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest
  • canonical ubuntu-24_04-lts server latest
Pull request overview

This PR updates the Ubuntu repo-based kernel installer to (1) default the APT repo component to main for more repository types and (2) prevent apt search from hanging due to pager behavior when stdout is treated as a TTY.

Changes:

  • Adjust repo-entry construction to default to main in additional is_proposed scenarios.
  • Pipe apt search output through cat (and redirect stderr) to avoid interactive pager hangs.
File summaries
File Description
lisa/transformers/kernel_installer.py Updates repository entry selection logic and changes the apt search invocation used for extracting the installed kernel version.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread lisa/transformers/kernel_installer.py
Comment thread lisa/transformers/kernel_installer.py
Copilot AI review requested due to automatic review settings June 19, 2026 15:52
@github-actions

Copy link
Copy Markdown

🤖 AI Test Selection

No test cases were selected for this PR.

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.

⚠️ Not ready to approve

The proposed-repo fallback logic appears to change the default repo installer behavior for is_proposed=True in a way that may prevent proposed kernels from being used, and the new apt search invocation is brittle.

Key Test Cases:
smoke_test|verify_reboot_in_platform

Impacted LISA Features:
StartStop

Tested Azure Marketplace Images:

  • canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest
Copilot's findings
  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread lisa/transformers/kernel_installer.py
Comment thread lisa/transformers/kernel_installer.py
@SRIKKANTH
SRIKKANTH marked this pull request as draft June 22, 2026 07:07
@SRIKKANTH
SRIKKANTH marked this pull request as ready for review June 22, 2026 14:57
@LiliDeng
LiliDeng merged commit 8bd2ee5 into main Jun 22, 2026
62 checks passed
@LiliDeng
LiliDeng deleted the smyakam/kernel_installer/2026_06_17 branch June 22, 2026 15:52
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