Skip to content

Pr1309: Testing only; No merge#1325

Draft
hongkailiu wants to merge 3 commits intoopenshift:mainfrom
hongkailiu:pr1309
Draft

Pr1309: Testing only; No merge#1325
hongkailiu wants to merge 3 commits intoopenshift:mainfrom
hongkailiu:pr1309

Conversation

@hongkailiu
Copy link
Member

No description provided.

@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 Feb 18, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 18, 2026

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
Copy link

coderabbitai bot commented Feb 18, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Excluded labels (none allowed) (1)
  • do-not-merge/work-in-progress

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.

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 18, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hongkailiu

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 Feb 18, 2026
@hongkailiu
Copy link
Member Author

/test all

@hongkailiu
Copy link
Member Author

/retest-required

@hongkailiu hongkailiu force-pushed the pr1309 branch 4 times, most recently from eb34c34 to 5073c9b Compare February 18, 2026 22:32
@hongkailiu
Copy link
Member Author

/test all

@hongkailiu
Copy link
Member Author

/test e2e-agnostic-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 20, 2026

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

@JianLi-RH
Copy link
Contributor

The factory method is pretty good, could you merge it? I want to keep my pr clean.

o.Expect(err).NotTo(o.HaveOccurred())
g.By(fmt.Sprintf("Checking if getting manifests with %s on the cluster led to not-found error", annotation))

ignore := sets.New[string]("release-metadata")
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding one more file name:

ignore := sets.New[string]("release-metadata", "image-references")

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it possible to have the annotation on "image-references"?
Moreover, would it fail on it without being ignored?

Copy link
Contributor

Choose a reason for hiding this comment

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

Both of them are not manifest files, so we'd better to skip them before manifest.ManifestsFromFiles([]string{filePath})

Copy link
Member Author

Choose a reason for hiding this comment

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

$ cat 419/image-references | head -n 11
{
  "kind": "ImageStream",
  "apiVersion": "image.openshift.io/v1",
  "metadata": {
    "name": "4.19.1",
    "creationTimestamp": "2025-06-19T15:00:35Z",
    "annotations": {
      "release.openshift.io/from-image-stream": "ocp/4.19-art-assembly-4.19.1"
    }
  },
  "spec": {

It is a json file instead of yaml like others.

https://github.com/openshift/enhancements/blob/master/dev-guide/cluster-version-operator/user/reconciliation.md#L52

Seems this file is special. It does not even have a namespace for the IS. Probably not applied to the cluster.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, so skip it as well

o.Expect(err).NotTo(o.HaveOccurred())
_, err = client.Get(ctx, ms.Obj.GetName(), metav1.GetOptions{})
o.Expect(apierrors.IsNotFound(err)).To(o.BeTrue(),
fmt.Sprintf("The deleted manifest should not be installed, but actually installed: manifest: %s %s in namespace %s from file %q, error: %v",
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems the output going to be too detailed, do we really need all of them? I think the message can help us find the installed manifest is enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

It will help to tell which object. One file could contain several objects.
When you try with a failure case, you will see.

string(ms.Raw) is more verbose than the current one.


for _, ms := range manifests {
ann := ms.Obj.GetAnnotations()
if ann[annotation] != "true" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will it cause unexpected issue when we remove ann == nil?

Copy link
Member Author

Choose a reason for hiding this comment

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

GoLang does not need nil checking before reading the a map.

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. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants