<div dir="ltr">A good suggestion Will. +1<div><br></div><div>Andrew<br></div><div><div class="gmail_extra"><br><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---------- Forwarded message ----------<br>From: Will Schroeder <<a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a>><br>To: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>Cc: VTK Developers <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>Date: Thu, 14 Apr 2016 18:10:38 -0400<br>Subject: Re: [vtk-developers] ExternalData and regression images<br><div dir="ltr">IMO the workflow for creating regression test images could be significantly improved. The incantations require multiple, non-intuitive steps and on occasions (when things go wrong) the sacraficing of a goat. I'd really like a simple macro/function (in a python test for example) to create a regression test image, put it in the right place, and even upload it all in one shot. Simply "CreateRTImage(renWin,forceReplace)" which would create a new image if one is not available, otherwise do nothing, etc. And force a replacement if needed.<div><br></div><div>Similarly simple processes for dropping in any alternative _1, _2, regression test images (cutting and pasting from the dashboard rt images). And ways to easily recover and move back and forth between md5 and png. I know some of this is available, but it takes a lot of documentation digestion to really understand the process which can be hard for newbies or those who code infrequently. Of most concern I think the process is cumbersome enough that it discourages adding new tests.</div><div><br></div><div>Best,<br>W</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 5:40 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks for the explanation.</div><div><br></div>I did "git gitlab-push" yesterday when I first encountered this problem.<div>And today I rebased the commit and did "git gitlab-push --force".  The<div>magic still didn't happen. Much unhappiness.<br></div><div><br></div><div>But when I did everything over from scratch, it worked (as mentioned</div><div>in my first email, this was someone else's MR, so I'm not sure what</div><div>the order of operations was the first time around).</div><span><font color="#888888"><div><br></div><div> - David</div></font></span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 7:13 AM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As Mathieu said,<br>
<br>
git gitlab-push<br>
<br>
does the magic. If you rebase and need to force push on a topic, you can do<br>
<br>
git gitlab-push -f<br>
<br>
Cory<br>
<div><div><br>
On Thu, Apr 14, 2016 at 2:00 AM, Mathieu Westphal<br>
<<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.com</a>> wrote:<br>
> Usually, what i need to do is :<br>
><br>
> 1. Copy image into baseline directory<br>
> 2. run cmake, check for "staged" output<br>
> 3. run make, check for "download" output<br>
> 4. git add the md5 file, which has now taken place of your file in baseline<br>
> dir<br>
> 5. Commit all you need to commit<br>
> 6. git gitlab-push ( magic happens here )<br>
><br>
> Mathieu Westphal<br>
><br>
> On Wed, Apr 13, 2016 at 10:25 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> wrote:<br>
>><br>
>> Hi All,<br>
>><br>
>> I've got a problem with ExternalData that is driving me crazy.  CMake<br>
>> computed the md5 sum and "staged" the image, whatever that means:<br>
>><br>
>><br>
>> Filters/General/Testing/Data/Baseline/.ExternalData_MD5_9dcc0e95cafb270cddfd482186180ab5<br>
>><br>
>> How does it go from here to the midas database? Because that step just<br>
>> doesn't seem to be happening. This is specifically with respect to the<br>
>> following merge request:<br>
>><br>
>> <a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1336" rel="noreferrer" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/1336</a><br>
>><br>
>> Cheers,<br>
>>  - David<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
>><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
Cory Quammen<br>
R&D Engineer<br>
Kitware, Inc.<br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div>William J. Schroeder, PhD<br>Kitware, Inc. - Building the World's Technical Computing Software<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a><br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br><a href="tel:%28518%29%20881-4902" value="+15188814902" target="_blank">(518) 881-4902</a></div></div></div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br></blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div></div>