Skip to content

Only try to update build if status message changed - #5275

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
rhcarvalho:build-update-when-changed
Oct 21, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
rhcarvalho:build-update-when-changed

Conversation

@rhcarvalho

Copy link
Copy Markdown
Contributor

Fixes #5258.

@rhcarvalho

Copy link
Copy Markdown
Contributor Author

[test]

@bparees @jwforres PTAL

Would be nice to have tests around the controller... looking into it.

@openshift-bot

Copy link
Copy Markdown
Contributor

Comment thread pkg/build/controller/factory/factory.go Outdated

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.

is this the only place we'll ever update the status.message? wondering if this logic belongs in a utility function.

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.

Can't talk about the future, but for now that's the only place that will update the message in the context of an error. In #4872, pretty much by design, I tried to find a single place to report the error instead of handling it in multiple scattered places, which would be more (human) error prone IHMO.

I also looked at adding server logic to prevent doing an update that doesn't change anything, but looking around it didn't seem like the way to go.

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 961a16d

@bparees

bparees commented Oct 21, 2015

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6013/) (Image: devenv-rhel7_2516)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 961a16d

@rhcarvalho

Copy link
Copy Markdown
Contributor Author

bump

openshift-bot pushed a commit that referenced this pull request Oct 21, 2015
@openshift-bot
openshift-bot merged commit de02014 into openshift:master Oct 21, 2015
@bparees

bparees commented Oct 21, 2015

Copy link
Copy Markdown
Contributor

@smarterclayton etcd behavior is broken that makes this necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants