Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extended: Allow to focus on particular tests #8438

Merged
merged 1 commit into from
Apr 16, 2016

Conversation

miminar
Copy link

@miminar miminar commented Apr 9, 2016

Focus usually involves string with spaces such as:

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

Replaces #8420

@miminar
Copy link
Author

miminar commented Apr 9, 2016

@stevekuznetsov could you please take one more look?

if [[ "${tests}" -eq 0 ]]; then
echo "[ERROR] No tests would be run"
exit 1
fi
${EXTENDEDTEST} "$@"
${EXTENDEDTEST} "$*"
Copy link
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
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
Copy link
Author

miminar commented Apr 10, 2016

Fixed.

@stevekuznetsov
Copy link
Contributor

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

@miminar
Copy link
Author

miminar commented Apr 11, 2016

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
Copy link
Author

miminar commented Apr 11, 2016

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

@stevekuznetsov
Copy link
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
Copy link
Author

miminar commented Apr 11, 2016

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

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

@stevekuznetsov
Copy link
Contributor

Looks like it selected tests correctly. LGTM

@miminar
Copy link
Author

miminar commented Apr 12, 2016

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

@pweil-
Copy link
Contributor

pweil- commented Apr 12, 2016

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 <miminar@redhat.com>
@miminar
Copy link
Author

miminar commented Apr 14, 2016

@pweil- good catch! Updated.

@openshift-bot
Copy link
Contributor

Evaluated for origin testonlyextended up to d2d9b96

@openshift-bot
Copy link
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-
Copy link
Contributor

pweil- commented Apr 14, 2016

LGTM

@miminar
Copy link
Author

miminar commented Apr 15, 2016

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

@pweil-
Copy link
Contributor

pweil- commented Apr 15, 2016

[merge] - test only

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to d2d9b96

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d2d9b96

@openshift-bot
Copy link
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
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