Commit f17c7be
authored
Concretization Cache: Refactor + manifest testing (#49589)
#48198 Introduces the concretization cache, and associated manifest. However,
it only added testing for the cache itself, not the manifest or cleanup procedures.
This PR:
- [x] Adds tests for the manifest and cleanup
- [x] Refactors the manifest to update correctly
- [x] Refactors the cache to store base32 hashes like the rest of Spack's hashes
- [x] gzips the cache entries for a smaller memory footprint
`FileCache` class was refactored into an abstract base `Cache` class which provides
the general cache read/write transaction interface, and a `FileCache` and
`DirectoryCache` child classes, `FileCache` which should be functionally identical to
the `FileCache` class pre refactor, deals with caches at the individual file level, and
`DirectoryCache`, which is mean to provide a directory level or "bucket" caching level.1 parent 53e5e20 commit f17c7be
13 files changed
Lines changed: 520 additions & 387 deletions
File tree
- etc/spack/defaults
- lib/spack
- docs
- llnl/util
- spack
- schema
- solver
- test
- concretization
- data/config
- util
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2892 | 2892 | | |
2893 | 2893 | | |
2894 | 2894 | | |
2895 | | - | |
| 2895 | + | |
2896 | 2896 | | |
2897 | 2897 | | |
2898 | 2898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 61 | | |
71 | 62 | | |
72 | 63 | | |
| |||
0 commit comments