Repository navigation
Preserve admin inputs and report partial operation failures - #913
Gajesh2007 wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d709d382cc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
7d3d183 to
25f4bae
Compare
5b7599a to
cb8c6eb
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb8c6ebf91
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Operations helpers could corrupt quoted admin input, report a successful fleet update after SSH failures, and overwrite another smoke run's response file. Encode the admin's JSON values once, preserve literal backslashes during input, collect fleet failures while still visiting every host, and give each authenticated smoke run its own temporary response file with exit cleanup.
The fleet updater now uses remote
pipefailso a failed download also fails the host update, and exits 1 after any failed host; its existing production opt-in check remains. Login tests deliberately receive no token and stop before writing one. The raw admin API command continues to accept caller-provided JSON.flowchart LR subgraph Before A[Admin input] --> B[Interpolated JSON: quotes and backslashes alter fields] C[Fleet SSH attempts] --> D[Log failures, then exit success] E[Smoke request] --> F[Shared /tmp/smoke-chat.json] end subgraph After G[Same admin input] --> H[json_body: encode field values] I[Same fleet attempts] --> J[Visit all hosts; nonzero result if any failed] K[Smoke request] --> L[Unique owned response file; cleanup on exit] endValidation: four operation-contract tests pass using stub curl/SSH executables. The admin quoting and fleet-result regressions reproduce on master. Smoke tests prove distinct paths across runs and cleanup after failed responses. Shell syntax, docs lint and whitespace checks pass. Tests perform no network request, fleet update or credential write.
Stacked on the complementary server-side OTP JSON fix #905 (
fix/privy-otp-json). No deployment was performed. Thetooling-testdiscovery added in #910 will include these tests automatically when both changes are combined.