cache: refactor cache with targets and config
There are now 3 cache targets along with associated config options:
- cache.local
- cache.remote
- cache.source
cache.source is only enabled when VCS is available, other cache targets are unaffected by VCS and are enabled by default.
Caching apkg commands require following cache targets:
- make-archive: source
- get-archive: remote
- srcpkg: local (archive), source (templates unless --upstream)
- build: local (source package)
This leads to cache only being disabled for relevant commands working on project source when VCS isn't available as opposed to disabling all caching.
Logging was vastly improved to get useful cache information when using
apkg -L verbose $COMMAND
Docs were expanded with a new cache.md as well as upated with clearly worded requirements for working cache (VCS and proper make_archive_script).
Simple test on examples/minimal-no-git is included in ci/tests/test_apkg.py for testing operation without VCS.
Closes: #73 (closed)
Merge request reports
Activity
changed milestone to %v0.4
added cache enhancement refactor labels
assigned to @jruzicka
- Resolved by Jakub Ružička
added 12 commits
-
bef91811...7e476531 - 8 commits from branch
master
- ab4ccd18 - info: add new cache sub-command
- 35fad954 - examples: new minimal-no-git example
- 4613a21d - cache: get rid of cache_name, only use key
- 5b91ec14 - cache: add cache target support, config, and docs
Toggle commit list-
bef91811...7e476531 - 8 commits from branch
- Resolved by Jakub Ružička
added 8 commits
-
65384ea9...5cc0b0d7 - 3 commits from branch
master
- 9b6c990c - info: add new cache sub-command
- 8472974b - examples: new minimal-no-git example
- e9efea83 - cache: get rid of cache_name, only use key
- 2e72d249 - cache: extend hash_file to support multiple files
- 7598c34d - cache: add cache target support, config, and docs
Toggle commit list-
65384ea9...5cc0b0d7 - 3 commits from branch
added 8 commits
-
bbd15f94...3c365ec5 - 2 commits from branch
master
- 7cd4624c - info: add new cache sub-command
- fa842e06 - examples: new minimal-no-git example
- 890bdd21 - cache: get rid of cache_name, only use key
- ed67766f - cache: extend hash_file to support multiple files
- e9dcdc90 - cache: add cache target support, config, and docs
- bd3d5621 - examples/minimal-no-git: add nix packaging
Toggle commit list-
bbd15f94...3c365ec5 - 2 commits from branch
added 10 commits
-
b246f884...d7f203d0 - 4 commits from branch
master
- 92603864 - info: add new cache sub-command
- 51ed6a5d - examples: new minimal-no-git example
- 1a019a20 - examples/minimal-no-git: add nix packaging
- c1391f42 - cache: get rid of cache_name, only use key
- 7a642fe8 - cache: extend hash_file to support multiple files
- d982c681 - cache: refactor cache with targets and config
Toggle commit list-
b246f884...d7f203d0 - 4 commits from branch
- Resolved by Jakub Ružička
@vcunat I don't know how to properly add
setuptools
to nix jobs, please assistCI will fix itself once 0.4.0 is released and nix package is updated to 0.4.0, but I'd like this to work anyway, and I don't like merging with red jobs :-/
I'm gonna merge this on monday one way (green jobs) or another (yellow jobs with
allow_failure: true
) and hopefully release 0.4.0 as well.
added 8 commits
-
d982c681...6b36e320 - 2 commits from branch
master
- 6476ec74 - info: add new cache sub-command
- d0ba2cf2 - examples: new minimal-no-git example
- 924d9d74 - examples/minimal-no-git: add nix packaging
- 72762cd6 - cache: get rid of cache_name, only use key
- c5b69563 - cache: extend hash_file to support multiple files
- 7a014d05 - cache: refactor cache with targets and config
Toggle commit list-
d982c681...6b36e320 - 2 commits from branch
added 2 commits
unassigned @vcunat
added 7 commits
- b901ec83 - CI: fixup nixos-unstable-knot-* jobs
- 14e3fb5a - info: add new cache sub-command
- b8042126 - examples: new minimal-no-git example
- 171510e0 - examples/minimal-no-git: add nix packaging
- ae6e3a5a - cache: get rid of cache_name, only use key
- b457fc9d - cache: extend hash_file to support multiple files
- 26928982 - cache: refactor cache with targets and config
Toggle commit listmentioned in commit 0bf86282