Skip to content

Wire pup CLI generation into the client generation pipeline#651

Open
dd-octo-sts[bot] wants to merge 1 commit into
mainfrom
datadog-api-spec/generated/6183
Open

Wire pup CLI generation into the client generation pipeline#651
dd-octo-sts[bot] wants to merge 1 commit into
mainfrom
datadog-api-spec/generated/6183

Conversation

@dd-octo-sts

@dd-octo-sts dd-octo-sts Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@dd-octo-sts dd-octo-sts Bot added the changelog/no-changelog Changes don't appear in changelog label Jul 17, 2026
@dd-octo-sts
dd-octo-sts Bot requested a review from a team as a code owner July 17, 2026 13:06
Comment thread src/auth/storage.rs
// On Linux, also perform a read probe so we fail fast when the
// Secret Service DBus name is unavailable and can fall back to file
// storage instead of erroring later during auth flows.
#[cfg(target_os = "linux")]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should probably keep this.

@dd-octo-sts
dd-octo-sts Bot force-pushed the datadog-api-spec/generated/6183 branch from 5646fcb to e41198f Compare July 17, 2026 13:44
Comment thread src/auth/storage.rs
.delete_credential()
.map_err(|e| anyhow::anyhow!("keychain probe cleanup failed: {e}"))?;
}
// On Linux, also perform a read probe so we fail fast when the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this will break linux keyring support

@dd-octo-sts
dd-octo-sts Bot force-pushed the datadog-api-spec/generated/6183 branch from e41198f to 3e70ac9 Compare July 17, 2026 14:17
@MintsInc

Copy link
Copy Markdown
Member

This PR is a WIP for integrating the generation from OpenAPI Specification. It is not in a review ready state yet.

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jul 20, 2026

Copy link
Copy Markdown

Pipelines

Unblock PR with BitsAI

⚠️ Warnings

🚦 2 Pipeline jobs failed

CI | Cross Compile (Linux)   View in Datadog   GitHub Actions

CI | WASM (WASI + Browser)   View in Datadog   GitHub Actions

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 6ee222f | Docs | Datadog PR Page | Give us feedback!

@dd-octo-sts
dd-octo-sts Bot force-pushed the datadog-api-spec/generated/6183 branch from 2d0edc0 to ee9f80e Compare July 20, 2026 12:40
rachelyangdog pushed a commit to rachelyangdog/pup that referenced this pull request Jul 20, 2026
openapi-transformer will regenerate pup CLI command modules from the
OpenAPI spec into src/generated.rs (see DataDog#651, the pilot run
for this pipeline). Land the wiring ahead of that so main.rs never needs
touching again on future regenerations: mod generated, flatten
GeneratedCommand into the Commands enum so generated subcommands appear
as top-level peers, and route the arm through main_inner() following the
existing per-domain pattern.

src/generated.rs here is a placeholder with an empty GeneratedCommand
enum, not DataDog#651's actual generated output - DataDog#651 hand-writes a top-level
downtime command (list/get/create/cancel) that collides on the
subcommand name with the generated Downtime variant it introduces
(clap panics at runtime: "command name `downtime` is duplicated"). That
collision needs a product decision - retire/merge the hand-written
downtime command, or pick a different pilot operation upstream - before
any generated variants land. This PR only establishes the scaffold; DataDog#651
becomes a pure additive diff to generated.rs (and new sibling modules)
once that decision is made.
@dd-octo-sts
dd-octo-sts Bot force-pushed the datadog-api-spec/generated/6183 branch 3 times, most recently from f3711d5 to 82722a2 Compare July 22, 2026 14:12
@dd-octo-sts
dd-octo-sts Bot force-pushed the datadog-api-spec/generated/6183 branch from 82722a2 to 6ee222f Compare July 23, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog Changes don't appear in changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants