Skip to content

rework how allow-missing-images resolves - #5304

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
bparees:allow_missing
Oct 22, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
bparees:allow_missing

Conversation

@bparees

@bparees bparees commented Oct 21, 2015

Copy link
Copy Markdown
Contributor

fixes #4991

@bparees
bparees force-pushed the allow_missing branch 2 times, most recently from 7e33ee7 to e09347b Compare October 21, 2015 21:03
@bparees

bparees commented Oct 21, 2015

Copy link
Copy Markdown
Contributor Author

[test]

@bparees

bparees commented Oct 21, 2015

Copy link
Copy Markdown
Contributor Author

@csrwng ptal

@openshift-bot

Copy link
Copy Markdown
Contributor

@csrwng

csrwng commented Oct 22, 2015

Copy link
Copy Markdown
Contributor

test/cmd/newapp.sh is failing

@csrwng

csrwng commented Oct 22, 2015

Copy link
Copy Markdown
Contributor

@bparees - this looks good, pending a fix to the test. While re-familiarizing myself with this code, a saw a couple of things:

@csrwng

csrwng commented Oct 22, 2015

Copy link
Copy Markdown
Contributor

And the resolve getting called with different sets of components

@bparees

bparees commented Oct 22, 2015

Copy link
Copy Markdown
Contributor Author

This is a bug: https://github.com/bparees/origin/blob/allow_missing/pkg/generate/app/componentresolvers.go#L118-L119 It should check whether the err is an instance of ErrMultipleMatches and add the multiple matches to the list of candidates.

@csrwng fixed and test added, ptal.

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.

Just an observation... it'd be more succinct to say

wr := WeightedResolvers{ resolver1, resolver2 }

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.

updated.

@bparees
bparees force-pushed the allow_missing branch 2 times, most recently from 69ea839 to 5df320e Compare October 22, 2015 21:46
Comment thread test/cmd/newapp.sh

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.

Isn't this the same test as in line 84?

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.

yes, cut+paste issue. fixed.

@csrwng

csrwng commented Oct 22, 2015

Copy link
Copy Markdown
Contributor

Apart from test comment above, LGTM

@bparees

bparees commented Oct 22, 2015

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 18204cb

@openshift-bot

Copy link
Copy Markdown
Contributor

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

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 18204cb

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 22, 2015
openshift-bot pushed a commit that referenced this pull request Oct 22, 2015
@openshift-bot
openshift-bot merged commit 8ce2d39 into openshift:master Oct 22, 2015
Comment thread test/cmd/newapp.sh

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 really shouldn't be here and should be in an integration test. test/cmd should not prereq Docker. Please open a follow up.

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.

Won't that fail on Travis?

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.

@csrwng promised me that travis didn't have docker at all, which is why i added the check as i did.

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.

and @smarterclayton it doesn't pre-req docker, it uses docker if it's available, otherwise it skips the test.

@bparees
bparees deleted the allow_missing branch October 26, 2015 14:02
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.

new-app: The --allow-missing-image flag is not working when a local docker connection is not available

5 participants