Commit 7776e88
committed
fix: address gemini-code-assist 12th review on PR #1
All 5 findings legitimate, all applied:
Defensive exception handling:
- collect_github._get_page: add ValueError to except. urlopen raises
it for malformed URLs ("unknown url type" etc.), e.g. a sources.yaml
entry with a missing scheme. [MEDIUM]
- collect_rss._fetch: same ValueError addition. [MEDIUM]
- score.score: wrap json.loads(normalized.json) in try/except. A
corrupt or truncated file (disk-full mid-write etc.) used to crash
the whole scoring step instead of leaving the previous scored.json
in place. [MEDIUM]
- report.render: same try/except around json.loads(scored.json).
[MEDIUM]
Stale guidance:
- new-track.sh: the "next steps" message still told users to edit
TRACKS in the root Makefile, but Makefile now auto-discovers tracks
via `wildcard tracks/*/`. Updated to point at the two places that
do still need a manual update for a new track:
.github/workflows/{daily-update,weekly-digest}.yml matrix.track
web/src/lib/data.ts TRACKS const
with a footnote that the root Makefile is auto. [MEDIUM]1 parent 1eaebb6 commit 7776e88
5 files changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments