- 18 Oct, 2020 12 commits
-
-
Carlos Garnacho authored
This function is now unused.
-
Carlos Garnacho authored
If we trust the event flow, we shall receive a delete/move event for that file in the future, so avoid handling it as a deletion here. Besides the "peek into the future" layering break, we just used this to see whether the file is a directory or not, we already have this info from TrackerFileNotifier, so forward it.
-
Carlos Garnacho authored
At the TrackerFileNotifier level, we just check that the file is in the TrackerFileSystem, even though it's not guaranteed that only eligible files will get there. Later on, we have checks at the TrackerMinerFS level to handle these move events we let through as if the destination file were new. We can let TrackerFileNotifier issue ::file-created instead of ::file-moved then. If we trust the event flow, we should not get move events for files that we didn't now about earlier (either previously from the database, or recently from events that were handled right before this one), so the checks at the TrackerMinerFS level become moot.
-
Carlos Garnacho authored
These functions are unused now.
-
Carlos Garnacho authored
This was purely for tracker_miner_files_is_file_eligible() checks. Since this function is gone, this can go away too.
-
Carlos Garnacho authored
Since commit 26f3ba3d, this is not as useful as it used to be. Since the previous commit, it's completely unused, can be dropped now.
-
Carlos Garnacho authored
This is also done deeper on in the TrackerFileNotifier/TrackerIndexingTree, we can avoid this specific check here.
-
Carlos Garnacho authored
This function is unused since commit 26f3ba3d.
-
Carlos Garnacho authored
This function is now unused.
-
Carlos Garnacho authored
The TrackerFileNotifier already knows this piece of info, so let it known via the signals, instead of letting the upper parts figure it out by themselves.
-
Carlos Garnacho authored
These aren't generally hot paths, adapt thing so that we can eventually drop TrackerFileSystem.
-
Carlos Garnacho authored
This is about the only place where we do actually rely on TrackerFileSystem using "const" pointers to the same GFile above TrackerFileNotifier. It's actually not that much of a hotspot, so use g_file_equal() here, and check it early in the function to make it easier to read.
-
- 13 Oct, 2020 1 commit
-
-
Sam Thursfield authored
functional-tests: Validate SPARQL as part of extractor tests Closes tracker#196 See merge request !277
-
- 12 Oct, 2020 3 commits
-
-
Carlos Garnacho authored
Next stable release will be 3.1.0.
-
Sam Thursfield authored
tracker-extract: Avoid the fluiddec gstreamer plugin Closes #101 See merge request !279
-
Sam Thursfield authored
libtracker-miner: Add missing ref to SPARQL buffer task Closes #130 See merge request !278
-
- 11 Oct, 2020 2 commits
-
-
Carlos Garnacho authored
This is a module that attempts to decode MIDI and send it to the soundcard. We don't want such access triggered from tracker-extract (and it's actually caught by our seccomp sandbox). Avoid this plugin altogether. Fixes: #101
-
Carlos Garnacho authored
On error paths, we let tracker_sparql_buffer_push_finish() still return the underlying TrackerTask, together with the error, so we can detach it properly. However, in this situation we are not adding an extra task ref, while the callback expects to own a reference. This causes refcounting issues and eventually invalid reads. Fixes: #130
-
- 09 Oct, 2020 5 commits
-
-
Sam Thursfield authored
The existing tests served to check that correct metadata was extracted. But if an extract module produced invalid SPARQL that would not be detected, until now. Fixes tracker#196
-
Sam Thursfield authored
When called with `--file --output-format=sparql`, it now correctly separates the FileDataObject and the InformationElement resources.
-
Sam Thursfield authored
While this is an API break, the API was added recently and I suspect it's not used yet. The old representation was a problem because the isStoredAs attribute, which we use to relate files with their contents, was being used to relate the bookmark to the website. Old output: INSERT DATA { <urn:link:https:%2F%2Fen.wikipedia.org%2Fwiki%2FTracker_(search_software)> a nie:DataObject , nfo:Website , nfo:FileDataObject ; nie:url "https://en.wikipedia.org/wiki/Tracker_(search_software)" . _:1 nie:title "Wikipedia Tracker" ; nie:isStoredAs <urn:link:https:%2F%2Fen.wikipedia.org%2Fwiki%2FTracker_(search_software)> . }; New output: INSERT DATA { <file:///home/sam/src/tracker-miners/tests/functional-tests/test-extraction-data/desktop/link-wikipedia-tracker.desktop> a nfo:FileDataObject . <https://en.wikipedia.org/wiki/Tracker_(search_software)> a nie:DataObject , nie:Website ; nie:url "https://en.wikipedia.org/wiki/Tracker_(search_software)" . _:1 a nfo:Bookmark ; nie:isStoredAs <file:///home/sam/src/tracker-miners/tests/functional-tests/test-extraction-data/desktop/link-wikipedia-tracker.desktop> ; nie:title "Wikipedia Tracker" ; nie:bookmarks <https://en.wikipedia.org/wiki/Tracker_(search_software)> . }; See !181 for original MR.
-
Sam Thursfield authored
tests: fix sched test under non glibc platforms See merge request !275
-
Sam Thursfield authored
This occured in the TestCase module, the "No test" is a placeholder docstring which serves no purpose. By moving init later, we can pass the name of the real test function, and there's no output.
-
- 05 Oct, 2020 1 commit
-
-
Rasmus Thomsen authored
As mentioned in tracker#170, glibc's sched_setscheduler is rather broken and pthread functionality should be used instead. musl only exposes a stub for sched_setscheduler for this reason. tracker already correctly sets the scheduler via pthread, but it didn't adjust the tests and as such the tests still failed on musl.
-
- 02 Oct, 2020 1 commit
-
-
Carlos Garnacho authored
-
- 01 Oct, 2020 1 commit
-
-
Sam Thursfield authored
Extraction and other fixes Closes #141 See merge request !273
-
- 30 Sep, 2020 11 commits
-
-
Carlos Garnacho authored
The tracker-extract service is no longer deemed a "miner", but its status is relevant to "tracker3 status" and "tracker3 daemon -f". As tracker-extract is really an "implementation detail", proxy this status via tracker-miner-fs, so these tools don't mislead if only tracker-extract is active.
-
Carlos Garnacho authored
This is wrongly set on the nie:InformationElement, not on the nfo:FileDataObject where it belongs. Causes SPARQL insertion errors for files with chromaprint tags. We were even testing for it wrong in the audio/flac-musicbrainz test, update the expected output there. Fixes: #141
-
Carlos Garnacho authored
This is already useful, and will be used further.
-
Carlos Garnacho authored
Bubble the error up from TrackerDecorator, and handle it like the other failures in tracker-extract, so the file is reported, but doesn't sit there waiting to be picked up for extraction again. Now that we have "tracker3 status" and "tracker3 status $pattern", we can patiently wait for user bug reports without melting the poles.
-
Carlos Garnacho authored
In some error paths, we'll want to put the SPARQL there.
-
Carlos Garnacho authored
We now don't have a log handler that redirects g_message()s anywhere, so they get to stdout/journal. This spew is most times unnecessary to look, so make it g_debug() so it requires G_MESSAGES_DEBUG=Tracker in place.
-
Carlos Garnacho authored
If one tries to "tracker3 reset -s" multiple times, the second time (tracker reset:56140): Tracker-CRITICAL **: 12:35:42.437: Location does not have a Tracker DB: Error opening directory '/home/carlos/.cache/tracker3/files/errors': No such file or directory will happen. Try to avoid this silly situation.
-
Carlos Garnacho authored
If "tracker3 status" is run while tracker-extract-3 is running, it looks enough of a miner to poke at it, but we get: (tracker status:53148): Tracker-CRITICAL **: 12:26:14.447: No D-Bus proxy found for miner 'org.freedesktop.Tracker3.Miner.Extract' Since the service is not listed in our special directory. Make TrackerMinerManager skip over unlisted matches, so we don't issue this warning. However, might be nice to carry the status/timing information from tracker-extract-3 to "tracker3 status". Probably carried over by tracker-miner-fs-3.
-
Carlos Garnacho authored
The tracker_common_enums_header element is not used (directly) in tracker-miners.
-
Yosef Or Boczko authored
-
Sam Thursfield authored
ci: Add coverage stage See merge request !272
-
- 29 Sep, 2020 1 commit
-
-
Carlos Garnacho authored
Like we have in the Tracker repo. Although the numbers are less spectacular.
-
- 25 Sep, 2020 2 commits
-
-
Carlos Garnacho authored
malloc_trim() is not available in musl libc Closes #135 See merge request !271
-
Sam Thursfield authored
So detect it and use it conditionally. Closes #135
-