-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into munir/get-rid-of-require-modules-integrations
- Loading branch information
Showing
482 changed files
with
36,615 additions
and
4,128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
name: Generate Supported Integration Versions | ||
|
||
on: | ||
workflow_dispatch: # can be triggered manually | ||
|
||
jobs: | ||
generate-supported-versions: | ||
name: Generate supported integration versions | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
actions: read | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup Python 3.7 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Setup Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Setup Python 3.9 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Setup Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Setup Python 3.13 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.13" | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libmariadb-dev | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install packaging | ||
pip install requests | ||
pip install riot==0.20.1 | ||
pip install wrapt==1.16.0 | ||
- name: Install ddtrace | ||
run: | | ||
pip install -e . | ||
- run: python scripts/freshvenvs.py generate | ||
|
||
- name: Generate table | ||
run: python scripts/generate_table.py | ||
|
||
- run: git diff | ||
|
||
- name: Create Pull Request | ||
id: pr | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: "update-supported-versions" | ||
commit-message: "Update supported versions table" | ||
delete-branch: true | ||
base: main | ||
title: "chore: update supported versions" | ||
labels: changelog/no-changelog | ||
body: | | ||
Generates / updates the supported versions table for integrations. | ||
This should be tied to releases, or triggered manually. | ||
Workflow runs: [Generate Supported Integration Versions](https://github.com/DataDog/dd-trace-py/actions/workflows/generate-supported-versions.yml) | ||
## 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 | ||
- [ ] 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Pytorch Unit Tests (with GPU) | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'mq-working-branch**' | ||
paths: | ||
- 'ddtrace/profiling/collector/pytorch.py' | ||
pull_request: | ||
paths: | ||
- 'ddtrace/profiling/collector/pytorch.py' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: APM-4-CORE-GPU-LINUX | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Include all history and tags | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.12' | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Install latest stable toolchain and rustfmt | ||
run: rustup update stable && rustup default stable && rustup component add rustfmt clippy | ||
|
||
- name: Install hatch | ||
uses: pypa/hatch@install | ||
with: | ||
version: "1.12.0" | ||
|
||
- name: Install PyTorch | ||
run: pip install torch | ||
|
||
- name: Run tests | ||
run: hatch run profiling_pytorch:test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.