Skip to content

extended: Allow to focus on particular tests - #8438

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
miminar:extended-focus
Apr 16, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
miminar:extended-focus

Conversation

@miminar

@miminar miminar commented Apr 9, 2016

Copy link
Copy Markdown

Focus usually involves string with spaces such as:

./test/extended/core.sh --ginkgo.focus='quota admission' --ginkgo.failFast

Replaces #8420

@miminar

miminar commented Apr 9, 2016

Copy link
Copy Markdown
Author

@stevekuznetsov could you please take one more look?

Comment thread test/extended/setup.sh Outdated
exit 1
fi
${EXTENDEDTEST} "$@"
${EXTENDEDTEST} "$*"

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.

We can see the effect of $* etc with a simple script:

With args:
'one' 'two 2' 'three 3' '4' '5'
Using $*:
'one' 'two' '2' 'three' '3' '4' '5' 
Using "$*":
'one two 2 three 3 4 5' 
Using $@:
'one' 'two' '2' 'three' '3' '4' '5' 
Using "$@":
'one' 'two 2' 'three 3' '4' '5' 

I believe we want "$@" here, as well as above.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

My bad, I haven't tested it.

@miminar

miminar commented Apr 10, 2016

Copy link
Copy Markdown
Author

Fixed.

@stevekuznetsov

Copy link
Copy Markdown
Contributor

Can you try a "testonlyextended"? Would be easier to look at the logs and verify things ran correctly

@miminar

miminar commented Apr 11, 2016

Copy link
Copy Markdown
Author

Argh.. jenkins turns build can have Docker image source to lowercase before passing it to ginkgo. And ginkgo then finds no match. Let's try something else.

{ testonlyextended ][ extended:core(result image should have proper labels) }

@miminar

miminar commented Apr 11, 2016

Copy link
Copy Markdown
Author

How do I remove core(build can have docker image source), from a list of tests to test?

@stevekuznetsov

Copy link
Copy Markdown
Contributor

I believe if you delete all your comments containing test key words and keep only the last one. Let's investigate the Jenkins lower casing issue here too, as that's pretty integral to being able to specify tests correctly.

@miminar

miminar commented Apr 11, 2016

Copy link
Copy Markdown
Author

Good idea!. Let's try again with previous test comments deleted.

[testonlyextended][extended:core(result image should have proper labels)]

@stevekuznetsov

Copy link
Copy Markdown
Contributor

Looks like it selected tests correctly. LGTM

@miminar

miminar commented Apr 12, 2016

Copy link
Copy Markdown
Author

@pweil- may I humbly request your powerful merge super-powers?

@pweil-

pweil- commented Apr 12, 2016

Copy link
Copy Markdown

this is also called in conformance.sh, do we need to change it there too?

Focus usually involves string with spaces such as:

    ./test/extended/core.sh --ginkgo.focus='quota admission' --ginkgo.failFast

Signed-off-by: Michal Minar <[email protected]>
@miminar

miminar commented Apr 14, 2016

Copy link
Copy Markdown
Author

@pweil- good catch! Updated.

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin testonlyextended up to d2d9b96

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/testonlyextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/22/) (Extended Tests: core(result image should have proper labels))

@pweil-

pweil- commented Apr 14, 2016

Copy link
Copy Markdown

LGTM

@miminar

miminar commented Apr 15, 2016

Copy link
Copy Markdown
Author

@deads2k would you like to exercise your mighty merge skill?

@pweil-

pweil- commented Apr 15, 2016 •

Copy link
Copy Markdown

[merge] - test only

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to d2d9b96

@openshift-bot

Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to d2d9b96

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3009/) (Extended Tests: core(result image should have proper labels))

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3009/) (Image: devenv-rhel7_3983)

@openshift-bot
openshift-bot merged commit 25eae6e into openshift:master Apr 16, 2016
@miminar
miminar deleted the extended-focus branch June 20, 2016 06:10
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.

4 participants