Skip to content

OCPBUGS-42114: add optional schema migrations; default to olm.bundle.object instead of olm.csv.metadata#870

Closed
grokspawn wants to merge 1 commit intoopenshift:release-4.15from
grokspawn:migrations-4.15
Closed

OCPBUGS-42114: add optional schema migrations; default to olm.bundle.object instead of olm.csv.metadata#870
grokspawn wants to merge 1 commit intoopenshift:release-4.15from
grokspawn:migrations-4.15

Conversation

@grokspawn
Copy link
Copy Markdown
Contributor

… (#1384)

  • Allow disabling of migrations for bundles and sqlite DBs
  • intro new migrations package
  • schema migration optional; default to olm.bundle.object
  • review resolutions
  • use a type to protect migration interactions
  • review revisions

Upstream-repository: operator-registry
Upstream-commit: c80e8751e716c069017b55279a0f29d0254d426a

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grokspawn

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 Sep 17, 2024
Comment on lines +51 to +55
// CloneAllMigrations returns a shallow copy of allMigrations
// since slices.Clone is not available in the current golang version
func CloneAllMigrations() []Migration {
return append(allMigrations[:0:0], allMigrations...)
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a semi-kludge to replace slices.Clone() from later golang versions. Hopefully not too odious.

@grokspawn
Copy link
Copy Markdown
Contributor Author

/jira cherrypick OCPBUGS-41540

@openshift-ci-robot
Copy link
Copy Markdown

@grokspawn: Jira Issue OCPBUGS-41540 has been cloned as Jira Issue OCPBUGS-42114. Will retitle bug to link to clone.
/retitle OCPBUGS-42114: add optional schema migrations; default to olm.bundle.object instead of olm.csv.metadata

Details

In response to this:

/jira cherrypick OCPBUGS-41540

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot changed the title add optional schema migrations; default to olm.bundle.object instead of olm.csv.metadata OCPBUGS-42114: add optional schema migrations; default to olm.bundle.object instead of olm.csv.metadata Sep 17, 2024
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 17, 2024
@openshift-ci-robot
Copy link
Copy Markdown

@grokspawn: This pull request references Jira Issue OCPBUGS-42114, which is invalid:

  • expected dependent Jira Issue OCPBUGS-41540 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is ON_QA instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

… (#1384)

  • Allow disabling of migrations for bundles and sqlite DBs
  • intro new migrations package
  • schema migration optional; default to olm.bundle.object
  • review resolutions
  • use a type to protect migration interactions
  • review revisions

Upstream-repository: operator-registry
Upstream-commit: c80e8751e716c069017b55279a0f29d0254d426a

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 openshift-eng/jira-lifecycle-plugin repository.

…of olm.csv.metadata (#1384)

* Allow disabling of migrations for bundles and sqlite DBs

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

* intro new migrations package

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

* schema migration optional; default to olm.bundle.object

Signed-off-by: Jordan Keister <jordan@nimblewidget.com>

* review resolutions

Signed-off-by: Jordan Keister <jordan@nimblewidget.com>

* use a type to protect migration interactions

Signed-off-by: Jordan Keister <jordan@nimblewidget.com>

* review revisions

Signed-off-by: Jordan Keister <jordan@nimblewidget.com>

---------

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
Signed-off-by: Jordan Keister <jordan@nimblewidget.com>
Co-authored-by: Joe Lanford <joe.lanford@gmail.com>
Upstream-repository: operator-registry
Upstream-commit: c80e8751e716c069017b55279a0f29d0254d426a
@perdasilva
Copy link
Copy Markdown
Contributor

/retest

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 19, 2024

@grokspawn: 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/verify bb2cec7 link true /test verify
ci/prow/e2e-gcp-console-olm bb2cec7 link true /test e2e-gcp-console-olm
ci/prow/e2e-gcp-ovn bb2cec7 link true /test e2e-gcp-ovn
ci/prow/e2e-upgrade bb2cec7 link true /test e2e-upgrade
ci/prow/e2e-gcp-olm-flaky bb2cec7 link false /test e2e-gcp-olm-flaky
ci/prow/images bb2cec7 link true /test images
ci/prow/periodics-images bb2cec7 link true /test periodics-images
ci/prow/e2e-gcp-olm bb2cec7 link true /test e2e-gcp-olm

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.

@perdasilva
Copy link
Copy Markdown
Contributor

/close Had to fix up a vendor. Done it in #874

@tmshort
Copy link
Copy Markdown
Contributor

tmshort commented Sep 24, 2024

/close

@openshift-ci openshift-ci Bot closed this Sep 24, 2024
@openshift-ci-robot
Copy link
Copy Markdown

@grokspawn: This pull request references Jira Issue OCPBUGS-42114. The bug has been updated to no longer refer to the pull request using the external bug tracker.

Details

In response to this:

… (#1384)

  • Allow disabling of migrations for bundles and sqlite DBs
  • intro new migrations package
  • schema migration optional; default to olm.bundle.object
  • review resolutions
  • use a type to protect migration interactions
  • review revisions

Upstream-repository: operator-registry
Upstream-commit: c80e8751e716c069017b55279a0f29d0254d426a

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 24, 2024

@tmshort: Closed this PR.

Details

In response to this:

/close

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.

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. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants