Skip to content

Conversation

@joelanford
Copy link
Member

@joelanford joelanford commented Aug 18, 2021

Signed-off-by: Joe Lanford joe.lanford@gmail.com

Description of the change:
This PR adds an additional validation check on indexes that verifies that no cycles are present in the replaces chain of a channel's upgrade graph. It also verifies that there are no stranded bundles.

Motivation for the change:
Cycles in the replaces chain of a channel's upgrade graph and stranded bundles are invalid.

Reviewer Checklist

  • Implementation matches the proposed design, or proposal is updated to match implementation
  • Sufficient unit test coverage
  • Sufficient end-to-end test coverage
  • Docs updated or added to /docs
  • Commit messages sensible and descriptive

@openshift-ci openshift-ci bot requested review from ecordell and exdx August 18, 2021 18:53
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 18, 2021
@codecov
Copy link

codecov bot commented Aug 18, 2021

Codecov Report

Merging #755 (0430fca) into master (a0bb1e5) will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #755      +/-   ##
==========================================
+ Coverage   50.29%   50.41%   +0.11%     
==========================================
  Files         101      101              
  Lines        8699     8720      +21     
==========================================
+ Hits         4375     4396      +21     
  Misses       3471     3471              
  Partials      853      853              
Impacted Files Coverage Δ
alpha/model/model.go 92.64% <100.00%> (+1.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a0bb1e5...0430fca. Read the comment docs.

@joelanford joelanford changed the title fail model validation if cycle is detected opm validate: add replains chain validation for cycles and stranded bundles Aug 19, 2021
@joelanford joelanford changed the title opm validate: add replains chain validation for cycles and stranded bundles opm validate: check for cycles and stranded bundles in channel validation Aug 19, 2021
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
Copy link
Member

@dinhxuanvu dinhxuanvu left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 23, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 23, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dinhxuanvu, joelanford

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:
  • OWNERS [dinhxuanvu,joelanford]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit cede7db into operator-framework:master Aug 23, 2021
@joelanford joelanford deleted the dc-validate-cycles branch August 24, 2021 13:42
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants