Skip to content

Preserve admin inputs and report partial operation failures - #913

Closed
Gajesh2007 wants to merge 4 commits into
fix/privy-otp-jsonfrom
refactor/operations-cli
Closed

Gajesh2007 wants to merge 4 commits into
fix/privy-otp-jsonfrom
refactor/operations-cli

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

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 pipefail so 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]
  end
Loading

Validation: 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. The tooling-test discovery added in #910 will include these tests automatically when both changes are combined.

@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 11, 2026 11:50pm UTC
d-inference-console-ui-dev Ready Ready Preview Sep 11, 2026 11:50pm UTC
d-inference-landing Ready Ready Preview Sep 11, 2026 11:50pm UTC

Request Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread deploy/provider-fleet/update-fleet.sh Resolved
Comment thread docs/developer/test.md Resolved
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-11T23:53:37.749422Z 96b4355 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread docs/developer/test.md Resolved
@Gajesh2007

Copy link
Copy Markdown
Member Author

Fixed in 96b4355. All three changed live guides are stamped against reachable implementing head cb8c6eb, and the build guide links the operations checks and runbook. Docs lint passes (278 pages). Source behavior is unchanged.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 96b4355ebb

ℹ️ 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".

@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1095 for review and merge into master. That PR contains this branch's exact head (96b4355), including its review fixes. Closing this smaller PR to collapse the stack; the branch and review history are retained. Follow #1095 for combined validation and merge status.

@Gajesh2007 Gajesh2007 closed this Sep 16, 2026

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference-console-ui-dev — 96b4355e Deployed Sep 11, 2026 by vercel[bot]
Preview – d-inference — 96b4355e Deployed Sep 11, 2026 by vercel[bot]
Preview – d-inference-landing — 96b4355e Deployed Sep 11, 2026 by vercel[bot]
benchmarks — 96b4355e Deployed Sep 11, 2026 by Gajesh2007 via E2E Benchmarks #987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant