mirror of
https://github.com/tiennm99/thptqg.git
synced 2026-10-12 20:16:00 +00:00
docs(ci): say what the database cache key does, not what it means
The key is hashFiles over data/**, parser/** and datasets.json, so it invalidates by path. Both the guide and the workflow comment described it by intent instead — "a web or docs change restores the databases" — which the previous commit disproved by paying for a full 348 MB rebuild to fix a comment in datasets.json and a sentence in parser/README.md. Over-invalidating is the safe direction, and narrowing the globs would mean remembering to extend them for every future path that can change a database. Record the trade rather than making it.
This commit is contained in:
1 parent
2c24943cc6
commit
c5ef1f58ff
2 files changed
+17
-7
No files matched your search
@@ -99,8 +99,13 @@ jobs:
|
||||
# Parsing 348 MB of spreadsheets is the slowest part of the job, and its
|
||||
# output is a pure function of the inputs in the key: the source files,
|
||||
# the parser (schema, transforms, configs) and the registry the row-count
|
||||
# and size guards read. Anything else — web code, docs, workflow — cannot
|
||||
# change a database, so those pushes restore one instead of rebuilding.
|
||||
# and size guards read. A push touching none of them — web code, docs/,
|
||||
# this workflow — restores a database instead of rebuilding one.
|
||||
#
|
||||
# The key is by path rather than by meaning, so it over-invalidates: a
|
||||
# comment in datasets.json or a word in parser/README.md pays for a full
|
||||
# rebuild. Narrowing the globs would trade minutes on a docs push for
|
||||
# having to remember every future path that can change a database.
|
||||
#
|
||||
# Exact matches only, with no restore-keys: a near-miss here would mean
|
||||
# publishing a database built from different inputs than the commit says.
|
||||
|
||||
Reference in new issue
Block a user