Skip to content

SAT-20386 Jira card is closed; removing it. - #20839

Merged
nacoool merged 1 commit into
SatelliteQE:masterfrom
amolpati30:remove_SAT-20386
Mar 2, 2026
Merged

SAT-20386 Jira card is closed; removing it.#20839
nacoool merged 1 commit into
SatelliteQE:masterfrom
amolpati30:remove_SAT-20386

Conversation

@amolpati30

@amolpati30 amolpati30 commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

The host is enabled with FIPS mode, so card SAT-20386 is being removed as the condition is no longer required.

Summary by Sourcery

Adjust RHEL PXE FIPS provisioning test expectations and skipping behavior for specific firmware/OS combinations.

Tests:

  • Add a conditional skip for the RHEL PXE FIPS provisioning test when running on RHEL 7 with UEFI firmware under an open SAT-41340.
  • Update the FIPS-enabled assertion in the RHEL PXE provisioning test to always require FIPS to be enabled, removing the SAT-20386 conditional.

@amolpati30
amolpati30 requested a review from a team as a code owner February 23, 2026 14:37
@amolpati30 amolpati30 added TestFailure Issues and PRs related to a test failing in automation CherryPick PR needs CherryPick to previous branches AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing 6.17.z 6.18.z Introduced in or relating directly to Satellite 6.18 6.19.z labels Feb 23, 2026
@sourcery-ai

sourcery-ai Bot commented Feb 23, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adjusts the RHEL PXE FIPS provisioning test to always require FIPS to be enabled post-provisioning and adds a conditional skip for unsupported UEFI RHEL7 scenarios tied to an open Jira issue.

File-Level Changes

Change Details Files
Add conditional skip for unsupported RHEL7 UEFI firmware scenario in the FIPS-enabled provisioning test.
  • Introduce a check for Jira SAT-41340 being open combined with UEFI firmware and RHEL 7 OS major version.
  • Call pytest.skip with a clear message when the combination of conditions indicates the test is not supported.
tests/foreman/api/test_provisioning.py
Tighten FIPS assertion to always require FIPS to be enabled on provisioned hosts.
  • Remove conditional logic based on Jira SAT-20386 when asserting /proc/sys/crypto/fips_enabled.
  • Assert that the FIPS flag read from the host is always 1 after provisioning.
tests/foreman/api/test_provisioning.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot 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.

Hey - I've left some high level feedback:

  • When asserting on result.stdout, consider converting result.stdout.strip() to int to avoid potential failures due to trailing newlines or spaces in the command output.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- When asserting on `result.stdout`, consider converting `result.stdout.strip()` to `int` to avoid potential failures due to trailing newlines or spaces in the command output.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14413
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : =========== 1 failed, 7 passed, 564 warnings in 11850.32s (3:17:30) ============

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Feb 23, 2026
@amolpati30

Copy link
Copy Markdown
Contributor Author

RHEL 7 does not support UEFI refer - SAT-41340, so one failure is expected.

@vijaysawant vijaysawant 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.

Ack

@amolpati30
amolpati30 marked this pull request as draft February 24, 2026 11:08
@amolpati30
amolpati30 force-pushed the remove_SAT-20386 branch 2 times, most recently from 421bec3 to 871fa9d Compare February 24, 2026 12:32
@amolpati30
amolpati30 marked this pull request as ready for review February 24, 2026 12:32

@sourcery-ai sourcery-ai Bot 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.

Hey - I've left some high level feedback:

  • The new skip block says it applies to 'UEFI and SecureBoot loaders' but the condition only checks pxe_loader.vm_firmware in ['uefi']; if SecureBoot is represented differently than plain uefi you may want to either broaden the condition or clarify the comment to match the actual behavior.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The new skip block says it applies to 'UEFI and SecureBoot loaders' but the condition only checks `pxe_loader.vm_firmware in ['uefi']`; if SecureBoot is represented differently than plain `uefi` you may want to either broaden the condition or clarify the comment to match the actual behavior.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14427
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : =========== 1 failed, 7 passed, 541 warnings in 12147.62s (3:22:27) ============

@amolpati30
amolpati30 force-pushed the remove_SAT-20386 branch 2 times, most recently from f398d14 to f4b9c64 Compare February 24, 2026 16:54
@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14440
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : ====== 1 failed, 6 passed, 1 skipped, 553 warnings in 11826.29s (3:17:06) ======

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14447
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : ====== 2 failed, 5 passed, 1 skipped, 564 warnings in 12826.93s (3:33:46) ======

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14460
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : ======= 1 failed, 5 passed, 479 warnings, 2 errors in 9952.38s (2:45:52) =======

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14516
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : =========== 2 failed, 6 passed, 556 warnings in 13945.95s (3:52:25) ============

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14530
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : ====== 2 failed, 4 passed, 575 warnings, 2 errors in 24751.21s (6:52:31) =======

@amolpati30

Copy link
Copy Markdown
Contributor Author
trigger: test-robottelo
pytest: tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled
provisioning: true

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14547
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : =========== 7 passed, 1 skipped, 559 warnings in 10470.36s (2:54:30) ===========

@Satellite-QE Satellite-QE added PRT-Passed Indicates that latest PRT run is passed for the PR and removed PRT-Failed Indicates that latest PRT run is failed for the PR labels Feb 28, 2026

@nacoool nacoool 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.

LGTM.

@nacoool
nacoool merged commit 1e9d8e4 into SatelliteQE:master Mar 2, 2026
12 checks passed
github-actions Bot pushed a commit that referenced this pull request Mar 2, 2026
github-actions Bot pushed a commit that referenced this pull request Mar 2, 2026
github-actions Bot pushed a commit that referenced this pull request Mar 2, 2026
amolpati30 added a commit to amolpati30/robottelo that referenced this pull request Mar 3, 2026
amolpati30 added a commit that referenced this pull request Mar 6, 2026
amolpati30 added a commit that referenced this pull request Mar 6, 2026
amolpati30 added a commit that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.17.z 6.18.z Introduced in or relating directly to Satellite 6.18 6.19.z AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing CherryPick PR needs CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR TestFailure Issues and PRs related to a test failing in automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants