Commit 92f9cba
ci(deploy-watch): trim the token, name what the credential actually is, and refuse to call an empty read healthy
The operator confirms the token IS a project token, so "wrong kind of token" was
the wrong diagnosis. Railway reports a token carrying one stray byte as flatly
"not found" — identical to the message for a wrong-type token — and a secret set
from a clipboard or a file is exactly where a trailing newline comes from. The
token is now trimmed before use, and its raw vs trimmed length is printed so a
whitespace problem is visible rather than inferred.
If the probe still fails it now retries the same credential as an account token
and reports whether Railway answers `me`, which distinguishes the two remaining
explanations by evidence instead of by argument.
Also included: an empty-service-list guard. Dropping `curl -f` to let the
diagnostic print meant a failed status query would return zero rows, match zero
FAILED services, and pass — a watchdog going green because it had gone blind.
That is the precise failure this workflow exists to catch, so an empty read is
now a hard error.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QwrqK15CtSW1sWAyEzopco1 parent 0d02999 commit 92f9cba
1 file changed
Lines changed: 36 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
55 | 68 | | |
56 | | - | |
57 | | - | |
| 69 | + | |
| 70 | + | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
61 | 74 | | |
62 | 75 | | |
63 | 76 | | |
64 | | - | |
65 | | - | |
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
69 | 80 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 81 | + | |
| 82 | + | |
76 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
77 | 92 | | |
78 | 93 | | |
79 | 94 | | |
| |||
82 | 97 | | |
83 | 98 | | |
84 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
85 | 111 | | |
86 | 112 | | |
87 | 113 | | |
| |||
0 commit comments