dd-trace-py icon indicating copy to clipboard operation
dd-trace-py copied to clipboard

ci: leverage incremental build in hatch tests

Open gnufede opened this issue 5 months ago • 3 comments

CI: Enable incremental build (build cache) in hatch tests

Checklist

  • [ ] PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • [ ] Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

gnufede avatar Jun 19 '25 09:06 gnufede

CODEOWNERS have been resolved as:

.gitlab/tests.yml                                                       @DataDog/python-guild @DataDog/apm-core-python

github-actions[bot] avatar Jun 19 '25 09:06 github-actions[bot]

Bootstrap import analysis

Comparison of import times between this PR and base.

Summary

The average import time from this PR is: 278 ± 3 ms.

The average import time from base is: 279 ± 3 ms.

The import time difference between this PR and base is: -1.1 ± 0.1 ms.

Import time breakdown

The following import paths have shrunk:

ddtrace.auto 1.898 ms (0.68%)
ddtrace.bootstrap.sitecustomize 1.229 ms (0.44%)
ddtrace.bootstrap.preload 1.229 ms (0.44%)
ddtrace.internal.remoteconfig.client 0.626 ms (0.23%)
ddtrace 0.669 ms (0.24%)
ddtrace.internal._unpatched 0.026 ms (0.01%)
json 0.026 ms (0.01%)
json.decoder 0.026 ms (0.01%)
re 0.026 ms (0.01%)
enum 0.026 ms (0.01%)
types 0.026 ms (0.01%)

github-actions[bot] avatar Jun 19 '25 10:06 github-actions[bot]

Benchmarks

Benchmark execution time: 2025-06-19 12:32:01

Comparing candidate commit e6a4b29fb5c223287c50a059bca86d5eede7ac46 in PR branch gnufede/enable-incremental-build-hatch with baseline commit 04cdf7f5627e4fafec8113de8ecafb6da538ddba in branch main.

Found 0 performance improvements and 1 performance regressions! Performance is the same for 416 metrics, 3 unstable metrics.

scenario:iastaspectssplit-splitlines_aspect

  • 🟥 execution_time [+105.562ns; +138.602ns] or [+7.198%; +9.451%]

pr-commenter[bot] avatar Jun 19 '25 12:06 pr-commenter[bot]

This pull request has been automatically closed after a period of inactivity. After this much time, it will likely be easier to open a new pull request with the same changes than to update this one from the base branch. Please comment or reopen if you think this pull request was closed in error.

github-actions[bot] avatar Jul 23 '25 00:07 github-actions[bot]