CDash
CDash copied to clipboard
Link to ATTACHED_FILES not working in CDash
I tried ATTACHED_FILES / ATTACHED_FILES_ON_FAIL in my ctest. The specified files are picked up, tared, base64 encoded and added to Test.xml as expected. ctest submits the test and CDash adds a link to the file. However, the link does not work. Instead of the uploaded file (or a tar or whatever), the CDash loads the standard frame and stalls.
Using CDash 2.5.0 hosted on Debian GNU/Linux 9 PHP 7
I have found https://itk.org/Bug/bug_relationship_graph.php?bug_id=11939&graph=dependency which has been resolved in 2012. Also this one sounds good: https://github.com/Kitware/CDash/commit/cda2724dbe6435435b04577bed8a8609a41c1d05 but should have been released with 2.5.0
Being root helps a lot: [Fri Sep 22 17:04:25.359721 2017] [:error] [pid 19735] [client 192.168.208.161:65354] PHP Warning: fread() expects parameter 1 to be resource, string given in /var/www/CDash-2-4-0/public/api/v1/testDetails.php on line 79 [Fri Sep 22 17:04:25.359723 2017] [:error] [pid 19735] [client 192.168.208.161:65354] PHP Warning: feof() expects parameter 1 to be resource, string given in /var/www/CDash-2-4-0/public/api/v1/testDetails.php on line 78
We are using (PostgreSQL) 9.6.4 and as far as I understood other posts, API for BLOBs changed or is buggy (depending on point of view). My workaround was to patch api/v1/testDetails.php and remove the special Postgres handling, currenlty in lines 76ff: // if ($CDASH_DB_TYPE == 'pgsql') { // $buf = ''; // while (!feof($result_array['value'])) { // $buf .= fread($result_array['value'], 2048); // } // $buf = stripslashes($buf); // } else { $buf = $result_array['value']; // }
I also found, that the link to testDetails.php did not work - download did not start for the attached files. Workaround was to directly link "api/v1/testDetails.php" in build/views/testDetails.html . I did not investigate further, why the script DID download the file according to FF debugger, but did not store its content to disk.
Hope that helps and maybe a persistent solution is implemented in upcoming CDash release
Is this updated on the open.cdash.org site? Having an issue with https://open.cdash.org/testDetails.php?test=756518290&build=5871926
I am seeing the same behavior in my project where I have small images uploaded and there are links to them for each test, but when I click on them, I only see the webpage posted at the top of this issue. Using the my.cdash.org site which is using CDash 2.7.0.