Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test demonstrating zero-diff check failure #29101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Sep 12, 2024

make && ./openshift-tests run-test "[sig-apimachinery] server-side-apply zero diff detection should not update when the existing values have not changed [Suite:openshift/conformance/parallel]"

This is currently failing with

   STEP: Destroying namespace "e2e-test-server-side-apply-zero-diff-hzpgj" for this suite. @ 09/12/24 12:41:59.485
  • [FAILED] [4.844 seconds]
  [sig-apimachinery] server-side-apply zero diff detection [It] should not update when the existing values have not changed [Suite:openshift/conformance/parallel]
  github.com/openshift/origin/test/extended/operators/server_side_apply_zero_diff.go:23

    [FAILED] Expected
        <string>: modification done
    to equal
        <string>: nothing to apply
    In [It] at: github.com/openshift/origin/test/extended/operators/server_side_apply_zero_diff.go:65 @ 09/12/24 12:41:58.761
  ------------------------------

  Summarizing 1 Failure:
    [FAIL] [sig-apimachinery] server-side-apply zero diff detection [It] should not update when the existing values have not changed [Suite:openshift/conformance/parallel]
    github.com/openshift/origin/test/extended/operators/server_side_apply_zero_diff.go:65

  Ran 1 of 1 Specs in 4.844 seconds
  FAIL! -- 0 Passed | 1 Failed | 0 Pending | 0 Skipped

Copy link
Contributor

openshift-ci bot commented Sep 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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 Sep 12, 2024
if err := runtime.DefaultUnstructuredConverter.FromUnstructured(obj.Object, castObj); err != nil {
return nil, fmt.Errorf("unable to convert to OpenShiftAPIServer: %w", err)
}
ret, err := applyoperatorv1.ExtractOpenShiftAPIServerStatus(castObj, fieldManager)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I messed up this name.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, so instead of extracting the status you were extracting the spec thus the diff!

Copy link
Contributor

openshift-ci bot commented Sep 12, 2024

@deads2k: The following tests 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/e2e-metal-ipi-ovn 3f7cf5e link false /test e2e-metal-ipi-ovn
ci/prow/e2e-aws-ovn-single-node-upgrade 3f7cf5e link false /test e2e-aws-ovn-single-node-upgrade
ci/prow/e2e-aws-ovn-upgrade 3f7cf5e link false /test e2e-aws-ovn-upgrade
ci/prow/e2e-agnostic-ovn-cmd 3f7cf5e link false /test e2e-agnostic-ovn-cmd
ci/prow/e2e-aws-ovn-serial 3f7cf5e link true /test e2e-aws-ovn-serial
ci/prow/e2e-gcp-ovn-upgrade 3f7cf5e link true /test e2e-gcp-ovn-upgrade
ci/prow/e2e-aws-ovn-kube-apiserver-rollout 3f7cf5e link false /test e2e-aws-ovn-kube-apiserver-rollout
ci/prow/e2e-metal-ipi-ovn-ipv6 3f7cf5e link true /test e2e-metal-ipi-ovn-ipv6
ci/prow/e2e-gcp-ovn-rt-upgrade 3f7cf5e link false /test e2e-gcp-ovn-rt-upgrade
ci/prow/e2e-aws-ovn-ipsec-serial 3f7cf5e link false /test e2e-aws-ovn-ipsec-serial
ci/prow/e2e-aws-ovn-single-node 3f7cf5e link false /test e2e-aws-ovn-single-node

Full PR test history. Your PR dashboard.

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

Job Failure Risk Analysis for sha: 3f7cf5e

Job Name Failure Risk
pull-ci-openshift-origin-master-e2e-gcp-ovn-upgrade IncompleteTests
Tests for this run (20) are below the historical average (743): IncompleteTests (not enough tests ran to make a reasonable risk analysis; this could be due to infra, installation, or upgrade problems)

WithMessage("Whatever"))
action, err = dynamicOperatorClient.ApplyOperatorStatus(ctx, "first-condition-setter", firstConditionIdenticalToInitial)
o.Expect(err).NotTo(o.HaveOccurred())
o.Expect(action).To(o.Equal("nothing to apply"))
Copy link
Contributor

Choose a reason for hiding this comment

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

worth adding one more case where we stop setting the condition and check if the first call produces a diff but the second doesn't ?

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants