Skip to content

Move tls-scanner-run to post phase with best_effort for opendatahub-o… - #82676

Closed
GowthamShanmugam wants to merge 1 commit into
openshift:mainfrom
GowthamShanmugam:tls-scanner-best-effort
Closed

Move tls-scanner-run to post phase with best_effort for opendatahub-o…#82676
GowthamShanmugam wants to merge 1 commit into
openshift:mainfrom
GowthamShanmugam:tls-scanner-best-effort

Conversation

@GowthamShanmugam

@GowthamShanmugam GowthamShanmugam commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

…perator

The TLS scanner is a read-only audit step that should not block PRs on failure. Moving it from the test phase to post with best_effort ensures e2e results are not affected by scanner issues.

Summary by CodeRabbit

  • Updates the opendatahub-operator end-to-end CI job to run tls-scanner-run after the test phase as a best-effort post step.
  • TLS scanner failures will no longer block pull requests or affect end-to-end test results.

…perator

The TLS scanner is a read-only audit step that should not block PRs
on failure. Moving it from the test phase to post with best_effort
ensures e2e results are not affected by scanner issues.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

The OpenDataHub operator E2E job now runs tls-scanner-run as a best-effort post-step instead of a regular step.

Changes

OpenDataHub TLS scanner

Layer / File(s) Summary
Configure TLS scanner post-step
ci-operator/config/opendatahub-io/opendatahub-operator/opendatahub-io-opendatahub-operator-main.yaml
Moves tls-scanner-run into the job’s post section and sets best_effort: true.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: ciaram100104

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change by moving tls-scanner-run to the post phase with best_effort.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed Only a CI YAML test-job config changed; no Ginkgo test titles or dynamic test-name strings were added or modified.
Test Structure And Quality ✅ Passed Only a CI config YAML changed; no Ginkgo test code was added or modified, so the test-structure check is not applicable.
Microshift Test Compatibility ✅ Passed Only a CI YAML job change was made; no new Ginkgo tests or MicroShift-unsafe APIs were added.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Only a ci-operator YAML changed; no Ginkgo e2e tests were added or modified, so the SNO compatibility check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed Only a CI job YAML changed, moving tls-scanner-run to a best-effort post step; no workload scheduling constraints or topology assumptions were added.
Ote Binary Stdout Contract ✅ Passed Only a ci-operator YAML test config changed; no OTE binary code or stdout-writing paths were modified.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed Only ci-operator YAML changed; no new Ginkgo tests or network-assumption code was added.
No-Weak-Crypto ✅ Passed Only CI YAML changed: tls-scanner-run moved to post best_effort; no weak-crypto or custom-crypto patterns appear in the touched file.
Container-Privileges ✅ Passed Changed YAML only moves tls-scanner-run to post with best_effort; no privileged/host* or allowPrivilegeEscalation fields were added.
No-Sensitive-Data-In-Logs ✅ Passed The PR only moves tls-scanner-run to a best-effort post step; it adds no new log output or secret-bearing fields in the touched config.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci

openshift-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: GowthamShanmugam

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

The pull request process is described 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 openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 30, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@GowthamShanmugam, pj-rehearse: unable to determine affected jobs. This could be due to a branch that needs to be rebased. ERROR:

could not load configuration from candidate revision of release repo: failed to load ci-operator configuration from release repo: invalid ci-operator config: configuration has 6 errors:

 * tests[1].post[0]: only one of `ref`, `chain`, or a literal test step can be set
 * tests[1].post[0]: `as` is required
 * tests[1].post[0]: `from` or `from_image` is required
 * tests[1].post[0]: `commands` is required
 * test  contains best_effort without timeout
 * 'tests[1].post[0].resources' should have at least one request or limit

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@openshift-ci
openshift-ci Bot requested review from MarianMacik and den-rgb July 30, 2026 15:53

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/opendatahub-io/opendatahub-operator/opendatahub-io-opendatahub-operator-main.yaml`:
- Around line 161-163: Regenerate the downstream CI artifacts affected by the
tls-scanner-run entry in the opendatahub-operator configuration using the
repository’s standard generation target, such as make update or the equivalent
jobs and metadata targets, then include all resulting generated diffs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 6edfb373-d2dc-439a-9498-981d417fd418

📥 Commits

Reviewing files that changed from the base of the PR and between 253e50a and 4c88798.

📒 Files selected for processing (1)
  • ci-operator/config/opendatahub-io/opendatahub-operator/opendatahub-io-opendatahub-operator-main.yaml

Comment on lines +161 to +163
post:
- ref: tls-scanner-run
best_effort: true

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.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

make registry-metadata && make ci-operator-config && make jobs

Repository: openshift/release

Length of output: 197


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Makefile =="
if [ -f Makefile ]; then
  sed -n '1,220p' Makefile | nl -ba | sed -n '1,220p'
else
  echo "No Makefile at repository root"
fi

echo
echo "== ci-operator config file excerpt =="
FILE="ci-operator/config/opendatahub-io/opendatahub-operator/opendatahub-io-opendatahub-operator-main.yaml"
if [ -f "$FILE" ]; then
  wc -l "$FILE"
  sed -n '130,180p' "$FILE" | nl -ba -v130
else
  echo "Missing $FILE"
fi

echo
echo "== Generated files that may be affected =="
git ls-files | rg 'generated|metadata|prow|jobs|ci-operator|opendatahub-io-opendatahub-operator-main' | sed -n '1,200p'

echo
echo "== Make invocations in git history / current diff =="
git diff --stat || true
git diff -- ci-operator/config/opendatahub-io/opendatahub-operator/opendatahub-io-opendatahub-operator-main.yaml | sed -n '1,220p' || true

Repository: openshift/release

Length of output: 210


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Makefile =="
if [ -f Makefile ]; then
  sed -n '1,220p' Makefile
else
  echo "No Makefile at repository root"
fi

echo
echo "== ci-operator config file excerpt =="
FILE="ci-operator/config/opendatahub-io/opendatahub-operator/opendatahub-io-opendatahub-operator-main.yaml"
if [ -f "$FILE" ]; then
  wc -l "$FILE"
  sed -n '130,180p' "$FILE"
else
  echo "Missing $FILE"
fi

echo
echo "== Generated files that may be affected =="
git ls-files | grep -E 'generated|metadata|prow|jobs|ci-operator|opendatahub-io-opendatahub-operator-main' | sed -n '1,200p'

echo
echo "== Diff for target file =="
git diff -- ci-operator/config/opendatahub-io/opendatahub-operator/opendatahub-io-opendatahub-operator-main.yaml | sed -n '1,260p' || true

echo
echo "== Target workflow/config references =="
python3 - <<'PY'
from pathlib import Path
for p in list(Path('.').glob('**/*'))[:20]:
    pass
print("Python available")
PY

Repository: openshift/release

Length of output: 30176


Regenerate the downstream CI artifacts for this ci-operator change.

ci-operator/config/ changes are the source of truth for generated metadata/Prow jobs. Run the repo’s generation target, e.g. make update (or make jobs ci-operator-config registry-metadata), and commit any generated diffs before merge.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/config/opendatahub-io/opendatahub-operator/opendatahub-io-opendatahub-operator-main.yaml`
around lines 161 - 163, Regenerate the downstream CI artifacts affected by the
tls-scanner-run entry in the opendatahub-operator configuration using the
repository’s standard generation target, such as make update or the equivalent
jobs and metadata targets, then include all resulting generated diffs.

Sources: Coding guidelines, Learnings

@MarianMacik

Copy link
Copy Markdown
Member

@GowthamShanmugam we can close this in favour of #82675

@openshift-ci

openshift-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@GowthamShanmugam: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/generated-config 4c88798 link true /test generated-config
ci/prow/ci-operator-config 4c88798 link true /test ci-operator-config
ci/prow/ci-operator-config-metadata 4c88798 link true /test ci-operator-config-metadata
ci/prow/ci-operator-registry 4c88798 link true /test ci-operator-registry
ci/prow/openshift-image-mirror-mappings 4c88798 link true /test openshift-image-mirror-mappings
ci/prow/check-gh-automation 4c88798 link true /test check-gh-automation

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

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants