Commit f5a5cb4
committed
Refuse to deploy a package missing a vendored module
A manual deploy today shipped the new lambda_function.py with a package built
from the old requirements.txt. The zip had no 'github' module, so every
invocation died at import with Runtime.ImportModuleError -- dropping all
webhook payloads, not just the log downloads -- until it was rolled back.
make prepare now starts from clean so a stale packages/ or zip cannot leak
into the artifact, and verifies the built zip actually contains every module
lambda_function.py imports before deploy can run.
Also flag in the README that make deploy is immediately live: the API Gateway
integration points at the unqualified function, so update-function-code goes
straight to $LATEST. The publish-a-version steps in that doc no longer match
how this is wired.1 parent d5aa1c5 commit f5a5cb4
2 files changed
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
2 | 10 | | |
3 | 11 | | |
4 | | - | |
| 12 | + | |
| 13 | + | |
5 | 14 | | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
9 | 18 | | |
10 | | - | |
11 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
12 | 29 | | |
13 | 30 | | |
14 | | - | |
| 31 | + | |
15 | 32 | | |
16 | 33 | | |
17 | | - | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
0 commit comments