Skip to content

Remove dynamic installation of KMT dependencies #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2025
Merged

Remove dynamic installation of KMT dependencies #38

merged 1 commit into from
Mar 5, 2025

Conversation

ofek
Copy link
Contributor

@ofek ofek commented Mar 5, 2025

Dependencies must be manually installed only after system requirements are met, see DataDog/datadog-agent#33587 (comment)


if no_dynamic_deps:
import sys

app.subprocess.replace_current_process([sys.executable, "-m", "invoke", *args])
return
Copy link
Contributor Author

Choose a reason for hiding this comment

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

My editor spotted that this is unreachable code based on the type annotations but I'm not sure why CI doesn't catch that, perhaps that has to be explicitly configured. I will investigate at a later time.

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.79%. Comparing base (4772009) to head (09382b6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   72.65%   72.79%   +0.14%     
==========================================
  Files          67       68       +1     
  Lines        1788     1790       +2     
  Branches      114      113       -1     
==========================================
+ Hits         1299     1303       +4     
+ Misses        447      446       -1     
+ Partials       42       41       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ofek ofek merged commit 893fcc2 into main Mar 5, 2025
25 checks passed
@ofek ofek deleted the ofek/kmt branch March 5, 2025 15:38
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