Commit 65969e4
jenkins: mkdir DOCKER_CONFIG in cgLogin Mode B, harden django smoke test
Two Copilot findings from the seventh pass on PR #330:
- cgLogin Mode B: mkdir -p "$DOCKER_CONFIG" eagerly even though we
don't write creds. cgSign/cgVerify always bind-mount it into a
sibling cosign container with `docker run -v "$DOCKER_CONFIG":...`;
if the dir doesn't exist the host docker daemon auto-creates it as
root, and a later switch to Mode A would then fail when chainctl
(uid 1000 inside the controller) tries to write a fresh config
there. Mode A/C already mkdir, only Mode B was missing it.
- python312-pip-django/app.py: add an explicit django.setup() and a
real (in-memory sqlite) DATABASES default. contrib.auth and
contrib.contenttypes declare models and can trigger AppRegistryNot
Ready / DB-config errors during app loading. The smoke test happens
to pass today because the hello view never touches the registry,
but the configuration is invalid per Django's contract — verified
the fixed app round-trips the Test-stage Client().get('/') call.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8b352b0 commit 65969e4
2 files changed
Lines changed: 34 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
24 | 40 | | |
25 | 41 | | |
26 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
| |||
0 commit comments