Skip to content

Conversation

@clcollins
Copy link
Member

Summary

Improves log output clarity for the operators-lifecycle/delete-olm-operator managed job to prevent operational confusion during incident response.

Problem

During incident response, SREs ran the delete-olm-operator job without the FORCE=y parameter and incorrectly assumed the job had completed its work when it was only describing what would be deleted. The previous log output used ambiguous language like "Will delete..." which sounded like future action rather than hypothetical action.

Changes

  • Added prominent dry-run mode banner at script start with clear "DRY-RUN MODE - NO CHANGES" heading
  • Prefixed all dry-run messages with [DRY-RUN] for immediate visual distinction
  • Changed wording from "Will delete" to "Would delete" to clarify these are hypothetical actions
  • Added final summary banners for both dry-run and execution modes
  • Included clear instructions to execute with --params FORCE=y in both banner messages

Benefits

  • Prevents operational mistakes during incident response
  • Reduces incident duration by avoiding confusion about job execution status
  • Makes dry-run functionality more obvious and usable
  • Improves SRE confidence in managed job operations

Test Plan

  • Confirm shellcheck validation passes
  • Run job in dry-run mode (without FORCE=y) and verify clear messaging
  • Run job in execution mode (with FORCE=y) and verify success banner
  • Get team feedback on log clarity

Related: https://issues.redhat.com/browse/SREP-3321

🤖 Generated with Claude Code

During incident response, SREs ran the delete-olm-operator job without
the FORCE=y parameter and incorrectly assumed the job had completed its
work when it was only describing what would be deleted. This led to
operational confusion and extended incident duration.

Changes:
- Add prominent dry-run mode banner at script start
- Prefix all dry-run messages with [DRY-RUN]
- Change "Will delete" to "Would delete" to clarify hypothetical actions
- Add final summary banner for both dry-run and execution modes
- Include clear instructions to execute with --params FORCE=y

These changes make it immediately obvious whether the script is running
in dry-run mode or actually executing deletions, preventing operational
mistakes during incident response.

Related: https://issues.redhat.com/browse/SREP-3321

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 3, 2026

@clcollins: This pull request references SREP-3321 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Summary

Improves log output clarity for the operators-lifecycle/delete-olm-operator managed job to prevent operational confusion during incident response.

Problem

During incident response, SREs ran the delete-olm-operator job without the FORCE=y parameter and incorrectly assumed the job had completed its work when it was only describing what would be deleted. The previous log output used ambiguous language like "Will delete..." which sounded like future action rather than hypothetical action.

Changes

  • Added prominent dry-run mode banner at script start with clear "DRY-RUN MODE - NO CHANGES" heading
  • Prefixed all dry-run messages with [DRY-RUN] for immediate visual distinction
  • Changed wording from "Will delete" to "Would delete" to clarify these are hypothetical actions
  • Added final summary banners for both dry-run and execution modes
  • Included clear instructions to execute with --params FORCE=y in both banner messages

Benefits

  • Prevents operational mistakes during incident response
  • Reduces incident duration by avoiding confusion about job execution status
  • Makes dry-run functionality more obvious and usable
  • Improves SRE confidence in managed job operations

Test Plan

  • Confirm shellcheck validation passes
  • Run job in dry-run mode (without FORCE=y) and verify clear messaging
  • Run job in execution mode (with FORCE=y) and verify success banner
  • Get team feedback on log clarity

Related: https://issues.redhat.com/browse/SREP-3321

🤖 Generated with Claude Code

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 3, 2026
@openshift-ci openshift-ci bot requested review from RaphaelBut and Tessg22 February 3, 2026 01:54
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 3, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: clcollins
Once this PR has been reviewed and has the lgtm label, please assign typeid for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 3, 2026

@clcollins: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants