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

HPCC-14474 Improve testing of sorts #7929

Merged
merged 1 commit into from Nov 13, 2015

Conversation

ghalliday
Copy link
Member

Add random, sorted, reverse sorted tests, and check results
are sorted, and sorting is stable.

Signed-off-by: Gavin Halliday gavin.halliday@lexisnexis.com

Add random, sorted, reverse sorted tests, and check results
are sorted, and sorting is stable.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
@hpcc-jirabot
Copy link

@ghalliday
Copy link
Member Author

See also hpcc-systems/ecl-bundles#39

@ghalliday
Copy link
Member Author

@richardkchapman please review

@HPCCSmoketest
Copy link
Contributor

Automated Smoketest Build: success
Install hpccsystems-platform-community-with-plugins_6.0.0-beta1.el6.x86_64.rpm
HPCC Start: OK

setup hthor thor roxie
setup Pass Pass Pass
setup_fetch Pass Pass Pass
setupdict Pass Pass Pass
setupsearchindex Pass Pass Pass
setupsq Pass Pass Pass
setupwordindex Pass Pass Pass
setupxml Pass Pass Pass
test hthor thor roxie
sort Pass Pass Pass
sort3 Fail Pass Pass
sortfwd Excl. Excl. Excl.
sortnorm Excl. Excl. Excl.
sortrev Excl. Excl. Excl.
sortstable Excl. Excl. Excl.
sort3 on hthor failed with:
9: Test: sortfwd:ecl ( version: algo=tbbstableqsort )
--- sortfwd:xml
+++ sortfwd:xml
@@ -1,3 +1,4 @@
+<Warning><Code>5403</Code><Source>hthor</Source><Message>Ignoring unsupported sort order algorithm &apos;tbbstableqsort&apos;, using default</Message></Warning>
<Dataset name=Result 1>
<Row><Result_1>true</Result_1></Row>
</Dataset>

HPCC Stop: OK
HPCC Uninstall: OK

@ghalliday
Copy link
Member Author

Note: The PR for the merge sort changes includes the new tbbsort implementation.

@ghalliday
Copy link
Member Author

@AttilaVamos the error has been associated with the wrong test

@AttilaVamos
Copy link
Contributor

@ghalliday I'm working on the error report fix.

@HPCCSmoketest
Copy link
Contributor

Automated Smoketest Build: success
Install hpccsystems-platform-community-with-plugins_6.0.0-beta1.el6.x86_64.rpm
HPCC Start: OK

setup hthor thor roxie
setup Pass Pass Pass
setup_fetch Pass Pass Pass
setupdict Pass Pass Pass
setupsearchindex Pass Pass Pass
setupsq Pass Pass Pass
setupwordindex Pass Pass Pass
setupxml Pass Pass Pass
test hthor thor roxie
sort Pass Pass Pass
sort2(multiPart=false ) Pass Pass Pass
sort3 Pass Pass Pass
sortfwd(algo=heapsort ) Pass Pass Pass
sortfwd(algo=mergesort ) Pass Pass Pass
sortfwd(algo=parmergesort ) Pass Pass Pass
sortfwd(algo=parquicksort ) Pass Pass Pass
sortfwd(algo=quicksort ) Pass Pass Pass
sortfwd(algo=tbbstableqsort ) Fail Pass Pass
sortnorm(algo=heapsort ) Pass Pass Pass
sortnorm(algo=mergesort ) Pass Pass Pass
sortnorm(algo=parmergesort ) Pass Pass Pass
sortnorm(algo=parquicksort ) Pass Pass Pass
sortnorm(algo=quicksort ) Pass Pass Pass
sortnorm(algo=tbbstableqsort ) Fail Pass Pass
sortrev(algo=heapsort ) Pass Pass Pass
sortrev(algo=mergesort ) Pass Pass Pass
sortrev(algo=parmergesort ) Pass Pass Pass
sortrev(algo=parquicksort ) Pass Pass Pass
sortrev(algo=quicksort ) Pass Pass Pass
sortrev(algo=tbbstableqsort ) Fail Pass Pass
sortstable(algo=heapsort ) Pass Pass Pass
sortstable(algo=mergesort ) Pass Pass Pass
sortstable(algo=parmergesort ) Pass Pass Pass
sortstable(algo=parquicksort ) Pass Pass Pass
sortstable(algo=quicksort ) Pass Pass Pass
sortstable(algo=tbbstableqsort ) Fail Pass Pass
sortfwd(algo=tbbstableqsort ) on hthor failed with:
--- sortfwd:xml
+++ sortfwd:xml
@@ -1,3 +1,4 @@
+<Warning><Code>5403</Code><Source>hthor</Source><Message>Ignoring unsupported sort order algorithm &apos;tbbstableqsort&apos;, using default</Message></Warning>
<Dataset name=Result 1>
<Row><Result_1>true</Result_1></Row>
</Dataset>
sortnorm(algo=tbbstableqsort ) on hthor failed with:
--- sortnorm:xml
+++ sortnorm:xml
@@ -1,3 +1,4 @@
+<Warning><Code>5403</Code><Source>hthor</Source><Message>Ignoring unsupported sort order algorithm &apos;tbbstableqsort&apos;, using default</Message></Warning>
<Dataset name=Result 1>
<Row><Result_1>true</Result_1></Row>
</Dataset>
sortrev(algo=tbbstableqsort ) on hthor failed with:
--- sortrev:xml
+++ sortrev:xml
@@ -1,3 +1,4 @@
+<Warning><Code>5403</Code><Source>hthor</Source><Message>Ignoring unsupported sort order algorithm &apos;tbbstableqsort&apos;, using default</Message></Warning>
<Dataset name=Result 1>
<Row><Result_1>true</Result_1></Row>
</Dataset>
sortstable(algo=tbbstableqsort ) on hthor failed with:
--- sortstable:xml
+++ sortstable:xml
@@ -1,3 +1,4 @@
+<Warning><Code>5403</Code><Source>hthor</Source><Message>Ignoring unsupported sort order algorithm &apos;tbbstableqsort&apos;, using default</Message></Warning>
<Dataset name=Result 1>
<Row><Result_1>true</Result_1></Row>
</Dataset>

HPCC Stop: OK
HPCC Uninstall: OK

@ghalliday
Copy link
Member Author

@AttilaVamos that is better.
@richardkchapman please review

@richardkchapman
Copy link
Member

What if anything are we planning to do about those warnings?

@richardkchapman
Copy link
Member

@ghalliday One question

@ghalliday
Copy link
Member Author

When my sort change (#7922) is merged in they will go away.

@ghalliday
Copy link
Member Author

@richardkchapman replied

richardkchapman added a commit that referenced this pull request Nov 13, 2015
HPCC-14474 Improve testing of sorts

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@richardkchapman richardkchapman merged commit 682b870 into hpcc-systems:candidate-6.0.0 Nov 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants