Skip to content

lvbs_prod_boot: fix VSM regex to handle SSH line endings - #4614

Merged
LiliDeng merged 1 commit into
microsoft:mainfrom
praveen-pk:lvbs-prod-test
Jul 28, 2026
Merged

lvbs_prod_boot: fix VSM regex to handle SSH line endings#4614
LiliDeng merged 1 commit into
microsoft:mainfrom
praveen-pk:lvbs-prod-test

Conversation

@praveen-pk

Copy link
Copy Markdown
Contributor

Description

Simply the regex and ignore the line endings.

Related PR

#4584

Type of Change

  • [x ] 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)
  • [ x] Tests executed and results posted below

Test Validation

Key Test Cases:

Tested Azure Marketplace Images:
Images are not public. So, not posting here.

Test Results

VM Size: Standard_E16as_v5

2026-07-08T18:57:38.8548520Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner ________________________________________
2026-07-08T18:57:38.8549036Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner                          LvbsKmpp.verify_lvbs_kmpp: PASSED   
2026-07-08T18:57:38.8549755Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner                 LvbsProdBoot.verify_lvbs_prod_boot: PASSED   
2026-07-08T18:57:38.8550217Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner test result summary
2026-07-08T18:57:38.8550558Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner     TOTAL    : 2
2026-07-08T18:57:38.8551098Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner     QUEUED   : 0
2026-07-08T18:57:38.8552508Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner     ASSIGNED : 0
2026-07-08T18:57:38.8555624Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner     RUNNING  : 0
2026-07-08T18:57:38.8555979Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner     FAILED   : 0
2026-07-08T18:57:38.8556318Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner     PASSED   : 2
2026-07-08T18:57:38.8556784Z 2026-07-08 18:57:38.846[6768][INFO] lisa.RootRunner     SKIPPED  : 0

Copilot AI review requested due to automatic review settings July 27, 2026 18:10

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 updates the LvbsProdBoot LVBS production boot validation to make the dmesg check for VSM “VTL1 boot thread” messages more tolerant of SSH line ending variations.

Changes:

  • Simplified the VSM dmesg regex to avoid strict end-of-line matching (intended to tolerate \r\n).
  • Updated the example comment for the expected VSM message.

Comment thread lisa/microsoft/testsuites/lvbs/lvbs_prod_boot.py Outdated
Copilot AI review requested due to automatic review settings July 27, 2026 18:17

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

lisa/microsoft/testsuites/lvbs/lvbs_prod_boot.py:83

  • Using \s+ in the VSM regex can match across newlines (since \s includes \n), and dropping line anchoring makes the check less precise. It’s safer to keep the match line-based and still handle CRLF by allowing an optional \r before end-of-line.
        dmesg_output = dmesg.get_output(force_run=True)
        vsm_pattern = re.compile(r"vsm:\s+cpu\d+\s+entering vtl1 boot thread")
        vsm_matches = vsm_pattern.findall(dmesg_output)

Comment thread lisa/microsoft/testsuites/lvbs/lvbs_prod_boot.py
Simply the regex and ignore the line endings.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Copilot AI review requested due to automatic review settings July 27, 2026 18:26
Comment thread lisa/microsoft/testsuites/lvbs/lvbs_prod_boot.py

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

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

Comments suppressed due to low confidence (3)

lisa/microsoft/testsuites/lvbs/lvbs_prod_boot.py:45

  • Minor: The example is hard-coded to cpu1, but the regex matches any cpu\d+. Using a generic example avoids implying the test expects a specific CPU index.
           Example matched string: "vsm: cpu1 entering vtl1 boot thread"

lisa/microsoft/testsuites/lvbs/lvbs_prod_boot.py:79

  • Minor: This comment example is hard-coded to cpu1, but the check accepts any cpu\d+. Consider making the example generic to reduce confusion when triaging failures.
        # Example: "vsm: cpu1 entering vtl1 boot thread"

lisa/microsoft/testsuites/lvbs/lvbs_prod_boot.py:88

  • Minor: The failure message implies the expected log is specifically for cpu1, but the regex accepts any CPU index. Also consider adding a concrete investigation hint (e.g., grepping dmesg for vsm) to make the exception more actionable.
            raise LisaException(
                "No VSM VTL1 boot thread messages found in dmesg. "
                "Expected messages like 'vsm: cpu1 entering vtl1 boot thread'. "
                "The VSM module may not be active in this image."

@LiliDeng
LiliDeng merged commit 06a9e3f into microsoft:main Jul 28, 2026
27 checks passed
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