You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "westonpace (via GitHub)" <gi...@apache.org> on 2023/01/26 17:35:00 UTC

[GitHub] [arrow] westonpace opened a new pull request, #33886: [C++] Increase timeout of c++ tests when running under valgrind

westonpace opened a new pull request, #33886:
URL: https://github.com/apache/arrow/pull/33886

   This partially addresses #33699.  Once these tests are passing we can analyze the runtime and try and scope our valgrind coverage to something appropriate.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] pitrou commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1413401710

   Thanks a lot @westonpace !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] westonpace commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1406789607

   @github-actions crossbow submit test-conda-cpp-valgrind


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] assignUser commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind

Posted by "assignUser (via GitHub)" <gi...@apache.org>.
assignUser commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1405786129

   Looks like they are still timing out https://dev.azure.com/ursacomputing/crossbow/_build/results?buildId=43127&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=d9b15392-e4ce-5e4c-0c8c-b69645229181&l=6947


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] westonpace commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1406049087

   I think splitting arrow-compute-scalar-test is inevitable at this point.  There are 1600 tests.  Right now, under valgrind, each takes an average of 700ms, which is not extremely long.  I tried to identify some of the worst culprits and while there are some things I can do I don't see any real solution.
   
   The rest of the failures I can improve the timing on.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] pitrou commented on a diff in pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #33886:
URL: https://github.com/apache/arrow/pull/33886#discussion_r1094239133


##########
cpp/src/arrow/compute/kernels/vector_sort_test.cc:
##########
@@ -45,6 +45,15 @@ using internal::checked_pointer_cast;
 
 namespace compute {
 
+#ifdef ARROW_VALGRIND
+using RealArrowTypes = ::testing::Types<FloatType>;

Review Comment:
   Ah, I didn't know you could redefine an alias with `using`.
   As a style note, I would personally prefer if this created a distinct alias, to avoid confusion - and potential leaking accross unity builds?
   (e.g. replace `RealArrowTypes` with `RealSortTypes` or something)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] js8544 commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "js8544 (via GitHub)" <gi...@apache.org>.
js8544 commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1410230130

   > Yes, though the appveyor test is concerning (and confusing :)
   
   From the error message I guess it's a MSVC bug where it somehow treats the anonymous namespace in scalar_arithmetis_test.cc and the anonymous namespace in test_util.cc (in which the four typed ValidateOutput are defined) as the same namespace. The unqualified name lookup stops once it finds the name ValidateOutput in the same namespace.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] ursabot commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "ursabot (via GitHub)" <gi...@apache.org>.
ursabot commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1413640747

   Benchmark runs are scheduled for baseline = de990c5a23cb25c70a2e2e9b436d3e494fdcd579 and contender = 3ab246f374c17a216d86edcfff7ff416b3cff803. 3ab246f374c17a216d86edcfff7ff416b3cff803 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Finished :arrow_down:0.0% :arrow_up:0.0%] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/ce871e9052ab445caf1aeb5d408d379e...31a2f5184dd641759798c80dafbd0ebe/)
   [Finished :arrow_down:2.81% :arrow_up:0.18%] [test-mac-arm](https://conbench.ursa.dev/compare/runs/cf6b856dac32402c86e5a877a7eb9559...6492b67439424da1aaae23972fe07d4b/)
   [Finished :arrow_down:3.32% :arrow_up:0.0%] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/4321ade36cc84aa39ea166ae446fe628...29fca76b5af5453ead383e01a26878b0/)
   [Finished :arrow_down:0.22% :arrow_up:0.0%] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/f79461af0df54738ac1324658f9d5321...a9a213d9fc284549894989108ac8ea84/)
   Buildkite builds:
   [Finished] [`3ab246f3` ec2-t3-xlarge-us-east-2](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ec2-t3-xlarge-us-east-2/builds/2307)
   [Finished] [`3ab246f3` test-mac-arm](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-test-mac-arm/builds/2333)
   [Finished] [`3ab246f3` ursa-i9-9960x](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-i9-9960x/builds/2304)
   [Finished] [`3ab246f3` ursa-thinkcentre-m75q](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-thinkcentre-m75q/builds/2325)
   [Finished] [`de990c5a` ec2-t3-xlarge-us-east-2](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ec2-t3-xlarge-us-east-2/builds/2306)
   [Finished] [`de990c5a` test-mac-arm](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-test-mac-arm/builds/2332)
   [Finished] [`de990c5a` ursa-i9-9960x](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-i9-9960x/builds/2303)
   [Finished] [`de990c5a` ursa-thinkcentre-m75q](https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-thinkcentre-m75q/builds/2324)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
   test-mac-arm: Supported benchmark langs: C++, Python, R
   ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
   ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] westonpace commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1411269089

   @js8544 's suggestion worked.  Looks like the remaining test failures are spurious.  Any last thoughts @assignUser ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] ursabot commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "ursabot (via GitHub)" <gi...@apache.org>.
ursabot commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1413641097

   ['Python', 'R'] benchmarks have high level of regressions.
   [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/4321ade36cc84aa39ea166ae446fe628...29fca76b5af5453ead383e01a26878b0/)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] westonpace commented on pull request #33886: [C++] Increase timeout of c++ tests when running under valgrind

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1405360324

   @github-actions crossbow submit test-conda-cpp-valgrind


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] westonpace commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1406789364

   Looks like I'll have to tackle both issues after all :)
   
   I broke the scalar test into multiple tests.  Some kernel tests were still pretty long so as most of those tests run on a large combination of types so I reduced the combinations when testing with valgrind.
   
   The scanner test was using too much data.  I turns out that sorting an array with 2Mi rows is pretty slow when running in valgrind.
   
   The CSV tests were slow because they were testing many combinations of compression and writing CSV files (even 50B CSV files) is very slow under valgrind (the conversion to string in particular).  I figure the various compressions are independently tested already and so removed those when running under valgrind.
   
   The hash tests were simply running too many iterations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] js8544 commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "js8544 (via GitHub)" <gi...@apache.org>.
js8544 commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1410326230

   > > The fact that MSVC looks up names in source files seems even wilder to me....
   > 
   > Ah, that's probably it. I will try fully qualifying. I suspect that it isn't looking in different source files because it is a unity build so I think, in this case, scalar_arithmetic_test and test_util have been smashed together into the same file.
   
   Oh I see. Makes sense.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] assignUser commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "assignUser (via GitHub)" <gi...@apache.org>.
assignUser commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1407060395

   Awesome looks like the timeout is fixed :D


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] westonpace commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1410299322

   > The fact that MSVC looks up names in source files seems even wilder to me....
   
   Ah, that's probably it.  I will try fully qualifying.  I suspect that it isn't looking in different source files because it is a unity build so I think, in this case, scalar_arithmetic_test and test_util have been smashed together into the same file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] westonpace commented on pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace commented on PR #33886:
URL: https://github.com/apache/arrow/pull/33886#issuecomment-1408997399

   Yes, though the appveyor test is concerning (and confusing :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] westonpace merged pull request #33886: GH-33699: [C++] Increase timeout of c++ tests when running under valgrind and shorten long tests

Posted by "westonpace (via GitHub)" <gi...@apache.org>.
westonpace merged PR #33886:
URL: https://github.com/apache/arrow/pull/33886


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org