Commit Graph

850 Commits

Author SHA1 Message Date
Fabio Erculiani d58550306f [entropy.core] __setup_package_sets_vars: drop access() usage 2013-09-07 13:36:47 +02:00
Fabio Erculiani 61f12d5599 [entropy.core] __setup_const: drop access() usage 2013-09-07 13:30:40 +02:00
Fabio Erculiani 7e4bc4d98d [entropy.server] fix drained_dependencies_test() output when data is cached 2013-09-07 07:55:04 +02:00
Fabio Erculiani e929e6f440 Release Entropy 216 2013-08-12 15:38:07 +02:00
Fabio Erculiani e9c9b0e7de [entropy.client] fix _generate_reverse_dependency_tree cache generation
matched_atoms is a list of tuples.
2013-08-12 15:36:26 +02:00
Fabio Erculiani 7a02df16a1 Release Entropy 215 2013-08-10 11:48:19 +02:00
Fabio Erculiani 98b5afaf2b [entropy.*] call EntropyRepository.checksum() without strings= 2013-08-10 11:47:56 +02:00
Fabio Erculiani 8604b84280 Release Entropy 214 2013-08-10 11:45:29 +02:00
Fabio Erculiani e4d5eba18e [entropy.security] drop hash() usage through the module
Replace hash() usage with SHA1 for improved reliability.
2013-08-10 11:40:40 +02:00
Fabio Erculiani b5d7dfeb90 [entropy.db] drop strings= keyword arg from checksum()
This is no longer in use.
2013-08-10 11:33:02 +02:00
Fabio Erculiani 2f4884a4ad [entropy.client] check_package_update: rewrite cache key generation code
We now rely on SHA1 rather than hash() and string magic, which is
likely to give us a lot more collisions.
2013-08-10 11:23:03 +02:00
Fabio Erculiani 74993fa2e1 [entropy.client] _generate_reverse_dependency_tree: rewrite cache key generation code
We now rely on SHA1 rather than hash() and string magic, which is
likely to give us a lot more collisions.
2013-08-10 11:19:22 +02:00
Fabio Erculiani d73cbeb75d [entropy.client] tentatively remove __validate_atom_match_cache()
Now that we rely on a better hashing algorithm, with bigger hash
values, it might be interesting to see if __validate_atom_match_cache()
is still needed.
2013-08-10 11:11:39 +02:00
Fabio Erculiani eeb079b2e9 [entropy.client] atom_search: rewrite cache key generation code
We now rely on SHA1 rather than hash() and string magic, which is
likely to give us a lot more collisions.
2013-08-10 11:10:44 +02:00
Fabio Erculiani a324556358 [entropy.client] atom_match: rewrite cache key generation code
We now rely on SHA1 rather than hash() and string magic, which is
likely to give us a lot more collisions.
2013-08-10 11:00:30 +02:00
Fabio Erculiani cfaece4095 [entropy.server] do not use const_get_caller(), which is buggy 2013-08-10 07:55:46 +02:00
Fabio Erculiani e96b1643b5 [entropy.server] removed_reverse_dependencies_test: highlight removed pkgs 2013-08-08 21:38:37 +02:00
Fabio Erculiani 4647541d30 [entropy.spm] PortagePlugin.installed_mtime: consider parent dir mtime 2013-07-30 12:32:40 +02:00
Fabio Erculiani 0f9a34133a Release Entropy 213 2013-07-30 10:42:02 +02:00
Fabio Erculiani f3d8d34233 [entropy.server] extended_dependencies_test: use SpmPlugin.installed_mtime()
Cache validation must use SpmPlugin.installed_mtime() as part of the
cache key when Spm() installed packages repository is used.
2013-07-30 10:39:46 +02:00
Fabio Erculiani bb59c1b010 [entropy.spm] SpmPlugin: add installed_mtime() public method, bump API 2013-07-30 10:33:37 +02:00
Fabio Erculiani 5e722e62a7 [entropy.server] nit: drop useless empty line 2013-07-30 10:33:13 +02:00
Fabio Erculiani ca4a27f8f9 Release Entropy 212 2013-07-29 18:40:17 +02:00
Fabio Erculiani 718a474a76 [entropy.spm] PortagePlugin: pass fd_pipes to doebuild()
This will redirect portage.doebuild() output to our log file
2013-07-29 18:39:18 +02:00
Fabio Erculiani 3eb52ffda9 [entropy.client] shutdown: make sure to sync() caches before destroy() 2013-07-24 16:42:07 +02:00
Fabio Erculiani b00259a1dc [entropy.server] extended_dependencies_test: use checksum(include_dependencies=True) 2013-07-24 16:22:17 +02:00
Fabio Erculiani db8cc4abfb [entropy.db] EntropyRepository.checksum: add "include_dependencies" argument
include_dependencies can be used to include dependencies information
into the computed checksum.
2013-07-24 16:21:25 +02:00
Fabio Erculiani 2c06899eb3 [entropy.server] extended_dependencies_test: add disk caching
The test phase is called frequently in both commit and push phases.
However, between commit and push there are no changes to the repository
database content and caching out this test greatly improves speed.
2013-07-24 16:02:43 +02:00
Fabio Erculiani af0acdbaf4 [entropy.server] refactor dependencies_test() and _deps_tester() 2013-07-24 15:30:42 +02:00
Fabio Erculiani 52bb429773 [entropy.server] extended_dependencies_test: add use_cache parameter 2013-07-24 15:11:35 +02:00
Fabio Erculiani 16809d5df8 [entropy.server] injected_library_dependencies_test: add status output back 2013-07-24 15:08:54 +02:00
Fabio Erculiani c8c07ab833 [entropy.server] drained_dependencies_test: add disk caching
The test phase is called frequently in both commit and push phases.
However, between commit and push there are no changes to the repository
database content and caching out this test greatly improves speed.
2013-07-24 14:53:27 +02:00
Fabio Erculiani 41883ea305 [entropy.server] drained_dependencies_test: split method into two
This allows for easier caching implementation
2013-07-24 12:09:59 +02:00
Fabio Erculiani 68d41fd6e6 [entropy.server] drop verbose output messages in deptest functions 2013-07-24 12:00:51 +02:00
Fabio Erculiani 2d1761677e [entropy.server] removed_reverse_dependencies_cache: add disk caching
The test phase is called frequently in both commit and push phases.
However, between commit and push there are no changes to the repository
database content and caching out this test greatly improves speed.
2013-07-24 11:54:43 +02:00
Fabio Erculiani 91b9c4ead7 [entropy.server] injected_library_dependencies_test: add disk caching
The test phase is called frequently in both commit and push phases.
However, between commit and push there are no changes to the repository
database content and caching out this test greatly improves speed.
2013-07-24 11:09:39 +02:00
Fabio Erculiani 9aeae36585 [entropy.server] add _cache_prefix()
_cache_prefix() will be used for computing a fixed and function
dependent cache key prefix that contains the module name, class name
and method name (retrieved via const_get_caller()).
2013-07-24 11:09:03 +02:00
Fabio Erculiani b355a868b0 [entropy.const] const_get_caller(): make it work inside test modules 2013-07-24 10:54:53 +02:00
Fabio Erculiani d6802a2703 [entropy.cache] EntropyCacher: promote methods to @classmethod 2013-07-24 10:34:54 +02:00
Fabio Erculiani fc12c7942f [entropy.server] do not force disable xcache
This hopefully makes possible to use EntropyCacher in entropy.server
as well.
2013-07-24 10:26:40 +02:00
Fabio Erculiani 0df198c976 Release Entropy 211 2013-07-22 10:59:54 +02:00
Fabio Erculiani e727ec7719 [entropy.server] fix syntax error caused by the last commit 2013-07-17 12:00:56 +02:00
Fabio Erculiani fa4cee147e [entropy.server] removed_reverse_dependencies_test: only consider qa_repositories() 2013-07-17 12:00:11 +02:00
Fabio Erculiani 8336ca0f47 [entropy.server,conf] add support for exclude-qa repo config parameter
"exclude-qa", if true, makes possible to exclude a repository from
non-disruptive QA tests executed on it while managing another repository.
This is useful for supporting sabayon-weekly cherry-picks
2013-07-17 11:28:11 +02:00
Fabio Erculiani aefbb2d665 [entropy.server,eit] add support for eit push --force 2013-07-17 10:51:52 +02:00
Fabio Erculiani 4e482dc339 [entropy.transceivers] do not mandate to test the connection on __init__()
Besides making context support complex, it doesn't do any good because
connectivity errors are generally transient anyway (apart from misconfigs).
2013-07-17 09:47:28 +02:00
Fabio Erculiani 73bf33161c [entropy.server.db] ServerRepositoryStatus: add reset() method 2013-07-16 16:06:40 +02:00
Fabio Erculiani 7dbdbb1491 [entropy.client] better name _clear_resources_live_cache
The new name is _clear_resources_after_lock. docstring has been
updated as well.
2013-07-16 16:05:56 +02:00
Fabio Erculiani 4883d8f86e Release Entropy 210 2013-07-16 15:07:02 +02:00
Fabio Erculiani b4c8f69c3d [entropy.server] tentatively fix injected/trashed packages in scan_package_changes
It turns out that packages were never accounted for being marked as
injected because the trashed vs injected priority was wrong.
This commit is supposed to fix this, but more real-world testing should
be done.
2013-07-16 15:01:34 +02:00