Skip to content

No-Jira | Dummy PR for testing#367

Open
neha037 wants to merge 4 commits into
openshift:masterfrom
neha037:dummy-for-ci-monitor
Open

No-Jira | Dummy PR for testing#367
neha037 wants to merge 4 commits into
openshift:masterfrom
neha037:dummy-for-ci-monitor

Conversation

@neha037

@neha037 neha037 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

Bug Fixes

  • Corrected the trusted CA mount location used when trusted CA support is enabled, ensuring the trusted CA ConfigMap is mounted into both the gather and upload containers at the expected path.

Tests

  • Improved CI test setup so CI builds fail fast when invalid build conditions are detected.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 23, 2026
@openshift-ci

openshift-ci Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Walkthrough

Two configuration edits to the must-gather controller: trustedCAMountPath is updated from /etc/pki/tls/certs to /etc/pki/tls/certs/ca, and CI instrumentation is added—an unused constant to trigger linting and an undefined-type variable to break compilation.

Changes

Configuration and Testing Changes

Layer / File(s) Summary
Trusted CA mount path configuration
controllers/mustgather/template.go
trustedCAMountPath constant updated from /etc/pki/tls/certs to /etc/pki/tls/certs/ca, changing the target mount location for the trusted CA volume used by containers.
CI test instrumentation
controllers/mustgather/constant.go, test/e2e/must_gather_operator_runner_test.go
Unexported constant unusedCITestConstant added to trigger unused-lint in CI. A local variable with undefined type is added to BeforeSuite to intentionally break compilation in CI context.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 13 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Test Structure And Quality ⚠️ Warning The test file contains an intentional compilation error (undefined_type on line 59 in BeforeSuite) that violates test quality requirements by preventing the test suite from compiling and running. Remove the intentional compile-break declaration: delete the comment and var ciMonitorBreak undefined_type lines from the BeforeSuite function.
Title check ❓ Inconclusive The title 'No-Jira | Dummy PR for testing' is vague and does not clearly describe the actual changes made to the codebase. Provide a more descriptive title that reflects the actual changes, such as 'Update trusted CA mount path and add CI test monitoring' or 'Adjust CA certificate mount path configuration'.
✅ Passed checks (13 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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 All 40 Ginkgo test titles in the newly added E2E tests are stable and descriptive with no dynamic content (no timestamps, UUIDs, pod names, node names, or variables) embedded in the test titles.
Microshift Test Compatibility ✅ Passed No new Ginkgo e2e tests (It, Describe, Context, When) are added in this PR. Only constants, mount paths, and test setup code are modified. The MicroShift compatibility check only applies when new G...
Single Node Openshift (Sno) Test Compatibility ✅ Passed No new Ginkgo e2e tests (It, Describe, Context, When) are added in this PR. The e2e test file only adds a non-test compilation artifact in BeforeSuite, not new test cases requiring SNO compatibilit...
Topology-Aware Scheduling Compatibility ✅ Passed PR changes don't introduce topology-breaking scheduling constraints. Job-based operator uses only preferred node affinity for infra nodes (not required), with no pod anti-affinity, topology spread,...
Ote Binary Stdout Contract ✅ Passed No stdout writes to stdout found in process-level code. Changes are: unused constant, path constant update, and compilation-breaking variable (not an OTE stdout contract issue).
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e tests (It/Describe/Context/When) are added in this PR; only test infrastructure setup is modified. The custom check does not apply.
No-Weak-Crypto ✅ Passed No weak cryptography patterns (MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB), custom crypto implementations, or non-constant-time secret comparisons detected in the PR changes.
Container-Privileges ✅ Passed No privileged container configurations, elevated capabilities, or security context escalations detected. Changes are: a Go constant addition, a CA mount path update, and a test compilation break—no...
No-Sensitive-Data-In-Logs ✅ Passed PR changes do not introduce logging of sensitive data. Constants reference secure values via Kubernetes Secrets without exposing passwords, tokens, or PII in logs.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci

openshift-ci Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: neha037
Once this PR has been reviewed and has the lgtm label, please assign dustman9000 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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
controllers/mustgather/constant.go (1)

30-30: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Remove CI-only exported constant from package API.

UnusedCITestConstant looks like a test artifact and unnecessarily expands the public surface of mustgather. Keep lint/CI probes outside production constants to avoid API noise.

🤖 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 `@controllers/mustgather/constant.go` at line 30, The constant
UnusedCITestConstant is a test/CI artifact that unnecessarily expands the public
API surface of the mustgather package. Remove the UnusedCITestConstant constant
declaration entirely from the constants file, as CI and lint probes should not
be exposed as production constants in the package's public interface.
🤖 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.

Nitpick comments:
In `@controllers/mustgather/constant.go`:
- Line 30: The constant UnusedCITestConstant is a test/CI artifact that
unnecessarily expands the public API surface of the mustgather package. Remove
the UnusedCITestConstant constant declaration entirely from the constants file,
as CI and lint probes should not be exposed as production constants in the
package's public interface.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 611fbc43-4c79-471d-a8df-38ab2a67c855

📥 Commits

Reviewing files that changed from the base of the PR and between 6860bae and c6ebb28.

⛔ Files ignored due to path filters (1)
  • boilerplate/generated-includes.mk is excluded by !boilerplate/**
📒 Files selected for processing (2)
  • controllers/mustgather/constant.go
  • controllers/mustgather/template.go

@neha037 neha037 marked this pull request as ready for review June 23, 2026 08:17
@neha037 neha037 marked this pull request as draft June 23, 2026 08:18
@openshift-ci openshift-ci Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jun 23, 2026
@neha037 neha037 marked this pull request as ready for review June 23, 2026 08:19
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 23, 2026
@codecov-commenter

codecov-commenter commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.32%. Comparing base (6860bae) to head (edc4b0c).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #367   +/-   ##
=======================================
  Coverage   82.32%   82.32%           
=======================================
  Files           8        8           
  Lines         905      905           
=======================================
  Hits          745      745           
  Misses        148      148           
  Partials       12       12           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 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 `@controllers/mustgather/constant.go`:
- Line 30: The constant `unusedCITestConstant` on line 30 is intentional dead
code added to trigger lint failures for testing purposes and should not be
included in the final code. Remove the entire line containing the
`unusedCITestConstant` constant definition from the
controllers/mustgather/constant.go file, as this is test/debugging code that
blocks normal integration.

In `@controllers/mustgather/template.go`:
- Line 28: The trustedCAMountPath constant in controllers/mustgather/template.go
is set to an incorrect mount path that prevents the upload script from finding
the CA bundle. Change the trustedCAMountPath value from "/etc/pki/tls/certs/ca"
to "/etc/pki/tls/certs" so that the CA bundle file will be accessible at the
correct location expected by the HTTPS proxy utility in the upload script.
🪄 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: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3e53c612-17a8-4258-9cff-17b3b894071f

📥 Commits

Reviewing files that changed from the base of the PR and between c6ebb28 and 9a57252.

📒 Files selected for processing (2)
  • controllers/mustgather/constant.go
  • controllers/mustgather/template.go

Comment thread controllers/mustgather/constant.go Outdated
Comment thread controllers/mustgather/template.go Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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 `@test/e2e/must_gather_operator_runner_test.go`:
- Around line 58-60: Remove the intentional compile-break declaration in the
test setup. Delete the comment line "CI monitor: force immediate compilation
failure" and the variable declaration that uses the undefined type
`undefined_type` to assign to `ciMonitorBreak`. These lines are causing the test
package to fail compilation and preventing the CI from running the e2e test
suite.
🪄 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: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 960cbc85-5607-4e52-92d7-eab0a1fd8613

📥 Commits

Reviewing files that changed from the base of the PR and between 9a57252 and abdfa5d.

📒 Files selected for processing (1)
  • test/e2e/must_gather_operator_runner_test.go

Comment thread test/e2e/must_gather_operator_runner_test.go Outdated
@neha037 neha037 changed the title chages for a failed PR No-Jira | Dummy PR for testing Jun 23, 2026
@openshift-app-platform-shift

openshift-app-platform-shift Bot commented Jun 23, 2026

Copy link
Copy Markdown

CI Monitor Report: #367

PR: No-Jira | Dummy PR for testing
Monitored at: 2026-06-24 06:27 UTC
Release Context: available | OCP version: unknown

CI Check Summary

Status Count
Passed 3
Failed 5
Pending 0
Total 8

Failure Analysis

Job Category Flake% Link
ci/prow/coverage lint-failure 0% logs
ci/prow/e2e-gcp-operator lint-failure 0% logs
ci/prow/lint lint-failure 0% logs
ci/prow/test lint-failure 0% logs
ci/prow/validate-boilerplate lint-failure 0% logs

Actionable Failures (5)

lint-failure:

  • ci/prow/coverage
  • ci/prow/e2e-gcp-operator
  • ci/prow/lint
  • ci/prow/test
  • ci/prow/validate-boilerplate
Log snippets for actionable failures

ci/prow/coverage:

?   	github.com/openshift/must-gather-operator/config	[no test files]
--- FAIL: Test_getGatherContainer (0.00s)
    --- FAIL: Test_getGatherContainer/with_trusted_CA_config_map (0.00s)
        template_test.go:251: trusted CA volume mount path was not correctly set. got /etc/pki/tls/certs/ca, wanted /etc/pki/tls/certs
--- FAIL: Test_getUploadContainer (0.00s)
    --- FAIL: Test_getUploadContainer/With_trusted_CA_config_map (0.00s)
        template_test.go:469: expected a CA cert volumeMount in u

ci/prow/e2e-gcp-operator:

-timeout 1h \
-count 1 \
-v \
-p 1 \
-tags e2e \
./test/e2e \
-ginkgo.v \
-ginkgo.show-node-events
# github.com/openshift/must-gather-operator/test/e2e [github.com/openshift/must-gather-operator/test/e2e.test]
test/e2e/must_gather_operator_runner_test.go:59:6: declared and not used: ciMonitorBreak

ci/prow/lint:

Validating YAML deploy/05_must-gather-admin.ClusterRole.yaml
Validating YAML deploy/06_must-gather-admin.ClusterRoleBinding.yaml
Validating YAML deploy/07_prometheus-k8s.Role.yaml
Validating YAML deploy/08_prometheus-k8s.RoleBinding.yaml
Validating YAML deploy/99_must-gather-operator.Deployment.yaml
Validating YAML deploy/crds/operator.openshift.io_mustgathers.yaml
Validating YAML deploy/must-gather-pvc.yaml
boilerplate/openshift/golang-osd-operator/ensure.sh golangci-lint
which: no golangci-lin

ci/prow/test:

Using test assets: /tmp/envtest-binaries/k8s/1.28.0-linux-amd64
?   	github.com/openshift/must-gather-operator	[no test files]
?   	github.com/openshift/must-gather-operator/api/v1alpha1	[no test files]
?   	github.com/openshift/must-gather-operator/config	[no test files]
--- FAIL: Test_getGatherContainer (0.00s)
    --- FAIL: Test_getGatherContainer/with_trusted_CA_config_map (0.00s)
        template_test.go:251: trusted CA volume mount path was not correctly set. got /etc/pki/tls/certs/ca, wan

ci/prow/validate-boilerplate:

Copying utilities
Reinvoking...

***********************************************************************************
openshift/golang-osd-operator is configured in update.cfg.
-----------------------------------------------------------------------------------
syncing files from source.
executing /go/src/github.com/openshift/must-gather-operator/boilerplate/openshift/golang-osd-operator/update PRE
executing /go/src/github.com/openshift/must-gather-operator/boilerplate/openshift/golang-osd-operato

Prow Job Breakdown

Job State Category Required Flake% Action
ci/prow/coverage fail lint-failure yes -- auto-fix
ci/prow/e2e-gcp-operator fail lint-failure yes -- auto-fix
ci/prow/lint fail lint-failure yes -- auto-fix
ci/prow/test fail lint-failure yes -- auto-fix
ci/prow/validate-boilerplate fail lint-failure yes -- auto-fix
ci/prow/ci-bundle-must-gather-operator-bundle pass -- yes -- --
ci/prow/images pass -- yes -- --
ci/prow/verify-deps pass -- yes -- --

Generated by oape-ci-monitor on 2026-06-24 06:27 UTC | classification: deterministic (regex-based) | release context: true

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. Removed the unused test constant unusedCITestConstant from controllers/mustgather/constant.go.

Addressing: #367 (comment)


AI-assisted response via Claude Code

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. Changed trustedCAMountPath from "/etc/pki/tls/certs/ca" to "/etc/pki/tls/certs" in controllers/mustgather/template.go to match the upload script's expected CA bundle location.

Addressing: #367 (comment)


AI-assisted response via Claude Code

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. Removed the intentional compilation break (var ciMonitorBreak undefined_type) from test/e2e/must_gather_operator_runner_test.go to allow the e2e test suite to compile.

Addressing: #367 (comment)


AI-assisted response via Claude Code

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. The UnusedCITestConstant has been removed from controllers/mustgather/constant.go in commit 5f7d6a5. The constant was a CI test artifact and has been cleaned from the production constants.


AI-assisted response via Claude Code

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. Both issues mentioned in this review have been addressed:

  1. The unusedCITestConstant has been removed from controllers/mustgather/constant.go (commit 8e370d8)
  2. The trustedCAMountPath has been corrected to /etc/pki/tls/certs in controllers/mustgather/template.go:28 (commit 3621729)

AI-assisted response via Claude Code

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. The intentional compilation failure has been removed from test/e2e/must_gather_operator_runner_test.go in commit 8e370d8. The undefined_type declaration and CI monitor comment are no longer present.


AI-assisted response via Claude Code

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. Removed unusedCITestConstant from controllers/mustgather/constant.go. This CI test artifact doesn't belong in production code.


AI-assisted response via Claude Code

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. Fixed trustedCAMountPath in controllers/mustgather/template.go:28 from /etc/pki/tls/certs/ca to /etc/pki/tls/certs so the CA bundle file is accessible at the correct location for the HTTPS proxy utility.

The first issue (unusedCITestConstant) was already removed in an earlier commit (f5fefee).


AI-assisted response via Claude Code

@openshift-app-platform-shift

Copy link
Copy Markdown

Done. Removed the intentional compilation failure lines (58-59) from test/e2e/must_gather_operator_runner_test.go. The e2e test suite now compiles successfully.


AI-assisted response via Claude Code

@openshift-ci

openshift-ci Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@neha037: The following test 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/validate-boilerplate edc4b0c link false /test validate-boilerplate

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants