Skip to content

[pull] master from DataDog:master#509

Merged
pull[bot] merged 7 commits into
ConnectionMaster:masterfrom
DataDog:master
Apr 29, 2026
Merged

[pull] master from DataDog:master#509
pull[bot] merged 7 commits into
ConnectionMaster:masterfrom
DataDog:master

Conversation

@pull

@pull pull Bot commented Apr 29, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

AAraKKe and others added 7 commits April 29, 2026 11:48
* Use uv as hatch installer for faster test environment setup

- ddev hatch plugin: set installer = 'uv' on every collected env (default,
  test, e2e, benchmark, latest, lint) and switch _dd-install-packages
  scripts to 'uv pip install'.
- Bump min hatch dependency to >=1.13 (first version with the uv installer).
- CI: add astral-sh/setup-uv and migrate the shared dependency cache from
  ~/.cache/pip to ~/.cache/uv (plus pip path for the Py2 branch). Workflows
  updated: cache-shared-deps, test-target, test-fips-e2e, docs, build-ddev.

* Bump virtualenv min in datadog-checks-dev[cli] to unblock hatch>=1.13

Modern hatch (1.10+, where the uv installer lives) requires
virtualenv>=20.26.1, but datadog_checks_dev[cli] was capping it at
<20.22.0 — a constraint added in 2023 to keep Py2 testing alive. Core
no longer tests Py2, and the [cli] extras already pull tools that don't
support Py2 anyway, so the upper bound was dead weight.

Also adds changelog entries for both packages.

* Add pip to uv-managed envs and switch hatch.toml pip calls to uv

uv-managed venvs don't seed pip the way virtualenv does. This breaks two
classes of in-env consumers:

- mypy --install-types in lint envs (auto-installs missing type stubs)
- python -m pip subprocess calls in tests / hatch.toml pre/post-install
  commands

Fixes:

- Add pip to lint env deps (for mypy) and to test/e2e env deps
  (defensively, for any test that subprocesses pip).
- Migrate the four hatch.toml files that explicitly used python -m pip
  (ddev, datadog_checks_dev, root docs env, kafka_consumer) to uv pip.

* Use canonical hyphenated distribution name for datadog-checks-tests-helper

uv builds this legacy setup.py-only package via setuptools.build_meta:__legacy__,
which writes the name verbatim into METADATA. With the underscored form
'datadog_checks_tests_helper', get_datadog_wheels() in datadog_checks_base
(filters by 'datadog-' prefix) didn't pick it up, breaking
test_get_datadog_wheels. Distribution names should use hyphens per PEP 503/625
anyway.

* Set UV_LINK_MODE=copy on Windows to allow venv cleanup

uv defaults to hardlink mode on Windows. When backports.zstd._zstd.pyd
(transitive of hatch>=1.13) is loaded by Python during the test run,
Windows refuses to delete the venv's hardlinked copy while the cache
copy is still pinned. This breaks hatch env remove invoked by
ddev test --compat / --recreate.

See astral-sh/uv#7918

* Scope UV_LINK_MODE=copy to Windows minimum-base-package only

Regular Windows test jobs do not invoke 'hatch env remove' at the end,
so they keep uv's hardlink speed-up. Only minimum-base-package jobs
(which run with --compat) need the copy mode to allow venv cleanup.

* Make sap_hana audit log test tolerant of venv binary name

The application_name field in HANA audit logs reflects the client
process name (argv[0]). uv-created venvs launch pytest as 'python3',
virtualenv-created venvs launch it as 'python'. Both are valid; the
integration just forwards whatever HANA reports. Use ANY instead of
asserting on the runner's binary name.

* Pin sap_hana audit log application_name to python3

uv-created venvs (which is what hatch>=1.13 uses with installer=uv)
launch pytest as python3, so HANA records the audit-log
application_name as python3 rather than python. Update the test to
match the new stable layout.

* Pin hatch and virtualenv in build-ddev workflow

Pin to specific versions for deterministic builds and stable cache reuse.
virtualenv stays on the 20.x line (latest 20.39.1) due to hatch issue #2193.

* Pin virtualenv to 21.3.0 to match hatch 1.16.5 requirements

hatch 1.16.5 declares virtualenv>=21 as a hard requirement (the
2026-02-25 virtualenv 21.0.0 release moved interpreter discovery to
the python-discovery package, fixed in hatch by pypa/hatch#2196).
The earlier 20.39.1 pin would have failed dependency resolution.
* Track pinned Python deps in workflows via Renovate

Add a custom regex manager that picks up 'name==X.Y[.Z]' patterns in
.github/workflows/*.yml and proposes Renovate PRs to bump them. Groups
all workflow Python deps under one weekly batch with a dedicated label.
PRs require human review (no auto-merge).

* Cover env-var pins via Renovate annotations and add CI validator

Codex review on PR #23511 noted that the regex manager only matches
literal name==X.Y.Z pins, missing two of the four pinned workflow
deps (pyoxidizer via the PYOXIDIZER_VERSION env var, and the ddev
fallback default in release-dispatch.yml).

- Annotate PYOXIDIZER_VERSION with '# renovate: datasource=pypi
  depName=pyoxidizer'.
- Refactor release-dispatch.yml to extract the default ddev version
  into a DEFAULT_DDEV_VERSION env var with the same annotation. The
  resolved install command is functionally equivalent.
- Extend renovate.json's customManager with a second matchString
  pattern that picks up annotated 'KEY: "X.Y[.Z]"' env values.
- Add validate-renovate-config.yml so CI fails if renovate.json ever
  becomes invalid.
* [Release] Bumped datadog_checks_dev version to 38.0.0

* [Release] Update metadata
* [Release] Bumped cisco_aci version to 4.14.2

* fix confilcts in check-base

* [Release] Bumped http_check version to 12.6.2

* [Release] Bumped ibm_was version to 5.5.1

* [Release] Bumped mac_audit_logs version to 1.4.1

* [Release] Bumped mysql version to 15.16.1

* [Release] Bumped sqlserver version to 23.0.1

* [Release] Bumped tls version to 5.6.2
* Bump datadog_checks_dev to 38.0.0

* Add changelog
@pull pull Bot locked and limited conversation to collaborators Apr 29, 2026
@pull pull Bot added the ⤵️ pull label Apr 29, 2026
@pull pull Bot merged commit ca18bb1 into ConnectionMaster:master Apr 29, 2026
12 of 15 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants