On a related note, my interpretation of the call at 
https://github.com/chapel-lang/chapel/blob/release/1.16/util/start_test#L936-L943
 doesn't seem to match the parameter parsing at 
https://github.com/chapel-lang/chapel/blob/release/1.16/util/test/computePerfStats#L284-L294,
 though I may be misunderstanding the naming of the params vs what is getting 
sent in.

-----Original Message-----
From: Stavenger, Timothy J 
Sent: Wednesday, March 28, 2018 3:26 PM
To: 'Elliot Ronaghan' <[email protected]>; [email protected]
Subject: RE: start_test --performance failing on computePerfStats

The tests are being run from a git repo, but not from within the Chapel one -- 
my code lives in a repo separate from the chapel language itself.

Right now I'm running this from the chapel Docker container, so I could make 
changes to the chapel start_test script itself, but that isn't all that 
maintainable. Eventually I'll be targeting a machine internally here at the 
lab, so I'll have more control over changing the chapel source (and modifying 
the start_test script). Though it would not be ideal to be working from a 
custom version vs stock release. I'll still try commenting out the line that 
appears to be causing the error to be sure my build can succeed without it.

Tim

-----Original Message-----
From: Elliot Ronaghan [mailto:[email protected]] 
Sent: Wednesday, March 28, 2018 3:11 PM
To: Stavenger, Timothy J <[email protected]>; 
[email protected]
Subject: Re: start_test --performance failing on computePerfStats

We haven't put much thought into external developers using start_test for 
performance testing, so it's certainly possible that we have some baked-in 
assumptions about our testing infrastructure. 

That code basically does a `git rev-parse HEAD` to get a SHA to associate with 
the current test session. If your test directory isn't in in a git repo, that 
code will break, though that particular error message should be innocuous.

As a lame/temp workaround, you can try something like 
https://github.com/chapel-lang/chapel/compare/master...ronawho:fix-perfsha-no-git
 , but if you are trying to do performance testing outside the chapel-lang git 
repo, we can try to improve start_test's usability.

Elliot

?-----Original Message-----
From: "Stavenger, Timothy J" <[email protected]>
Date: Wednesday, March 28, 2018 at 2:31 PM
To: "[email protected]" <[email protected]>
Subject: start_test --performance failing on computePerfStats
Resent-From: Brad Chamberlain <[email protected]>
Resent-To: Elliot Ronaghan <[email protected]>
Resent-Date: Wednesday, March 28, 2018 at 2:30 PM

I¹m using the Chapel language¹s start_test to run unit & performance tests on 
my project¹s code (as we anxiously wait for the official Chapel test 
framework). The unit tests appear to be working fine. The performance tests 
run, but fail at 
https://github.com/chapel-lang/chapel/blob/release/1.16/util/start_test#L936-L943
 
<https://github.com/chapel-lang/chapel/blob/release/1.16/util/start_test#L936-L943>.
 I¹m running this in Jenkins in a chapel/chapel:1.16.0 Docker container.
 
In my Jenkinsfile I export the ŒCHPL_TEST_PERF_DIR¹ env variable, Œcd¹ into the 
test folder, and then run:
start_test --performance
 
The thought was I¹d start about as simple as possible, but I get the error:
[Error: Failed to save current sha to 
/var/lib/jenkins/jenkins-home/workspace/HPDA/AHM/chgl/test/performance/dat/perfSha.dat]
 
The file exists in Jenkins¹ workspace ­ at least after the build finishes. It 
looks like the start_test script is trying to execute the ŒcomputePerfStats¹ 
util, but is failing without logging what the problem is.
 
Granted this is rather vague, but do you have an idea of what may be going 
wrong? Or at least some direction as to where to look? Is there a way to turn 
on verbose logging for start_test to get a better idea of what is happening?
 
Thanks!



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to