Skip to content

[AZINTS-3609] Move quickstart script to new repo#6

Merged
dd-mergequeue[bot] merged 8 commits into
mainfrom
benjamin.johnsonstaub/azints-3609/setup-script-to-new-repo
Sep 22, 2025
Merged

[AZINTS-3609] Move quickstart script to new repo#6
dd-mergequeue[bot] merged 8 commits into
mainfrom
benjamin.johnsonstaub/azints-3609/setup-script-to-new-repo

Conversation

@benjjs
Copy link
Copy Markdown
Collaborator

@benjjs benjjs commented Sep 17, 2025

Motivation

We had it on our list of launch blockers to move the setup script to a public repo. In addition, we need this to live in the same place as the LFO setup script since we will be hooking it into the quickstart script shortly.

Summary

I've simply copied the setup script into this repo and added a few pieces of boilerplate to get (almost) parity with logging_install. For the folder and executable names, I've replaced the generic "setup" with "integration_quickstart" which seems a bit more descriptive.

The README.md sticks very closely to the format established by logging_install.

I've changed the python environment name discussed in the READMEs and referenced in vscode settings to azintegrationmanagement so that it can be shared across the azure setup projects in this repo. This is more convenient and also enforces that all azure setup projects should be runnable from the same environment.

Likewise, I've moved the vscode settings up a directory for similar reasons. I considered keeping it in both places, but this creates multiple sources of truth.

Some notable things not done here that we should do at some point:

  • Refactor the quickstart setup script into multiple files for developer sanity, since we are now zipapping it anyway
  • Add tests for the quickstart setup script

@datadog-official
Copy link
Copy Markdown

datadog-official Bot commented Sep 17, 2025

⚠️ Code Quality    ✅ Code Vulnerabilities    ✅ Library Vulnerabilities

⚠️ Warnings

🛠️ 1 Code quality issue detected

Low: python-best-practices/comment-fixme-todo-ownership TODO and FIXME comments must have ownership View rule
azure/integration_quickstart/src/azure_integration_quickstart/setup.py:462

ℹ️ Info

🛡️ No new code vulnerabilities
📚 No new vulnerable libraries detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 4acc567 | Docs | Was this helpful? Give us feedback!

az(
f'ad app permission add --id "{app_registration.client_id}" --api {MS_GRAPH_API} --api-permissions {" ".join([f"{role}=Role" for role in roles])}'
)
# TODO:
Copy link
Copy Markdown

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot Sep 17, 2025

Choose a reason for hiding this comment

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

🟡 Low: Code Quality Violation

Suggested change
# TODO:
# TODO(<owner>):
comments must have ownership (...read more)

When using TODO or FIXME, specify who write the annotation. It's a best practice to remind you who created the annotation and have potential context and information about this issue.

View in Datadog  Leave us feedback  Documentation

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.

@gpalmz do you remember when this comes up? Is it fixed or should we circle back on this before launch?

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.

I think we still need to circle back and just test all these scenarios. I don't know what the behavior of the command is tbh

Comment thread azure/integration_quickstart/src/setup.py Outdated
Comment thread azure/integration_quickstart/src/setup.py Outdated
Comment thread azure/integration_quickstart/src/setup.py Outdated
Comment thread azure/integration_quickstart/README.md Outdated
Comment thread azure/integration_quickstart/src/setup.py
@agulen
Copy link
Copy Markdown
Member

agulen commented Sep 17, 2025

I have some in-progress changes for python QoL since this will be a multi-project repo. Things like language server, mapping folder structure to test executions, etc. Will hold off on this until we chat with GCP and figure out what the shared model will look like

Copy link
Copy Markdown
Collaborator

@gpalmz gpalmz left a comment

Choose a reason for hiding this comment

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

Couple questions

@@ -0,0 +1,10 @@
{
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.

What's the deal with the vscode settings in the root directory? I notice there's mention of azure in there. Any reason not to consolidate further?

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.

There is in the interpreter path, which it seems to me should possibly be different for azure and other clouds if, for example, the cloud cli tools require different python versions.

Comment thread azure/integration_quickstart/pyproject.toml Outdated
az(
f'ad app permission add --id "{app_registration.client_id}" --api {MS_GRAPH_API} --api-permissions {" ".join([f"{role}=Role" for role in roles])}'
)
# TODO:
Copy link
Copy Markdown

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot Sep 17, 2025

Choose a reason for hiding this comment

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

🟡 Low: Code Quality Violation

Suggested change
# TODO:
# TODO(<owner>):
comments must have ownership (...read more)

When using TODO or FIXME, specify who write the annotation. It's a best practice to remind you who created the annotation and have potential context and information about this issue.

View in Datadog  Leave us feedback  Documentation

@benjjs benjjs force-pushed the benjamin.johnsonstaub/azints-3609/setup-script-to-new-repo branch from 941a78e to 4acc567 Compare September 19, 2025 21:54
@benjjs
Copy link
Copy Markdown
Collaborator Author

benjjs commented Sep 22, 2025

/merge

@dd-devflow-routing-codex
Copy link
Copy Markdown

dd-devflow-routing-codex Bot commented Sep 22, 2025

View all feedbacks in Devflow UI.

2025-09-22 20:28:46 UTC ℹ️ Start processing command /merge


2025-09-22 20:28:51 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 0s (p90).


2025-09-22 20:30:10 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue Bot merged commit 0f8a9cb into main Sep 22, 2025
3 checks passed
@dd-mergequeue dd-mergequeue Bot deleted the benjamin.johnsonstaub/azints-3609/setup-script-to-new-repo branch September 22, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants