hyperconverged-cluster-operator icon indicating copy to clipboard operation
hyperconverged-cluster-operator copied to clipboard

Don't increase the overwrittenModifications metric during upgrade

Open nunnatsa opened this issue 2 years ago • 14 comments

Some of the underline custom resources are getting changed as part of the upgrade process. This causes HCO to increase the overwrittenModifications metric, while this is not a user action.

This PR changes this behaviour to not increase the metric during upgrade, and so changes made during upgrade are not count.

Also, added some clean code in separate commits.

None

nunnatsa avatar Sep 01 '22 09:09 nunnatsa

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Sep 01 '22 09:09 sonarqubecloud[bot]

Pull Request Test Coverage Report for Build 2970471921

  • 6 of 12 (50.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 84.952%

Changes Missing Coverage Covered Lines Changed/Added Lines %
controllers/operands/operandHandler.go 2 8 25.0%
<!-- Total: 6 12
Totals Coverage Status
Change from base Build 2948514166: -0.02%
Covered Lines: 4460
Relevant Lines: 5250

💛 - Coveralls

coveralls avatar Sep 01 '22 09:09 coveralls

hco-e2e-image-index-azure lane succeeded. /override ci/prow/hco-e2e-image-index-gcp hco-e2e-upgrade-index-sno-aws lane succeeded. /override ci/prow/hco-e2e-upgrade-index-sno-azure hco-e2e-upgrade-prev-index-aws lane succeeded. /override ci/prow/hco-e2e-upgrade-prev-index-azure

hco-bot avatar Sep 01 '22 11:09 hco-bot

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-gcp, ci/prow/hco-e2e-upgrade-index-sno-azure, ci/prow/hco-e2e-upgrade-prev-index-azure

In response to this:

hco-e2e-image-index-azure lane succeeded. /override ci/prow/hco-e2e-image-index-gcp hco-e2e-upgrade-index-sno-aws lane succeeded. /override ci/prow/hco-e2e-upgrade-index-sno-azure hco-e2e-upgrade-prev-index-aws lane succeeded. /override ci/prow/hco-e2e-upgrade-prev-index-azure

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/test-infra repository.

kubevirt-bot avatar Sep 01 '22 11:09 kubevirt-bot

hco-e2e-image-index-sno-azure lane succeeded. /override ci/prow/hco-e2e-image-index-sno-aws

hco-bot avatar Sep 01 '22 11:09 hco-bot

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-sno-aws

In response to this:

hco-e2e-image-index-sno-azure lane succeeded. /override ci/prow/hco-e2e-image-index-sno-aws

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/test-infra repository.

kubevirt-bot avatar Sep 01 '22 11:09 kubevirt-bot

/retest

nunnatsa avatar Sep 01 '22 13:09 nunnatsa

/retest

nunnatsa avatar Sep 01 '22 15:09 nunnatsa

/approve

tiraboschi avatar Sep 01 '22 15:09 tiraboschi

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tiraboschi

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

kubevirt-bot avatar Sep 01 '22 15:09 kubevirt-bot

/retest

tiraboschi avatar Sep 02 '22 06:09 tiraboschi

/override coverage/coveralls ignoring slightly decreased coverage

tiraboschi avatar Sep 02 '22 06:09 tiraboschi

@tiraboschi: Overrode contexts on behalf of tiraboschi: coverage/coveralls

In response to this:

/override coverage/coveralls ignoring slightly decreased coverage

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/test-infra repository.

kubevirt-bot avatar Sep 02 '22 06:09 kubevirt-bot

/retest

nunnatsa avatar Sep 03 '22 05:09 nunnatsa

/retest

nunnatsa avatar Sep 04 '22 06:09 nunnatsa

/retest

nunnatsa avatar Sep 05 '22 05:09 nunnatsa

/retest

tiraboschi avatar Sep 05 '22 11:09 tiraboschi

@nunnatsa: 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/hco-e2e-upgrade-index-sno-azure e290a897d96e3ddc32243efe11ddfd6f519529fb link false /test hco-e2e-upgrade-index-sno-azure
ci/prow/hco-e2e-upgrade-prev-index-azure e290a897d96e3ddc32243efe11ddfd6f519529fb link true /test hco-e2e-upgrade-prev-index-azure
ci/prow/hco-e2e-image-index-gcp e290a897d96e3ddc32243efe11ddfd6f519529fb link true /test hco-e2e-image-index-gcp
ci/prow/hco-e2e-image-index-sno-aws e290a897d96e3ddc32243efe11ddfd6f519529fb link false /test hco-e2e-image-index-sno-aws
ci/prow/hco-e2e-kv-smoke-azure e290a897d96e3ddc32243efe11ddfd6f519529fb link true /test hco-e2e-kv-smoke-azure

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/test-infra repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Sep 05 '22 15:09 openshift-ci[bot]

hco-e2e-kv-smoke-gcp lane succeeded. /override ci/prow/hco-e2e-kv-smoke-azure

hco-bot avatar Sep 05 '22 15:09 hco-bot

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-kv-smoke-azure

In response to this:

hco-e2e-kv-smoke-gcp lane succeeded. /override ci/prow/hco-e2e-kv-smoke-azure

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/test-infra repository.

kubevirt-bot avatar Sep 05 '22 15:09 kubevirt-bot