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 791259 - functional-tests: Port ExtractorParser to parse the output generated by TrackerResource
functional-tests: Port ExtractorParser to parse the output generated by Track...
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Tests
git master
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2017-12-05 12:39 UTC by Debarshi Ray
Modified: 2018-08-11 22:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Debarshi Ray 2017-12-05 12:39:11 UTC
This is a fallout from commit 8cc026da8cdeb or bug 767472.

Some of the functional tests run the tracker-extract binary directly with the --file parameter, and parse the output off stdout using ExtractorParser. However, the format of the output generated by TrackerResource has changed. The default output-format is now Turtle, but switching it to output SPARQL is not enough to get ExtractorParser to process it.

Earlier, it looked like:
  SPARQL pre-update:
  --
  <preupdate string>
  --

  SPARQL item:
  --
  <statements string>
  --

  ... and so on.

Nowadays, the SPARQL output looks like:
  DELETE {
     ...
  }
  WHERE
     ...
  }
  INSERT
     ...
  }

However, I can't figure out the exact contents of the earlier output because building older versions of Tracker fails with:
tracker-bus.vala:171.2-171.63: error: overriding method `Tracker.Bus.Connection.update_array_async' is incompatible with base method `Tracker.Sparql.Connection.update_array_async': Base method expected return type `GLib.GenericArray<Tracker.Sparql.Error?>?', but `GLib.GenericArray<GLib.Error?>?' was provided.
Comment 1 Sam Thursfield 2018-08-11 22:09:16 UTC
This is fixed in tracker-miners.git commit baf8b40e35895fabc1da4900b15b212e7949e5d8