Skip to content

[release-6.6] test: deploy loki operator once per lokistack e2e suite - #3549

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:release-6.6from
jcantrill:loki-e2e-deploy-operator-once-6.6
Oct 21, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
openshift:release-6.6from
jcantrill:loki-e2e-deploy-operator-once-6.6

Conversation

@jcantrill

Copy link
Copy Markdown
Contributor

What

Backport of #3543 to release-6.6.

  • Deploy the loki operator once per lokistack e2e suite (suite-scoped BeforeSuite/AfterSuite) instead of redeploying it in every spec's BeforeEach, and skip install when the operator deployment is already available.
  • Gate WaitForLokistackReady on the LokiStack Ready condition, failing fast on GET errors other than NotFound.
  • Stabilize the lokistack OTLP e2e against ingestion rate limits (slower log generator, higher ingestion limits, console labels so OTLP-mode queries can use k8s_* stream selectors).
  • Narrow HasApplicationLogs with optional stream label matchers.
  • Bump the default loki operator channel to stable-6.6 in the test framework and the Makefile export; release-6.6 still defaulted to stable-6.4 in both (master's dbfd9ed bump was never backported).

Why

Reinstalling/uninstalling the operator for each spec is wasteful and slow, and the per-spec cleanup could delete an operator it did not create. Backporting aligns the release-6.6 e2e with master and points it at the 6.6 loki operator channel for z-stream testing.

Testing

  • go vet ./test/framework/e2e/... ./test/e2e/logforwarding/lokistack/... passes on this branch.
  • Full e2e execution requires a live OpenShift cluster and was not run here.

🤖 Generated with Claude Code

Apply the loki-e2e-deploy-operator-once changes to release-6.6:
- deploy the loki operator once per suite (BeforeSuite/AfterSuite)
  instead of per-spec, and skip install when the deployment already
  exists, waiting for it to become available instead
- gate WaitForLokistackReady on the LokiStack Ready condition, failing
  fast on GET errors other than NotFound
- stabilize the lokistack OTLP e2e against ingestion rate limits:
  slower log generator, higher ingestion limits, and console labels
  so OTLP-mode queries can use k8s_* stream selectors
- narrow HasApplicationLogs with optional stream label matchers

Also bump the default loki operator channel to stable-6.6 in the test
framework and the Makefile export; release-6.6 still defaulted to
stable-6.4 in both.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: openshift/cluster-logging-operator/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 8656244d-b520-4cb0-96ee-7e3689b68e31

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

@openshift-ci
openshift-ci Bot requested review from Clee2691 and alanconway October 16, 2026 18:18
@openshift-ci

openshift-ci Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jcantrill

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 Oct 16, 2026
@jcantrill

Copy link
Copy Markdown
Contributor Author

/test e2e-target

@jcantrill

Copy link
Copy Markdown
Contributor Author

/override ci/prow/functional-target

as does not affect this change. functional test resolved with merger #3517

@openshift-ci

openshift-ci Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

@jcantrill: Overrode contexts on behalf of jcantrill: ci/prow/functional-target

Details

In response to this:

/override ci/prow/functional-target

as does not affect this change. functional test resolved with merger #3517

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.

@jcantrill

Copy link
Copy Markdown
Contributor Author

/label verified

@openshift-ci openshift-ci Bot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 20, 2026
@vparfonov

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 20, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 8db4712 and 2 for PR HEAD 91c1db6 in total

@jcantrill

Copy link
Copy Markdown
Contributor Author

/retest-required

1 similar comment
@jcantrill

Copy link
Copy Markdown
Contributor Author

/retest-required

@jcantrill

Copy link
Copy Markdown
Contributor Author

/test images

@jcantrill

Copy link
Copy Markdown
Contributor Author

/retest-required

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 81d17d9 and 1 for PR HEAD 91c1db6 in total

@vparfonov

Copy link
Copy Markdown
Contributor

/label verified
Confirmed on OCP 4.22 with Loki Operator 6.6.1

@openshift-ci

openshift-ci Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@jcantrill: 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.

@openshift-merge-bot
openshift-merge-bot Bot merged commit 1b4ef38 into openshift:release-6.6 Oct 21, 2026
9 checks passed
@jcantrill
jcantrill deleted the loki-e2e-deploy-operator-once-6.6 branch October 22, 2026 14:25
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. lgtm Indicates that a PR is ready to be merged. release/6.6 verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants