Skip to content

Tighten generator validation - #5968

Closed
0xmichalis wants to merge 2 commits into
openshift:masterfrom
0xmichalis:tight-generator-validation
Closed

0xmichalis wants to merge 2 commits into
openshift:masterfrom
0xmichalis:tight-generator-validation

Conversation

@0xmichalis

Copy link
Copy Markdown
Contributor

This is a way to validate generators, pushing it here to get some early feedback before going upstream.

@deads2k @fabianofranz @liggitt @smarterclayton

@derekwaynecarr also since you have been using generators lately

@0xmichalis

Copy link
Copy Markdown
Contributor Author

[test]

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.

If we're at the point of enumerating which generators are valid for which commands, does it start to make more sense to have a structured set of input arguments that are plumbed through? This is essentially saying callers have to be aware of the shape of magic container they are sending in.

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.

I think a solution is to isolate the buckets and return them to the corresponding commands using separate calls. Generators vary a lot between them and having separate calls for separate groups makes sense to me.

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

@0xmichalis

Copy link
Copy Markdown
Contributor Author
!!! Error in test/cmd/builds.sh:43
    'oc start-build --from-webhook="${webhook}"' exited with status 1
Call stack:
    1: test/cmd/builds.sh:43 main(...)
Exiting with status 1
!!! Error in hack/test-cmd.sh:281
    '${test}' exited with status 1
Call stack:
    1: hack/test-cmd.sh:281 main(...)
Exiting with status 1
[FAIL] !!!!! Test Failed !!!!

@0xmichalis

Copy link
Copy Markdown
Contributor Author

^ @bparees @csrwng is this a known flake? ^

@csrwng

csrwng commented Nov 19, 2015

Copy link
Copy Markdown
Contributor

No, but I did make a change to oc start-build --from-webhook yesterday. Looking into it.

@csrwng

csrwng commented Nov 19, 2015

Copy link
Copy Markdown
Contributor

So prior to my fix, start-build --from-webhook was a no-op. I guess now it's actually trying to kick off a build and failing:

"Internal error occurred: could not generate a build: imageStreamTag \"ruby-20-centos7:latest\" not found",

@bparees

bparees commented Nov 19, 2015

Copy link
Copy Markdown
Contributor

@csrwng @Kargakis #5970

@csrwng

csrwng commented Nov 19, 2015

Copy link
Copy Markdown
Contributor

@bparees 👍

@bparees

bparees commented Nov 19, 2015

Copy link
Copy Markdown
Contributor

@csrwng apparently you were very (un)lucky your pull merged... the only way it passes as it is right now is if the import manages to finish before the build is started.

@0xmichalis

Copy link
Copy Markdown
Contributor Author

[test]

@0xmichalis 0xmichalis changed the title Tight generator validation Tighten generator validation Nov 27, 2015
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 15, 2015
@0xmichalis

Copy link
Copy Markdown
Contributor Author

kubernetes/kubernetes#17516 is in upstream.

Let's get this after the rebase to ease @soltysh's torture rebase process:)

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 21, 2015
@soltysh

soltysh commented Dec 22, 2015

Copy link
Copy Markdown
Contributor

Let's get this after the rebase to ease @soltysh's torture rebase process:)

Thank you!

@danmcp

danmcp commented Jan 19, 2016

Copy link
Copy Markdown

@Kargakis Bump

@0xmichalis

Copy link
Copy Markdown
Contributor Author

Will get this in after the rebase lands

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to eac842b

@openshift-bot

Copy link
Copy Markdown
Contributor

@0xmichalis

Copy link
Copy Markdown
Contributor Author

This is partially superceded by oc create route work. We can remove the ugliness of flag validation once the next rebase is in.

@0xmichalis 0xmichalis closed this Jan 28, 2016
@0xmichalis
0xmichalis deleted the tight-generator-validation branch January 28, 2016 14:27
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.

7 participants