Verify¶
python -m qcstore verify URI [--repair]
Check a store's files: records complete and consistent, blobs intact, pointers right.
Report
dataclass
¶
Report(
keys: int = 0,
runs: int = 0,
incomplete: list[str] = list(),
problems: list[str] = list(),
repaired: list[str] = list(),
)
What verify found.
Attributes:
| Name | Type | Description |
|---|---|---|
keys |
int
|
Calculations checked. |
runs |
int
|
Complete runs checked. |
incomplete |
list[str]
|
Runs without |
problems |
list[str]
|
Everything wrong, one message each. |
repaired |
list[str]
|
Pointers rewritten (with |
verify
¶
Check every run of every calculation in a store.
For each complete run: its record names its key and run, its output loads (every
blob and array file matching its sha256), the key recomputed from its input is the
key it is filed under, its output names its identities, and each of its carries'
files matches its sha256. For each
key: current.json names the runs the rules prefer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
store
|
Store
|
The store. |
required |
repair
|
bool
|
Rewrite each |
False
|
Returns:
| Type | Description |
|---|---|
Report
|
The report. |
Source code in src/qcstore/verify.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |