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 748455 - Some cleanup I made in grilo, I want to implement a test for GrlMediaContainer in a separate branch
Some cleanup I made in grilo, I want to implement a test for GrlMediaContaine...
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: core
unspecified
Other All
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2015-04-25 15:58 UTC by Mathieu Duponchelle
Modified: 2015-07-17 13:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
core: Remove remaining references to GrlMetadataSource. (11.32 KB, patch)
2015-04-25 15:58 UTC, Mathieu Duponchelle
accepted-commit_now Details | Review
tests: make C tests run again. (885 bytes, patch)
2015-04-25 15:58 UTC, Mathieu Duponchelle
none Details | Review
tests: make python tests run again. (4.01 KB, patch)
2015-04-25 15:58 UTC, Mathieu Duponchelle
none Details | Review
tests: disable python tests. (968 bytes, patch)
2015-04-25 15:58 UTC, Mathieu Duponchelle
none Details | Review
core: Fix gitignore generation. (1.48 KB, patch)
2015-04-25 15:58 UTC, Mathieu Duponchelle
none Details | Review
core: skip introspection of grl_init_get_option_group. (1.11 KB, patch)
2015-04-25 15:59 UTC, Mathieu Duponchelle
none Details | Review
tests: make C tests run again. (919 bytes, patch)
2015-04-26 16:16 UTC, Mathieu Duponchelle
none Details | Review
tests: Use GLib though introspection (2.32 KB, patch)
2015-04-26 16:16 UTC, Mathieu Duponchelle
none Details | Review
tests: Fix loading plugins. (2.28 KB, patch)
2015-04-26 16:16 UTC, Mathieu Duponchelle
none Details | Review
tests: disable python tests. (713 bytes, patch)
2015-04-26 16:16 UTC, Mathieu Duponchelle
none Details | Review
core: Add a Makefile.am in src/data (967 bytes, patch)
2015-04-26 16:17 UTC, Mathieu Duponchelle
none Details | Review
core: generate gitgnore in libs/pls too. (656 bytes, patch)
2015-04-26 16:17 UTC, Mathieu Duponchelle
none Details | Review
core: Add a Makefile.am in src/data (1.20 KB, patch)
2015-04-27 09:22 UTC, Mathieu Duponchelle
none Details | Review
core: Remove remaining references to GrlMetadataSource (11.32 KB, patch)
2015-04-27 09:45 UTC, Mathieu Duponchelle
none Details | Review
tests: make C tests run again (918 bytes, patch)
2015-04-27 09:45 UTC, Mathieu Duponchelle
committed Details | Review
tests: Use GLib though introspection (2.32 KB, patch)
2015-04-27 09:45 UTC, Mathieu Duponchelle
committed Details | Review
tests: Fix loading plugins (2.28 KB, patch)
2015-04-27 09:45 UTC, Mathieu Duponchelle
committed Details | Review
tests: disable python tests (766 bytes, patch)
2015-04-27 09:46 UTC, Mathieu Duponchelle
committed Details | Review
core: Add a Makefile.am in src/data (1.20 KB, patch)
2015-04-27 09:46 UTC, Mathieu Duponchelle
committed Details | Review
core: generate gitgnore in libs/pls too (655 bytes, patch)
2015-04-27 09:46 UTC, Mathieu Duponchelle
committed Details | Review
core: Remove remaining references to GrlMetadataSource (11.75 KB, patch)
2015-05-19 16:35 UTC, Mathieu Duponchelle
committed Details | Review

Description Mathieu Duponchelle 2015-04-25 15:58:35 UTC
GrlMediaContainer in a separate branch.
Comment 1 Mathieu Duponchelle 2015-04-25 15:58:40 UTC
Created attachment 302340 [details] [review]
core: Remove remaining references to GrlMetadataSource.
Comment 2 Mathieu Duponchelle 2015-04-25 15:58:45 UTC
Created attachment 302341 [details] [review]
tests: make C tests run again.
Comment 3 Mathieu Duponchelle 2015-04-25 15:58:50 UTC
Created attachment 302342 [details] [review]
tests: make python tests run again.
Comment 4 Mathieu Duponchelle 2015-04-25 15:58:54 UTC
Created attachment 302343 [details] [review]
tests: disable python tests.

As they don't pass anymore.
Comment 5 Mathieu Duponchelle 2015-04-25 15:58:59 UTC
Created attachment 302344 [details] [review]
core: Fix gitignore generation.
Comment 6 Mathieu Duponchelle 2015-04-25 15:59:04 UTC
Created attachment 302345 [details] [review]
core: skip introspection of grl_init_get_option_group.

This triggered a warning as it returns a bare structure, it is
usually skipped by other libraries.
Comment 7 Bastien Nocera 2015-04-25 16:18:49 UTC
Review of attachment 302340 [details] [review]:

The test files should probably be left well alone. They are still working and used.
Comment 8 Bastien Nocera 2015-04-25 16:19:40 UTC
Review of attachment 302341 [details] [review]:

Can you add the reasoning behind this fix in the commit message? Looks fine otherwise.
Comment 9 Bastien Nocera 2015-04-25 16:21:02 UTC
Review of attachment 302342 [details] [review]:

Can you split those up into "Use GLib through introspection" and "fix loading filesystem plugin"?
Comment 10 Bastien Nocera 2015-04-25 16:21:34 UTC
Review of attachment 302343 [details] [review]:

Aren't those the python tests you fixed earlier?
Comment 11 Mathieu Duponchelle 2015-04-25 16:23:34 UTC
(In reply to Bastien Nocera from comment #7)
> Review of attachment 302340 [details] [review] [review]:
> 
> The test files should probably be left well alone. They are still working
> and used.

make check doesn't even build with master here.
Comment 12 Mathieu Duponchelle 2015-04-25 16:24:36 UTC
(In reply to Bastien Nocera from comment #8)
> Review of attachment 302341 [details] [review] [review]:
> 
> Can you add the reasoning behind this fix in the commit message? Looks fine
> otherwise.

(In reply to Bastien Nocera from comment #9)
> Review of attachment 302342 [details] [review] [review]:
> 
> Can you split those up into "Use GLib through introspection" and "fix
> loading filesystem plugin"?

Will do
Comment 13 Mathieu Duponchelle 2015-04-25 16:25:12 UTC
(In reply to Bastien Nocera from comment #10)
> Review of attachment 302343 [details] [review] [review]:
> 
> Aren't those the python tests you fixed earlier?

I fixed running them, not the actual assertions which I haven't dug into.
Comment 14 Bastien Nocera 2015-04-26 12:25:51 UTC
(In reply to Mathieu Duponchelle from comment #13)
> (In reply to Bastien Nocera from comment #10)
> > Review of attachment 302343 [details] [review] [review] [review]:
> > 
> > Aren't those the python tests you fixed earlier?
> 
> I fixed running them, not the actual assertions which I haven't dug into.

Probably worth holding onto those fixes until they allow running the tests then.
Comment 15 Bastien Nocera 2015-04-26 12:26:41 UTC
Review of attachment 302344 [details] [review]:

Can you split this into 2? 1 for the lib/pls fix, one for the src/data fix?
Comment 16 Bastien Nocera 2015-04-26 12:27:59 UTC
Review of attachment 302345 [details] [review]:

That's wrong, see bug 743351.

We might need to bump dependencies to make this work though.
Comment 17 Mathieu Duponchelle 2015-04-26 12:29:34 UTC
(In reply to Bastien Nocera from comment #14)
> (In reply to Mathieu Duponchelle from comment #13)
> > (In reply to Bastien Nocera from comment #10)
> > > Review of attachment 302343 [details] [review] [review] [review] [review]:
> > > 
> > > Aren't those the python tests you fixed earlier?
> > 
> > I fixed running them, not the actual assertions which I haven't dug into.
> 
> Probably worth holding onto those fixes until they allow running the tests
> then.

I think being able to run make check should be the priority, if someone comes up and fixes the actual tests then it would be easy to reenable them?
Comment 18 Mathieu Duponchelle 2015-04-26 12:30:25 UTC
(In reply to Bastien Nocera from comment #16)
> Review of attachment 302345 [details] [review] [review]:
> 
> That's wrong, see bug 743351.
> 
> We might need to bump dependencies to make this work though.

Ah cool :)
Comment 19 Mathieu Duponchelle 2015-04-26 12:30:50 UTC
(In reply to Bastien Nocera from comment #15)
> Review of attachment 302344 [details] [review] [review]:
> 
> Can you split this into 2? 1 for the lib/pls fix, one for the src/data fix?

Will do this afternoon to
Comment 20 Bastien Nocera 2015-04-26 12:32:06 UTC
(In reply to Mathieu Duponchelle from comment #17)
> (In reply to Bastien Nocera from comment #14)
> > (In reply to Mathieu Duponchelle from comment #13)
> > > (In reply to Bastien Nocera from comment #10)
> > > > Review of attachment 302343 [details] [review] [review] [review] [review] [review]:
> > > > 
> > > > Aren't those the python tests you fixed earlier?
> > > 
> > > I fixed running them, not the actual assertions which I haven't dug into.
> > 
> > Probably worth holding onto those fixes until they allow running the tests
> > then.
> 
> I think being able to run make check should be the priority, if someone
> comes up and fixes the actual tests then it would be easy to reenable them?

Right, in which case, I'd rather have an "exit 0" with a reference to a bug added to the tests.
Comment 21 Mathieu Duponchelle 2015-04-26 16:16:37 UTC
Created attachment 302375 [details] [review]
tests: make C tests run again.

GrlMediaPlugin is now GrlSource.
Comment 22 Mathieu Duponchelle 2015-04-26 16:16:43 UTC
Created attachment 302376 [details] [review]
tests: Use GLib though introspection

+ And remove useless pygtk import.
Comment 23 Mathieu Duponchelle 2015-04-26 16:16:49 UTC
Created attachment 302377 [details] [review]
tests: Fix loading plugins.
Comment 24 Mathieu Duponchelle 2015-04-26 16:16:55 UTC
Created attachment 302378 [details] [review]
tests: disable python tests.

They fail for various reasons for now and we want make check to
pass.
Comment 25 Mathieu Duponchelle 2015-04-26 16:17:02 UTC
Created attachment 302379 [details] [review]
core: Add a Makefile.am in src/data

To have a gitignore generated there as well.
Comment 26 Mathieu Duponchelle 2015-04-26 16:17:08 UTC
Created attachment 302380 [details] [review]
core: generate gitgnore in libs/pls too.
Comment 27 Mathieu Duponchelle 2015-04-26 16:18:43 UTC
Review of attachment 302344 [details] [review]:

obsoleted
Comment 28 Mathieu Duponchelle 2015-04-26 16:18:59 UTC
Review of attachment 302342 [details] [review]:

obsoleted
Comment 29 Mathieu Duponchelle 2015-04-26 16:19:54 UTC
Review of attachment 302340 [details] [review]:

As answered, these test files don't work , can you review this again ?
Comment 30 Mathieu Duponchelle 2015-04-27 09:22:27 UTC
Created attachment 302418 [details] [review]
core: Add a Makefile.am in src/data

To have a gitignore generated there as well.
Comment 31 Bastien Nocera 2015-04-27 09:25:00 UTC
Review of attachment 302375 [details] [review]:

Sure.
Comment 32 Bastien Nocera 2015-04-27 09:25:24 UTC
Review of attachment 302376 [details] [review]:

Sure.
Comment 33 Bastien Nocera 2015-04-27 09:25:55 UTC
Review of attachment 302377 [details] [review]:

Looks good.
Comment 34 Bastien Nocera 2015-04-27 09:27:45 UTC
Review of attachment 302378 [details] [review]:

::: tests/python/testrunner.py
@@ +5,3 @@
 import sys
 
+exit (0)

Can you add a bug reference (eg. a new bug) for fixing the Python plugins?

Thinking about it, maybe those tests, which all require the filesystem plugin, would be better suited for grilo-plugins. That can be done separately.
Comment 35 Bastien Nocera 2015-04-27 09:28:00 UTC
Review of attachment 302380 [details] [review]:

Sure.
Comment 36 Bastien Nocera 2015-04-27 09:30:15 UTC
Review of attachment 302418 [details] [review]:

This would be better if the sources were also added to the new Makefile.am, instead of compiled from the parent directory (all the "data/" references in src/Makefile.am).

Probably good enough for now.
Comment 37 Mathieu Duponchelle 2015-04-27 09:45:03 UTC
Created attachment 302419 [details] [review]
core: Remove remaining references to GrlMetadataSource
Comment 38 Mathieu Duponchelle 2015-04-27 09:45:31 UTC
Created attachment 302420 [details] [review]
tests: make C tests run again

GrlMediaPlugin is now GrlSource.
Comment 39 Mathieu Duponchelle 2015-04-27 09:45:46 UTC
Created attachment 302421 [details] [review]
tests: Use GLib though introspection

+ And remove useless pygtk import.
Comment 40 Mathieu Duponchelle 2015-04-27 09:45:58 UTC
Created attachment 302422 [details] [review]
tests: Fix loading plugins
Comment 41 Mathieu Duponchelle 2015-04-27 09:46:10 UTC
Created attachment 302423 [details] [review]
tests: disable python tests

They fail for various reasons for now and we want make check to
pass.
Comment 42 Mathieu Duponchelle 2015-04-27 09:46:21 UTC
Created attachment 302424 [details] [review]
core: Add a Makefile.am in src/data

To have a gitignore generated there as well.
Comment 43 Mathieu Duponchelle 2015-04-27 09:46:31 UTC
Created attachment 302425 [details] [review]
core: generate gitgnore in libs/pls too
Comment 44 Bastien Nocera 2015-05-17 20:06:57 UTC
Review of attachment 302340 [details] [review]:

Sure then.
Comment 45 Bastien Nocera 2015-05-17 20:08:02 UTC
Review of attachment 302419 [details] [review]:

Looks good.
Comment 46 Bastien Nocera 2015-05-17 20:08:46 UTC
Review of attachment 302420 [details] [review]:

Sure.
Comment 47 Bastien Nocera 2015-05-17 20:10:04 UTC
Review of attachment 302421 [details] [review]:

Remove the "+" in the commit message, looks fine otherwise.
Comment 48 Bastien Nocera 2015-05-17 20:10:34 UTC
Review of attachment 302422 [details] [review]:

Looks good.
Comment 49 Bastien Nocera 2015-05-17 20:10:57 UTC
Review of attachment 302423 [details] [review]:

Sure.
Comment 50 Bastien Nocera 2015-05-17 20:11:54 UTC
Review of attachment 302424 [details] [review]:

If "make distcheck" still passes, then this looks good.
Comment 51 Bastien Nocera 2015-05-17 20:12:11 UTC
Review of attachment 302425 [details] [review]:

Yep.
Comment 52 Mathieu Duponchelle 2015-05-19 16:35:32 UTC
Created attachment 303608 [details] [review]
core: Remove remaining references to GrlMetadataSource
Comment 53 Mathieu Duponchelle 2015-05-19 16:36:55 UTC
The patch I reattached was breaking make distcheck, it is fixed now, make distcheck passes on my end with the commits I proposed in https://bugzilla.gnome.org/show_bug.cgi?id=749587, I'll just need a "go" and I'll push everything :)