Skip to content

Create dda tools ddgl setup/update commands - #316

Open
Ishirui wants to merge 8 commits into
mainfrom
pierrelouis.veyrenc/create-ddgl-setup-command
Open

Ishirui wants to merge 8 commits into
mainfrom
pierrelouis.veyrenc/create-ddgl-setup-command

Conversation

@Ishirui

@Ishirui Ishirui commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Addressing some feedback from ambassadors that ddgl was a little bit hard to install and configure properly :)

@Ishirui
Ishirui marked this pull request as ready for review October 6, 2026 08:17
@Ishirui
Ishirui requested a review from a team as a code owner October 6, 2026 08:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 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-10-06T08:20:51.219521Z 5994a30 Draft marked ready
ℹ️ 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.

@datadog-official

datadog-official Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 3.12%
• Overall Coverage: 70.85% (-0.53%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7451bed | Docs | Give us feedback!

@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: 5994a30140

ℹ️ 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 src/dda/cli/tools/ddgl/update/__init__.py
Comment thread src/dda/cli/tools/ddgl/setup/__init__.py Outdated
Comment thread src/dda/cli/tools/ddgl/setup/__init__.py
return

# Overwrite the existing file
ddgl_config_path.write_text(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does it make sense to have something that by default put ddtool related things in the config? That's an internal thing and would make it probably not working for any external contributor using it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sure, it's not ideal, but what would you suggest otherwise ? In order to make this easily usable by our internal contributors we need to put this "default config" somewhere, and it's always going to be opensource whether it's here or in datadog-agent :/

@Ishirui Ishirui Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

External contributors wouldn't have access to our gitlabCI anyway, so there is no way to make this work for them at all (in terms of developing on the Agent). If they want to use ddgl with other projects they probably wouldn't use dda to install it anyway, and use the instructions on ddgl's repo itself (uv tool install ddgl)

Does the simple mention of ddtool existing pose a security risk ? Because in that case it's already in the docs 😅

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah I do not think mentioning ddtool is an issue, and as you said it is already mentioned in a loooot of places.
I guess we can live with it. But what would be the impact of someone that cannot have ddtool installed running that command?
Not a blocker I think, this is mostly (only) used by us anyway

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

If they were to use dda tools ddgl setup, it would then fail on the first invocation of ddgl saying something about an invalid token or command not found.

That gives me an idea: I can just add a check for if ddtool is on PATH and immediately exit if not. I'll add that 👍

This branch has not been deployed

No deployments
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.

2 participants