Skip to content

pkg/payload: Initial work on update -> reconciliation wording#194

Closed
wking wants to merge 6 commits intoopenshift:masterfrom
wking:update-payload-to-release-image
Closed

pkg/payload: Initial work on update -> reconciliation wording#194
wking wants to merge 6 commits intoopenshift:masterfrom
wking:update-payload-to-release-image

Conversation

@wking
Copy link
Copy Markdown
Member

@wking wking commented May 20, 2019

A bunch of small pivots to start moving the package API and error messages away from "update" phrasing and towards generic reconiciliation phrasing. When complete, this transition will reduce confusion like rhbz#1711964.

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wking

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-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 20, 2019
@wking
Copy link
Copy Markdown
Member Author

wking commented May 20, 2019

CC @abhinavdahiya, @smarterclayton

Not sure if there's anything I can do to help with review, this is a fair bit bigger than #185, and that's been pretty quiet ;).

@wking wking force-pushed the update-payload-to-release-image branch from 86704fa to 13630b3 Compare May 20, 2019 22:26
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 20, 2019
@wking
Copy link
Copy Markdown
Member Author

wking commented May 20, 2019

Rebased around #190 with 86704fa -> 13630b3.

@abhinavdahiya
Copy link
Copy Markdown
Contributor

I think the CVO reacts to Updates and not Payloads. So I don't completely agree with the move.

like payload.UpdateError - > payload.Error , personally i think former is more clearer.
like payload.LoadUpdate is more analogous to what CVO wants done, loading update not load payload...
adding summary etc function to Error type, personally i think former setup is more clearer.

haven't looked at the change in depth

@wking
Copy link
Copy Markdown
Member Author

wking commented May 20, 2019

I think the CVO reacts to Updates and not Payloads.

The CVO has three modes, all of which run reconciling sync loops, and only one of which is an update.

like payload.UpdateError - > payload.Error , personally i think former is more clearer

But we are generating these errors outside of updates, as seen in rhbz#1711964. These issues are payload-specific (which is already covered by the package scoping), but they aren't all upgrade-specific.

adding summary etc function to Error type, personally i think former setup is more clearer.

Can you put your finger on why? Getting a short text rendering of an instance of the payload package's error type seems like a good fit for "error type method" to me (vs. "grab a separate function from the payload package and pass it portions of the error type").

@wking wking force-pushed the update-payload-to-release-image branch from 13630b3 to 27ee47d Compare May 20, 2019 23:29
@wking
Copy link
Copy Markdown
Member Author

wking commented May 20, 2019

Pushed 13630b3 -> 27ee47d fixing the unit tests.

wking added 6 commits May 20, 2019 22:24
Narrow pivot to start moving the focus away from upgrades and towards
reconciliation.  This is the main type out of this package, so just
echo the package name.
Narrow pivot moving the focus away from upgrades and towards
reconciliation.  This loader returns the main type out of this
package, so drop the "what is being loaded" qualifier from the
function name to avoid stuttering the package name.
This is the only error type in this package, so there's no need to be
more specific.  This also moving the focus away from upgrades, to
avoid marginalizing reconciliation.
There's no need for a separate function here, and using a method gives
us access to additional Error properties if we want them (although I
haven't pivoted to take advantage of that yet).
…stsError)

The errors feeding this have little to do with integrity.  And they
aren't upgrade-specific; disk corruption or similar during regular
reconciliation could also lead to this error.
This allows us to avoid having two separate but very similar blocks of
code for converting these errors to succint, admin-oriented
descriptions.
@wking wking force-pushed the update-payload-to-release-image branch from 27ee47d to 5242487 Compare May 21, 2019 05:28
@wking
Copy link
Copy Markdown
Member Author

wking commented May 21, 2019

Rebased around #191 with 27ee47d -> 5242487.

@smarterclayton
Copy link
Copy Markdown
Contributor

smarterclayton commented Jun 10, 2019

We should definitely not use the word payload anywhere in messages or user interface - update or version are acceptable, but payload is not part of our public lexicon.

It’s fine internally

Comment thread pkg/payload/error.go
return e.Nested
}

func (e *Error) Summary() string {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This was separate because it was a specific domain error being applied - the error message for API short status is not the same as the message in other contexts. Summary isn’t a property of the error, it is an interpretation of it.

So would prefer not to do this part.

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@wking: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/integration 5242487 link /test integration
ci/prow/e2e-gcp 5242487 link /test e2e-gcp
ci/prow/e2e-gcp-upgrade 5242487 link /test e2e-gcp-upgrade
ci/prow/e2e-upgrade 5242487 link /test e2e-upgrade
ci/prow/e2e 5242487 link /test e2e
ci/prow/gofmt 5242487 link /test gofmt

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

@openshift-merge-robot
Copy link
Copy Markdown
Contributor

@wking: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-agnostic 5242487 link /test e2e-agnostic
ci/prow/e2e-agnostic-upgrade 5242487 link /test e2e-agnostic-upgrade
ci/prow/e2e-agnostic-operator 5242487 link /test e2e-agnostic-operator

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

@openshift-bot
Copy link
Copy Markdown
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 10, 2021
@openshift-bot
Copy link
Copy Markdown
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 9, 2021
@openshift-ci-robot openshift-ci-robot added the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Apr 9, 2021
@openshift-bot
Copy link
Copy Markdown
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 9, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 9, 2021

@wking: PR needs rebase.

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

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 9, 2021

@openshift-bot: Closed this PR.

Details

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

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

@openshift-ci openshift-ci Bot closed this May 9, 2021
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. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants