Skip to content

Commit

Permalink
Merge branch 'main' into sanchda/make_contextvars_indirect
Browse files Browse the repository at this point in the history
  • Loading branch information
taegyunkim authored Oct 8, 2024
2 parents 36c4835 + f757fbf commit 0712bbc
Show file tree
Hide file tree
Showing 114 changed files with 890 additions and 526 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
# before merging/releasing
- build_deploy*
- 'upgrade-latest-*'
- 'mq-working-branch**'
pull_request:
release:
types:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build_python_3.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Build Python 3

on:
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]
workflow_call:
inputs:
cibw_build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
analyze:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/django-overhead-profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
paths:
- 'ddtrace/**'
- 'scripts/profiles/django-simple/**'
- '.github/workflows/django-overhead-profile.yml'
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
django-overhead-profile:
runs-on: ubuntu-latest
env:
PREFIX: ${{ github.workspace }}/prefix
DD_CODE_ORIGIN_FOR_SPANS_ENABLED: "1"
defaults:
run:
working-directory: ddtrace
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/encoders-profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
paths:
- 'ddtrace/internal/_encoding.pyx'
- 'scripts/profiles/encoders/**'
- '.github/workflows/encoders-profile.yml'
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
encoders-profile:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/flask-overhead-profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
paths:
- 'ddtrace/**'
- 'scripts/profiles/flask-simple/**'
- '.github/workflows/flask-overhead-profile.yml'
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
flask-overhead-profile:
runs-on: ubuntu-latest
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/pypa_musllinux_1_2_i686.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ on:
push:
branches:
- 'main'
- 'mq-working-branch**'
paths:
- 'docker/**'
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
build-and-publish:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/requirements-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
types: [opened, reopened, synchronize]
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
validate:
name: Check requirements lockfiles
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
pull_request:
paths:
- src/**
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
check:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
workflow_dispatch: {}
schedule:
- cron: '00 04 * * 2-6'
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
system-tests-build-agent:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test_frameworks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/testrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ on:
push:
branches:
- 'main'
- 'mq-working-branch**'
paths:
- 'docker/**'
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
build-and-publish:
Expand Down
23 changes: 5 additions & 18 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,25 @@ on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
workflow_dispatch: {}
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]

jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
archs: x86_64 i686
#- os: arm-4core-linux
# archs: aarch64
- os: windows-latest
archs: AMD64 x86
- os: macos-latest
archs: arm64
os: [ubuntu-latest, windows-latest, macos-latest]
# Keep this in sync with hatch.toml
python-version: ["3.7", "3.10", "3.12"]
steps:
- uses: actions/checkout@v4
# Include all history and tags
with:
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
Expand All @@ -46,4 +33,4 @@ jobs:
version: "1.12.0"

- name: Run tests
run: hatch run ddtrace_unit_tests:test
run: hatch run +py=${{ matrix.python-version }} ddtrace_unit_tests:test
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,21 @@ ddtrace/_version.py
artifacts/

# IAST cpp
ddtrace/appsec/_iast/_taint_tracking/cmake_install.cmake
ddtrace/appsec/_iast/_taint_tracking/CMakeCache.txt
ddtrace/appsec/_iast/_taint_tracking/Makefile
ddtrace/appsec/_iast/_taint_tracking/cmake-build-debug/*
ddtrace/appsec/_iast/_taint_tracking/_deps/*
ddtrace/appsec/_iast/_taint_tracking/CMakeFiles/*

ddtrace/appsec/_iast/_taint_tracking/tests/CMakeFiles/*
ddtrace/appsec/_iast/_taint_tracking/tests/cmake_install.cmake
ddtrace/appsec/_iast/_taint_tracking/tests/CMakeCache.txt
ddtrace/appsec/_iast/_taint_tracking/tests/Makefile
ddtrace/appsec/_iast/_taint_tracking/tests/CTestTestfile.cmake
ddtrace/appsec/_iast/_taint_tracking/tests/native_tests*
ddtrace/appsec/_iast/_taint_tracking/_vendor/pybind11/Makefile
ddtrace/appsec/_iast/_taint_tracking/_vendor/pybind11/CMakeFiles/*
ddtrace/appsec/_iast/_taint_tracking/_vendor/pybind11/cmake_install.cmake
# CircleCI generated config
.circleci/config.gen.yml

Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ package-oci:
onboarding_tests_installer:
parallel:
matrix:
- ONBOARDING_FILTER_WEBLOG: [test-app-python,test-app-python-container,test-app-python-alpine-libgcc]
- ONBOARDING_FILTER_WEBLOG: [test-app-python,test-app-python-container,test-app-python-alpine]


onboarding_tests_k8s_injection:
Expand Down
6 changes: 3 additions & 3 deletions .riot/requirements/112dc22.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ databases==0.8.0
exceptiongroup==1.2.2
greenlet==3.0.3
h11==0.14.0
httpcore==1.0.5
httpcore==1.0.6
httpx==0.27.2
hypothesis==6.45.0
idna==3.9
idna==3.10
importlib-metadata==8.5.0
iniconfig==2.0.0
mock==5.1.0
Expand All @@ -35,7 +35,7 @@ sniffio==1.3.1
sortedcontainers==2.4.0
sqlalchemy==1.4.54
starlette==0.14.2
tomli==2.0.1
tomli==2.0.2
typing-extensions==4.12.2
urllib3==2.2.3
zipp==3.20.2
6 changes: 3 additions & 3 deletions .riot/requirements/115aba5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# This file is autogenerated by pip-compile with Python 3.7
# by the following command:
#
# pip-compile --config=pyproject.toml --no-annotate --resolver=backtracking .riot/requirements/115aba5.in
# pip-compile --allow-unsafe --config=pyproject.toml --no-annotate --resolver=backtracking .riot/requirements/115aba5.in
#
async-timeout==4.0.3
attrs==23.2.0
attrs==24.2.0
coverage[toml]==7.2.7
exceptiongroup==1.2.1
exceptiongroup==1.2.2
hypothesis==6.45.0
importlib-metadata==6.7.0
iniconfig==2.0.0
Expand Down
2 changes: 1 addition & 1 deletion .riot/requirements/1250d61.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ h11==0.14.0
httpcore==0.17.3
httpx==0.24.1
hypothesis==6.45.0
idna==3.9
idna==3.10
importlib-metadata==6.7.0
iniconfig==2.0.0
mock==5.1.0
Expand Down
36 changes: 18 additions & 18 deletions .riot/requirements/1280196.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/1280196.in
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1280196.in
#
attrs==23.1.0
beautifulsoup4==4.12.2
bottle==0.12.25
coverage[toml]==7.3.4
exceptiongroup==1.2.0
attrs==24.2.0
beautifulsoup4==4.12.3
bottle==0.13.1
coverage[toml]==7.6.1
exceptiongroup==1.2.2
hypothesis==6.45.0
importlib-metadata==7.0.0
importlib-metadata==8.5.0
iniconfig==2.0.0
mock==5.1.0
opentracing==2.4.0
packaging==23.2
pluggy==1.3.0
pytest==7.4.3
pytest-cov==4.1.0
pytest-mock==3.12.0
packaging==24.1
pluggy==1.5.0
pytest==8.3.3
pytest-cov==5.0.0
pytest-mock==3.14.0
pytest-randomly==3.15.0
sortedcontainers==2.4.0
soupsieve==2.5
tomli==2.0.1
waitress==2.1.2
webob==1.8.7
webtest==3.0.0
zipp==3.17.0
soupsieve==2.6
tomli==2.0.2
waitress==3.0.0
webob==1.8.8
webtest==3.0.1
zipp==3.20.2
4 changes: 2 additions & 2 deletions .riot/requirements/156e3cc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ coverage[toml]==7.6.1
databases==0.8.0
greenlet==3.0.3
h11==0.14.0
httpcore==1.0.5
httpcore==1.0.6
httpx==0.27.2
hypothesis==6.45.0
idna==3.9
idna==3.10
iniconfig==2.0.0
mock==5.1.0
opentracing==2.4.0
Expand Down
Loading

0 comments on commit 0712bbc

Please sign in to comment.