Skip to content

OpenSSL speed test false failure fix#4470

Draft
umfranci wants to merge 1 commit into
mainfrom
umfranci/openssl-fix-07052026
Draft

OpenSSL speed test false failure fix#4470
umfranci wants to merge 1 commit into
mainfrom
umfranci/openssl-fix-07052026

Conversation

@umfranci
Copy link
Copy Markdown
Collaborator

@umfranci umfranci commented May 8, 2026

Description

Fixed false test failures in verify_openssl_speed_test caused by scanning stdout for the substring :error:. When the system crypto policy disables legacy algorithms (e.g. DSA-SHA1), OpenSSL emits benign error lines like Error setting up context for dsa-sha1 in stdout even though the overall speed test succeeds. The old code treated any :error: substring as a test failure.

Replaced the fragile error-string scanning with positive output validation - the test now checks that "bytes per second" appears in stdout (confirming at least one algorithm completed successfully) and continues to rely on the process exit code for actual failures.

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:
verify_openssl_speed_test

Impacted LISA Features:
Openssl

Tested Azure Marketplace Images:

  • RedHat RHEL 101-gen2
  • oracle oracle-linux ol97-lvm-gen2
  • RedHat RHEL 810-gen2

Test Results

Image VM Size Result
RedHat RHEL 101-gen2 latest Standard_E32-16as_v7 PASSED
oracle oracle-linux ol97-lvm-gen2 latest Standard_E32-16as_v7 PASSED
RedHat RHEL 810-gen2 latest Standard_E32-16as_v7 PASSED

Copilot AI review requested due to automatic review settings May 8, 2026 10:53
Copy link
Copy Markdown
Contributor

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

This PR fixes false failures in the OpenSSL speed test helper by replacing fragile stdout “error substring” scanning with a positive validation that benchmark output was produced.

Changes:

  • Replace ":error:" stdout scanning with a check that "bytes per second" appears in the OpenSSL speed output.
  • Improve the failure message to indicate that no benchmark results were produced.

Comment thread lisa/tools/openssl.py
raise LisaException(
f"OpenSSL speed test failed - errors found in output: {result.stdout}"
"OpenSSL speed test produced no benchmark results. "
f"Output: {result.stdout}"
@umfranci umfranci changed the title changes to check if speed test executed - removing random error check OpenSSL speed test false failure fix May 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
verify_openssl_speed_test (lisa_0_0) ✅ PASSED 192.561

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