| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| |
| |
| | |
Ignore saving half completed db
See merge request GNOME/tracker!457
|
| |
| |
| |
| | |
Replaced @ut.skip() by @ut.expectedFailure notation for tests that are not supported by tracker yet.
|
| |
| |
| |
| |
| | |
There were some tests that were skipped in ontology-changes.py file (most likely because tracker was not support them when they are written).
The @ut.skip notation is removed from the tests that are supported by tracker now.
|
| |
| |
| |
| |
| |
| |
| | |
The test case works by trying to create a database with a malformed ontology. Hence, the connection is expected to fail and no database is created.
Then, a new connection is created with a valid ontology. Hence, we ensure that the database is build correctly and it is not affected by the malformed ontology.
The next step is trying to update the ontology using another malformed ontology. It is expected to fail and the db is rolled back to its previous consistent state.
Finally, the database is updated using a valid ontology and we make sure that it is updated successfully without being affected by the malformed ontology update.
|
| | |
|
| |
| |
| |
| |
| | |
If an error happens while updating the existing ontologies, all changes that applied on the db schema will be rolled back and an error will propagate to the connection method.
The old behavior was showing warnings, applying some changes and discarding other changes.
|
| |
| |
| |
| | |
Prevents saving half completed database when the error happens while creating the database for the first time.
|
| |
| |
| |
| |
| |
| | |
Adds "first_time" field to TrackerDBManager class.
Removes "first_time" argument from tracker_db_manager_new() as we can access it through tracker_db_manager_is_first_time()
Later, the first_time field will be checked before deleting the newly created db when error occures during the creation process
|
|\ \
| | |
| | |
| | |
| | | |
libtracker-sparql: Check for the correct build CWD as subproject
See merge request GNOME/tracker!458
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When building Tracker as a subproject, the CWD at build time is still
that of the root project. We want to check this, instead of the
subproject build root.
This makes the remote module correctly detected in the build dir
when building Tracker as a subproject (as it happens in tracker-miners
CI).
|
|\ \
| |/
| |
| |
| |
| |
| | |
libtracker-sparql: Allow building against multiple versions of libsoup
Closes #320
See merge request GNOME/tracker!456
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tracker is an innocent bystander hindering libsoup3 port, since the
libsoup2/3->tracker->gtk3 dependency chain imposes a libsoup version,
graphical applications using libsoup cannot port at their own pace.
Make our remote code (connection & endpoint) be a private module
that is built against both versions of libsoup (if found), then we
pick one at runtime, with a preference on libsoup3 if libsoup2 .so
file is not seen in the already loaded libraries.
This patch should be reverted ASAP, once we can consider libsoup2
deprecated.
Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/320
|
|\
| |
| |
| |
| | |
Remove dependency on GModule
See merge request GNOME/tracker!454
|
|/
|
|
|
|
| |
This was used by tracker-extract which no longer lives in this repo.
https://gitlab.gnome.org/GNOME/tracker/-/issues/313
|
|\
| |
| |
| |
| | |
meson.build: fix building with libsoup3
See merge request GNOME/tracker!453
|
|/
|
|
| |
currently it requires soup2 to be installed even if building against soup3
|
|\
| |
| |
| |
| | |
Check style fixes.
See merge request GNOME/tracker!451
|
| |
| |
| |
| | |
So it's more easily visible.
|
| |
| |
| |
| | |
These have no code style to check.
|
| |
| |
| |
| |
| |
| | |
Checking the end line, we should account that the whole chunk was
already displaced by the code comment that turns uncrustify on, so
we are off by one here.
|
| |
| |
| |
| |
| |
| |
| | |
This avoids setting the uncrustify on/off code comments in the
middle of surrounding code, and maybe breaking their style on the
way. Reducing the context to 0 ensures these are right at the start
and end lines of the function.
|
|\ \
| |/
|/|
| |
| |
| |
| | |
Improve handling of consecutive single-valued property changes in the same batch
Closes tracker-miners#179
See merge request GNOME/tracker!450
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In these paths of TrackerResource insertion handling for single valued
properties, we schedule property deletion, but don't synchronize the
cache here. Clear the value array contents so future checks match.
This is the most direct cause of the warning seen at
https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/179, there
is a double CREATED event emission going on there, that due to
non-atomicity in the file creation operation has those TrackerResources
disagreeing in the nfo:fileSize for the file.
Being those 2 tracker_resource_set_*() operations, we schedule prior
deletes, but at the time of handling the second nfo:fileSize we'd
still be thinking there was a value left in the array, due to the lack
of sync.
Fixes: https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/179
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Due to TrackerResource insertion trying to avoid too frequent flushing,
we might end up with a single batch containing multiple single-valued
property delete+insert changes for the same resource/property. These
currently fail with "multiple values for single-valued property" errors
but that will be fixed in a followup commit.
If these got through, we would want to avoid telling SQLite about
these properties several times, e.g.:
INSERT OR REPLACE INTO ... (ID, "nfo:fileSize", "nfo:fileSize")
Since what happens then is unspecified (SQLite chooses to honor the
first value and ignore the second).
To fix this, check the already visited properties when generating
the INSERT/UPDATE statement for single-valued properties in a class
table, and ensure we stick to the last given value.
This avoids having to prematurely flush just to keep these two
changes separate, and coalesces things the right way (i.e. we end
up with the good, last value).
|
| |
| |
| |
| |
| | |
In the direct connection, add an early check for the task being
cancelled by the time it's going to be executed.
|
| |
| |
| |
| |
| | |
If the data manager is being closed, that will lead to crashes, propagate
an error instead. Crash seen occasionally running tracker-miner-fs-test.
|
|/
|
|
|
| |
This is a failable operation, so add a GError parameter and propagate
errors happening inside instead of warning in place.
|
|\
| |
| |
| |
| | |
Track current line and column numbers and handle missing prefix error
See merge request GNOME/tracker!447
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
It propagates an error from the expand_prefix function if the prefix is not found.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add the functionality of tracking the current line and column numbers of the turtle file being parsed.
These numbers will be used to specify the location of the parsing warning or error when happen.
The seek_input() function is added, so it can be used to advance in the ontology file.
Each time a token is parsed, the seek_input() function is called to skip the parsed token.
It counts the number of characters and new lines in the parsed token and it update the current line and column numbers according to them.
|
|\ \
| | |
| | |
| | |
| | | |
Fix style issue
See merge request GNOME/tracker!449
|
| | | |
|
| |/ |
|
|\ \
| |/
|/|
| |
| |
| |
| | |
tests: Disable GVFS in functional tests
Closes #314
See merge request GNOME/tracker!448
|
| |
| |
| |
| |
| | |
We get a new reference to the GDBusConnection here, so it should
be unref() after use.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On some of these tests, we create a per-testcase dbus environment,
thus rely on g_bus_get*() default connections to be correctly tear
down and created again for the next testcase.
GVFS does not seem to play along with this, and keeps the default
GDBusConnections alive between runs. This may fail with "Connection
already closed" if we attempted to get a default session/system bus
on later testcases, since the dbus daemon is actually tear down.
We actually don't need to pull GVFS here at all, so disable it
for our testcases to tiptoe the issue.
Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/314
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
ci: Build documentation when testing
Closes #310
See merge request GNOME/tracker!434
|
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes https://gitlab.gnome.org/GNOME/tracker/-/issues/310
We avoid building the docs on Alpine Linux as that doesn't work,
probably due to missing dependencies. See an example in:
https://gitlab.gnome.org/GNOME/tracker/-/jobs/1322163
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
libtracker-data: Add README about libtracker-data internals
See merge request GNOME/tracker!436
|
|/ /
| |
| |
| |
| | |
Add some current (so far!) documentation about implementation details
and design choices.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
docs: fix broken links in website
Closes #317
See merge request GNOME/tracker!446
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
directory urls no longer work by default, and `site_urls`
config option has be made compulsory config option, since version 1.2 of
Mkdocs and if `site_urls` option is not defined then `use_directory_urls` is set
to false leading to broken links
Mkdocs Release Notes: https://www.mkdocs.org/about/release-notes/#backward-incompatible-changes-in-12
Fixes: #317
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Add script to do code style checks
See merge request GNOME/tracker!442
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Use the new check-style script to check the code style for all
changes in a merge request, in order to suggest changes to conform
to it.
However, allow these checks to fail, so they are more of a hint
while the uncrustify configuration is tested to be correct, we
decide to enforce the style, etc.
As the script requires uncrustify, ensure it's installed in the
Fedora image, and use it to run the check.
|