mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 16:41:35 +01:00
/ship's review no longer stops when Capy's drive sync database grows past 100 MB (GST-3359) (#4606)
The review's download sweep now ignores Capy's own drive sync database (`state.db` and its SQLite side files under `~/.capy/drive-engine`). Why: that database grew past 100 MB during a review stage on a Capy machine, the sweep took it for a reader's download, and the pass blocked every later stage while the file existed. Nothing to do: any other download of 100 MB or more, under `~/.capy/drive-engine` or `~/.capy/work` included, still counts. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/adversarial-native#1 reader=adversarial-native
This commit is contained in:
1 parent
baef51fe0e
commit
cc0896560a
5 files changed
+74
-2
No files matched your search
@@ -799,7 +799,11 @@ The rule is enforced per stage. Before a stage's readers start, the pass program
|
||||
runs `gstack-review-dispatch sweep --phase start`, an inventory of git
|
||||
repositories and files of 100 MB or more under the workspace, home and the temp
|
||||
dir (bounded at depth 6, 200,000 entries and 20 seconds; past a bound the sweep
|
||||
is `partial`, a note). After the stage's last reader is collected,
|
||||
is `partial`, a note). On Capy it never walks `~/.capy/drive` (the mounted
|
||||
drives), and under `~/.capy/drive-engine` it ignores only the drive sync
|
||||
engine's own database files (`state.db` and its `-wal`, `-shm` and `-journal`
|
||||
files), which grow on their own and once crossed 100 MB mid-stage. Everything
|
||||
else there, `~/.capy/work` and every other path are walked. After the stage's last reader is collected,
|
||||
`--phase end` diffs against it. A new repository with a network remote, or a
|
||||
new big file, is a violation. Every reader of that stage is quarantined (reply
|
||||
under `<out>/quarantine/`, findings out of `merged.jsonl`, never shown to the
|
||||
|
||||
@@ -4276,6 +4276,10 @@ returned output or PR text. `verify` prints `FETCH_VIOLATION:` and refuses
|
||||
until the stage has rerun and swept clean. A test run's fixtures (a root
|
||||
carrying `.gstack-test-fixture`, or a repository whose remote resolves to a local
|
||||
path through `url.<base>.insteadOf`) print `FETCH_IGNORED:` and never count.
|
||||
Capy's `~/.capy/drive` is never walked, and the drive sync database under
|
||||
`~/.capy/drive-engine` (`state.db` and its `-wal`, `-shm` and `-journal` files)
|
||||
is ignored, so that database growing past 100 MB is not a violation. Any other
|
||||
new big file or repository under `~/.capy/drive-engine` still is.
|
||||
|
||||
**Fix.** Nothing to rerun by hand: the pass plans one fresh attempt per slot
|
||||
(`RERUN:`, readers named `<reader>#2`; not a review round) and the pass program
|
||||
|
||||
Reference in new issue
Block a user