Skip to content

Enable mypy on utils/onboarding/.* - #7637

Open
cbeauchesne wants to merge 2 commits into
mainfrom
cbeauchesne/mypy-onboarding
Open

Enable mypy on utils/onboarding/.*#7637
cbeauchesne wants to merge 2 commits into
mainfrom
cbeauchesne/mypy-onboarding

Conversation

@cbeauchesne

Copy link
Copy Markdown
Collaborator

Motivation

Changes

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • Anything but tests/ or manifests/ is modified ? I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added, removed or renamed?

@cbeauchesne
cbeauchesne requested review from a team as code owners September 2, 2026 15:10
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

pyproject.toml                                                          @DataDog/system-tests-core
tests/auto_inject/utils.py                                              @DataDog/injection-platform
utils/onboarding/backend_interface.py                                   @DataDog/system-tests-core
utils/onboarding/debug_vm.py                                            @DataDog/system-tests-core
utils/onboarding/injection_log_parser.py                                @DataDog/system-tests-core

else:
logger.info(f"Making a request to weblog {weblog_url}")
request_uuids.append(make_get_request(weblog_url))
warmup_weblog(f"http://{vm_ip}:{vm_port}/")

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.

Need a review here. warmup_weblog always returns None, so this Pr don't change the logic.

Though, the deleted code makes me thinks it's an error, and a bit of logic has been lost down the road.

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.

No, this piece is important is for very concrete case. We should not remove it

@cbeauchesne cbeauchesne Sep 2, 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.

Yes, that's my question. Right now, this code can't be reached, as warmup_weblog always returns None. That's why Claude removed it.

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.

the easy way is to test it. I'll launch the full pipeline

@datadog-official

datadog-official Bot commented Sep 2, 2026

Copy link
Copy Markdown

Tests

All CI checks and tests passed.

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: af27e68 | Docs | View more details | Give us feedback!

else:
logger.info(f"Making a request to weblog {weblog_url}")
request_uuids.append(make_get_request(weblog_url))
warmup_weblog(f"http://{vm_ip}:{vm_port}/")

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.

No, this piece is important is for very concrete case. We should not remove it

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