Skip to content

🌱 tests: address CodeRabbit review comments from downstream PR#2672

Open
tmshort wants to merge 1 commit intooperator-framework:mainfrom
tmshort:fix-coderabbit-707
Open

🌱 tests: address CodeRabbit review comments from downstream PR#2672
tmshort wants to merge 1 commit intooperator-framework:mainfrom
tmshort:fix-coderabbit-707

Conversation

@tmshort
Copy link
Copy Markdown
Contributor

@tmshort tmshort commented Apr 23, 2026

  • Rename local variable `tag` to `bundleTag` in catalog.Build to avoid shadowing the method's `tag` parameter
  • Fail the step with an error (instead of silently dropping) on invalid LargeCRD field counts in the bundle option parser; use `strconv.ParseInt` with bitSize 0 to also reject non-positive values
  • Look up channels by name in TestCatalog_FBCGeneration instead of assuming insertion order
  • Use `errgroup.Group` with `SetLimit(8)` in ScenarioCleanup deletion loop to bound concurrent goroutines and kubectl calls
  • Clarify README that ClusterObjectSet deletion is conditional on the BoxcutterRuntime feature gate
  • Add missing `text` language specifier to fenced code block in e2e-isolation design doc
  • Remove extra blank line in setup.sh

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

Copilot AI review requested due to automatic review settings April 23, 2026 17:55
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 23, 2026

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 19e1d71
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/69eb8411fe7f6e0007d38737
😎 Deploy Preview https://deploy-preview-2672--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 23, 2026

[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 joelanford 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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Addresses downstream review feedback by making tests more robust, improving logging/diagnostics in option parsing, and bounding concurrency during e2e cleanup.

Changes:

  • Make TestCatalog_FBCGeneration independent of channel insertion order by looking up channels by name.
  • Add logging for invalid LargeCRD(...) counts and cap concurrent kubectl delete calls in scenario cleanup.
  • Small docs/shell cleanups (README clarification, fenced code block language, remove extra blank line).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/internal/catalog/catalog_test.go Makes the channel assertions resilient to ordering changes.
test/internal/catalog/catalog.go Renames local var to avoid shadowing tag parameter.
test/extension-developer-e2e/setup.sh Removes an extra blank line.
test/e2e/steps/steps.go Logs and skips invalid LargeCRD(...) counts.
test/e2e/steps/hooks.go Adds a semaphore to bound concurrent deletions.
test/e2e/README.md Clarifies conditional deletion behavior under feature gate.
docs/designs/testing/2026-04-13-e2e-isolation/design.md Adds text language identifier to code fence.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/e2e/steps/hooks.go Outdated
Comment thread test/e2e/steps/steps.go
Comment thread test/e2e/steps/steps.go Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.99%. Comparing base (c8585e9) to head (19e1d71).

Files with missing lines Patch % Lines
test/internal/catalog/catalog.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2672   +/-   ##
=======================================
  Coverage   67.99%   67.99%           
=======================================
  Files         144      144           
  Lines       10573    10573           
=======================================
  Hits         7189     7189           
  Misses       2865     2865           
  Partials      519      519           
Flag Coverage Δ
e2e 37.38% <ø> (+0.02%) ⬆️
experimental-e2e 52.56% <ø> (-0.03%) ⬇️
unit 53.55% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the e2e test harness, test catalog builder, and supporting docs/scripts to incorporate review feedback from a downstream PR—primarily improving robustness, observability, and bounding cleanup concurrency.

Changes:

  • Make TestCatalog_FBCGeneration resilient to channel ordering by selecting channels by name.
  • Improve e2e step parsing by logging and skipping invalid LargeCRD(...) counts rather than silently ignoring them.
  • Add a concurrency bound to scenario cleanup deletes and apply small docs/script formatting fixes.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/internal/catalog/catalog_test.go Avoids relying on channel insertion order by finding channels by name.
test/internal/catalog/catalog.go Renames local tag variable to bundleTag to avoid shadowing the Build parameter.
test/extension-developer-e2e/setup.sh Removes an extra blank line.
test/e2e/steps/steps.go Logs and skips invalid LargeCRD(...) parse errors in bundle option parsing.
test/e2e/steps/hooks.go Introduces a semaphore to bound concurrent kubectl delete calls during cleanup.
test/e2e/README.md Clarifies ClusterObjectSet deletion depends on BoxcutterRuntime gate being enabled.
docs/designs/testing/2026-04-13-e2e-isolation/design.md Adds text language identifier to a fenced code block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/e2e/steps/steps.go
Comment thread test/e2e/steps/hooks.go Outdated
@tmshort tmshort force-pushed the fix-coderabbit-707 branch from 15c8df6 to e1b5a6e Compare April 24, 2026 14:20
Copilot AI review requested due to automatic review settings April 24, 2026 14:33
@tmshort tmshort force-pushed the fix-coderabbit-707 branch from e1b5a6e to f24245d Compare April 24, 2026 14:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates test and documentation utilities to incorporate prior review feedback, improving robustness (ordering independence), clarity (docs), and operational safety (bounded cleanup concurrency) in the operator-controller e2e/test tooling.

Changes:

  • Make TestCatalog_FBCGeneration resilient to channel ordering by looking channels up by name.
  • Update the e2e bundle “contents” parser to validate LargeCRD(...) counts and propagate parse errors with bundle context.
  • Bound concurrent kubectl delete calls during scenario cleanup using a limited-concurrency errgroup, plus small doc/script formatting fixes.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/internal/catalog/catalog_test.go Finds channels by name to avoid assuming slice insertion order.
test/internal/catalog/catalog.go Renames a local variable to avoid shadowing the tag parameter.
test/extension-developer-e2e/setup.sh Removes an extra blank line.
test/e2e/steps/steps.go Changes parseContents to return errors and validates LargeCRD(...) counts.
test/e2e/steps/hooks.go Uses errgroup.Group with a concurrency limit for cleanup deletions.
test/e2e/README.md Clarifies ClusterObjectSet deletion is gated by BoxcutterRuntime.
docs/designs/testing/2026-04-13-e2e-isolation/design.md Adds a text language specifier to a fenced code block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/e2e/steps/steps.go
@tmshort tmshort force-pushed the fix-coderabbit-707 branch from f24245d to 18b8052 Compare April 24, 2026 14:53
- Rename local variable `tag` to `bundleTag` in catalog.Build to avoid
  shadowing the method's `tag` parameter
- Fail the step with an error on invalid LargeCRD field counts in the
  bundle option parser; use strconv.ParseInt with bitSize 0 to also
  reject non-positive values
- Look up channels by name in TestCatalog_FBCGeneration instead of
  assuming insertion order
- Use errgroup.Group with SetLimit(8) in ScenarioCleanup deletion loop
  to bound concurrent goroutines and kubectl calls
- Clarify README that ClusterObjectSet deletion is conditional on the
  BoxcutterRuntime feature gate
- Add missing `text` language specifier to fenced code block in
  e2e-isolation design doc
- Remove extra blank line in setup.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Todd Short <tshort@redhat.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR applies a set of test, e2e, and documentation adjustments in response to downstream review feedback, aiming to make tests more robust, improve failure visibility in bundle parsing, and bound concurrency during e2e cleanup.

Changes:

  • Make catalog channel assertions robust to ordering changes and avoid variable shadowing in catalog build logic.
  • Propagate parsing errors for bundle options (notably invalid LargeCRD(...)) so scenarios fail loudly instead of silently dropping options.
  • Bound concurrent kubectl deletions during scenario cleanup; clarify docs and minor shell/doc formatting tweaks.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/internal/catalog/catalog_test.go Looks up channels by name to avoid relying on insertion order in tests.
test/internal/catalog/catalog.go Renames local tag to bundleTag to avoid shadowing.
test/extension-developer-e2e/setup.sh Removes an extra blank line.
test/e2e/steps/steps.go Makes bundle option parsing return errors; validates LargeCRD count.
test/e2e/steps/hooks.go Uses errgroup with a concurrency limit for cleanup deletions.
test/e2e/README.md Clarifies conditional deletion of ClusterObjectSet by feature gate.
docs/designs/testing/2026-04-13-e2e-isolation/design.md Adds text language identifier to fenced code block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/e2e/steps/hooks.go
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.

3 participants