Skip to content

feat: Add tests for redhat-developer/gitops-must-gather#51 - #1375

Open
olivergondza wants to merge 1 commit into
redhat-developer:masterfrom
olivergondza:must-gather-regtest-#51
Open

olivergondza wants to merge 1 commit into
redhat-developer:masterfrom
olivergondza:must-gather-regtest-#51

Conversation

@olivergondza

Copy link
Copy Markdown
Collaborator

What does this PR do?

Expand existing E2E tests to cover the missing files identified by redhat-developer/gitops-must-gather#51

PR acceptance criteria:

  • Documentation was updated and verified using make serve-docs
  • Unit tests were updated
  • E2E tests were updated

What type of PR is this?

/kind enhancement

Special notes to the reviewer:

Signed-off-by: Oliver Gondža <ogondza@gmail.com>
@openshift-ci openshift-ci Bot added the kind/enhancement New feature or request label Oct 12, 2026
@openshift-ci
openshift-ci Bot requested review from jgwest and varshab1210 October 12, 2026 12:44
@openshift-ci

openshift-ci Bot commented Oct 12, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jgwest 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 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 71852a10-fa8b-40d0-bdb1-f8c66f5e0f75

📥 Commits

Reviewing files that changed from the base of the PR and between 51674a4 and 279cb73.


📒 Files selected for processing (1)
  • test/openshift/e2e/ginkgo/sequential/1-120_validate_running_must_gather.go

🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:


Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.



📝 Summary

Summary by CodeRabbit

  • Tests
    • Must-gather end-to-end validation now checks namespace resources, pods, Argo CD server access files, and current and previous application-controller logs in both the GitOps and test namespaces. No user-facing behavior changes.

Walkthrough

The must-gather E2E test adds a shared helper for checking namespace resources and application-controller logs. It calls the helper for the openshift-gitops namespace and the test namespace.

Changes

Must-gather namespace checks

Layer / File(s) Summary
Shared namespace resource and log checks
test/openshift/e2e/ginkgo/sequential/1-120_validate_running_must_gather.go
The new assertNamespaceLogs helper checks namespace resource files, Argo CD server role and rolebinding files, and current and previous application-controller logs. The test calls it for openshift-gitops and the test namespace.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: jgwest


Merge Risk: ⚪ Minimal · up to 279cb

The test now checks previous controller logs for both namespaces. Whether that artifact exists when there are no prior container logs could not be established, so no concrete merge-blocking failure is supported.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the addition of tests for the referenced must-gather change. It is concise and related to the main changeset.
Description check Passed The description explains that the E2E tests cover files identified in the referenced must-gather pull request. It is directly related to the changeset.
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.

  • Fix all pre-merge checks with AI

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

@openshift-ci

openshift-ci Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

@olivergondza: 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/v4.14-kuttl-parallel 279cb73 link false /test v4.14-kuttl-parallel

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.

@olivergondza

Copy link
Copy Markdown
Collaborator Author

/test v4.19-e2e

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

Labels

kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant