After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747830 - gst-validate-launcher --sync performs tests when annex failed
gst-validate-launcher --sync performs tests when annex failed
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-devtools
git master
Other Linux
: Normal minor
: 1.5.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-14 08:19 UTC by Hyung Song
Modified: 2015-06-24 14:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testsuites: Error out if the assets could not be synced (1.54 KB, patch)
2015-04-14 09:45 UTC, Thibault Saunier
committed Details | Review

Description Hyung Song 2015-04-14 08:19:15 UTC
In systems without git annex installed, 'gst-validate-launcher --sync' fails to sync test medias but still performs tests which mostly fail, shows long messages that each tests failed, and takes time. It would be better if gst-validate-launcher can abort right after annex failed and doesn't show test fail messages.
Comment 1 Thibault Saunier 2015-04-14 09:45:35 UTC
Created attachment 301519 [details] [review]
testsuites: Error out if the assets could not be synced
Comment 2 Thibault Saunier 2015-04-14 09:47:45 UTC
commit b0aa782694c053237c625af73765f42b8b5fa331
Author: Thibault Saunier <tsaunier@gnome.org>
Date:   Tue Apr 14 11:41:57 2015 +0200

    testsuites: Error out if the assets could not be synced
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747830
commit b0aa782694c053237c625af73765f42b8b5fa331
Author: Thibault Saunier <tsaunier@gnome.org>
Date:   Tue Apr 14 11:41:57 2015 +0200

    testsuites: Error out if the assets could not be synced
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747830
Comment 3 Hyung Song 2015-04-14 10:13:30 UTC
With this patch applied, testsuite becomes empty and running another 'gst-validate-launcher --sync' has no test to perform.
Comment 4 Hyung Song 2015-04-14 10:17:31 UTC
In main.py:

    tests_launcher.set_settings(options, [])
...
    tests_launcher.list_tests()

If there's a way to check if testsuite is not loaded, then exit before list_tests()?
Comment 5 Thibault Saunier 2015-04-14 10:26:32 UTC
(In reply to Hyung Song from comment #3)
> With this patch applied, testsuite becomes empty and running another
> 'gst-validate-launcher --sync' has no test to perform.

Isn't that the expected behaviour? If we can't sync we should just exit.

(In reply to Hyung Song from comment #4)
> In main.py:
> 
>     tests_launcher.set_settings(options, [])
> ...
>     tests_launcher.list_tests()
> 
> If there's a way to check if testsuite is not loaded, then exit before
> list_tests()?

What would that bring us? (from what I understand it would be a very minor optimization in the failure case)
Comment 6 Hyung Song 2015-04-14 10:55:52 UTC
(In reply to Thibault Saunier from comment #5)
> (In reply to Hyung Song from comment #3)
> > With this patch applied, testsuite becomes empty and running another
> > 'gst-validate-launcher --sync' has no test to perform.
> 
> Isn't that the expected behaviour? If we can't sync we should just exit.
> 

Before exiting, message is printed for removing each test case and testsuite becomes empty. To rollback testsuite I'm removing gst-validate directory before 'gst-validate-launcher --sync'.

> (In reply to Hyung Song from comment #4)
> > In main.py:
> > 
> >     tests_launcher.set_settings(options, [])
> > ...
> >     tests_launcher.list_tests()
> > 
> > If there's a way to check if testsuite is not loaded, then exit before
> > list_tests()?
> 
> What would that bring us? (from what I understand it would be a very minor
> optimization in the failure case)

Removing test cases in the testsuite seems to happen in list_tests.
Comment 7 Thibault Saunier 2015-04-14 11:02:02 UTC
(In reply to Hyung Song from comment #6)
> (In reply to Thibault Saunier from comment #5)
> > (In reply to Hyung Song from comment #3)
> > > With this patch applied, testsuite becomes empty and running another
> > > 'gst-validate-launcher --sync' has no test to perform.
> > 
> > Isn't that the expected behaviour? If we can't sync we should just exit.
> > 
> 
> Before exiting, message is printed for removing each test case and testsuite
> becomes empty. To rollback testsuite I'm removing gst-validate directory
> before 'gst-validate-launcher --sync'.

Ah, ok I understand what you are talking about now. It does not remove any test, the list of test not being run is just informative to the user to let him now something changed/something went wrong. If you install git annex and --sync again, you will get the media files and it will afterward print the list of now 'added' tests.

> > (In reply to Hyung Song from comment #4)
> > > In main.py:
> > > 
> > >     tests_launcher.set_settings(options, [])
> > > ...
> > >     tests_launcher.list_tests()
> > > 
> > > If there's a way to check if testsuite is not loaded, then exit before
> > > list_tests()?
> > 
> > What would that bring us? (from what I understand it would be a very minor
> > optimization in the failure case)
> 
> Removing test cases in the testsuite seems to happen in list_tests.

As I explained previously no tests are removed, it is just a notification to the user.
Comment 8 Hyung Song 2015-04-14 11:08:49 UTC
(In reply to Thibault Saunier from comment #7)
> (In reply to Hyung Song from comment #6)
> > (In reply to Thibault Saunier from comment #5)
> > > (In reply to Hyung Song from comment #3)
> > > > With this patch applied, testsuite becomes empty and running another
> > > > 'gst-validate-launcher --sync' has no test to perform.
> > > 
> > > Isn't that the expected behaviour? If we can't sync we should just exit.
> > > 
> > 
> > Before exiting, message is printed for removing each test case and testsuite
> > becomes empty. To rollback testsuite I'm removing gst-validate directory
> > before 'gst-validate-launcher --sync'.
> 
> Ah, ok I understand what you are talking about now. It does not remove any
> test, the list of test not being run is just informative to the user to let
> him now something changed/something went wrong. If you install git annex and
> --sync again, you will get the media files and it will afterward print the
> list of now 'added' tests.
> 
> > > (In reply to Hyung Song from comment #4)
> > > > In main.py:
> > > > 
> > > >     tests_launcher.set_settings(options, [])
> > > > ...
> > > >     tests_launcher.list_tests()
> > > > 
> > > > If there's a way to check if testsuite is not loaded, then exit before
> > > > list_tests()?
> > > 
> > > What would that bring us? (from what I understand it would be a very minor
> > > optimization in the failure case)
> > 
> > Removing test cases in the testsuite seems to happen in list_tests.
> 
> As I explained previously no tests are removed, it is just a notification to
> the user.

I understand. Thank you very much!