-
Notifications
You must be signed in to change notification settings - Fork 417
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
chore: update hatch version and remove hatch-containers #10373
Conversation
|
Datadog ReportBranch report: ✅ 0 Failed, 141066 Passed, 1673 Skipped, 9h 11m 40.15s Total duration (1m 26.04s time saved) New Flaky Tests (4)
|
BenchmarksBenchmark execution time: 2024-08-26 21:37:10 Comparing candidate commit 73de7c3 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 353 metrics, 47 unstable metrics. |
This keeps failing on dd_coverage, something more fundamental is wrong looking at discussion on our slack regarding testrunner image |
Pull request was closed
c6c223d
to
0d4e88f
Compare
0037f4b
to
73de7c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some clarifying questions, otherwise LGTM
#10373 modified docker/Dockerfile but didn't trigger conftests circle ci test and merged. After the merge on main, conftests started to fail on main. 1. Fix it by specifying the python version on `hatch.toml`. This actually looks like a bug on hatch and for now setting the version to be 3.10 as circle ci docker image we use for conftests is based on python 3.10, and hatch seems to pick up the version when it's available. If not set, hatch installs 3.12 and results in this weird error, [failing to install ddtrace as it can't find clang compiler. ](https://app.circleci.com/pipelines/github/DataDog/dd-trace-py/70063/workflows/21549ae8-682f-4538-bd5a-b1b1077e5043/jobs/4254100) 2. Also updates suitespec generator gen_circleci_config.py calls `fnmatch.filter(changed_files, pattern)` to get the list of files matching pattern and look below. ``` ❯ python Python 3.12.5 (main, Aug 20 2024, 16:07:54) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import fnmatch >>> fnmatch.filter(["docker/Dockerfile"], "docker") [] >>> fnmatch.filter(["docker/Dockerfile"], "docker*") ['docker/Dockerfile'] ``` ## Checklist - [x] 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](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] 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](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) 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](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
1. Upgrade testrunner image to the one generated by #10373 2. testrunner now runs python 3.11.9 (upgraded from 3.11.3) and gevent isn't compatible with python 3.11.9, python/cpython#117983, so update the test to run when version < 3.11.9 3. Regenerate riot file for appsec_integrations using python 3.12, as outdated pydantic doesn't work with 3.12.4, see pydantic/pydantic#9637. This also resulted in updating pytest version and `setup_module` is used instead of `setup`. 4. Add `CMAKE_BUILD_PARALLEL_LEVEL` to a few places ## Checklist - [x] 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](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] 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](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) 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](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
Initially, started this PR to not use
pip install
to install hatch. hatch docs doesn't recommend installing hatch viapip
, as it could modify the Python environment in which you choose to install.I addressed some of them but not all.
Removing hatch-containers, which was used to build docs on local mac. It can now build docs natively by installing enchant, also running
hatch run docs:build
inscripts/ddtest
works too.Checklist
Reviewer Checklist