Skip to content

Commit

Permalink
Merge branch 'master' into avast-assets-v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
narendranandaniya-crest committed Jan 31, 2025
2 parents 0825e61 + 191362a commit 8b449b1
Show file tree
Hide file tree
Showing 1,265 changed files with 88,378 additions and 4,546 deletions.
1 change: 1 addition & 0 deletions .builders/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def build_macos():
'DD_PY2_BUILDENV_PATH': builder_root / 'py2' / 'bin' / 'python',
# Path where we'll install libraries that we build
'DD_PREFIX_PATH': prefix_path,
'PATH': f'{prefix_path}/bin:{os.environ["PATH"]}',
# Common compilation flags
'LDFLAGS': f'-L{prefix_path}/lib',
'CFLAGS': f'-I{prefix_path}/include -O2',
Expand Down
19 changes: 10 additions & 9 deletions .builders/images/linux-aarch64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS && \
ldconfig

# Compile and install Python 3
ENV PYTHON3_VERSION=3.12.6
ENV PYTHON3_VERSION=3.12.8
RUN yum install -y libffi-devel && \
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
VERSION="${PYTHON3_VERSION}" \
SHA256="85a4c1be906d20e5c5a69f2466b00da769c221d6a684acfd3a514dbf5bf10a66" \
SHA256="5978435c479a376648cb02854df3b892ace9ed7d32b1fead652712bee9d03a45" \
RELATIVE_PATH="Python-{{version}}" \
bash install-from-source.sh \
--prefix=/opt/python/${PYTHON_VERSION} \
--prefix=/opt/python/${PYTHON3_VERSION} \
--with-ensurepip=yes \
--enable-ipv6 \
--with-dbmliborder=
ENV PATH="/opt/python/${PYTHON_VERSION}/bin:${PATH}"
ENV PATH="/opt/python/${PYTHON3_VERSION}/bin:${PATH}"
# Set up virtual environment for Python 3
RUN /opt/python/${PYTHON_VERSION}/bin/python3 -m pip install --no-warn-script-location --upgrade pip \
&& /opt/python/${PYTHON_VERSION}/bin/python3 -m pip install --no-warn-script-location virtualenv \
&& /opt/python/${PYTHON_VERSION}/bin/python3 -m virtualenv /py3
RUN /opt/python/${PYTHON3_VERSION}/bin/python3 -m pip install --no-warn-script-location --upgrade pip \
&& /opt/python/${PYTHON3_VERSION}/bin/python3 -m pip install --no-warn-script-location virtualenv \
&& /opt/python/${PYTHON3_VERSION}/bin/python3 -m virtualenv /py3

# krb5 for dependencies that require kerberos support
RUN \
Expand Down Expand Up @@ -141,8 +141,8 @@ RUN \
# curl
RUN \
DOWNLOAD_URL="https://curl.haxx.se/download/curl-{{version}}.tar.gz" \
VERSION="8.9.1" \
SHA256="291124a007ee5111997825940b3876b3048f7d31e73e9caa681b80fe48b2dcd5" \
VERSION="8.11.1" \
SHA256="a889ac9dbba3644271bd9d1302b5c22a088893719b72be3487bc3d401e5c4e80" \
RELATIVE_PATH="curl-{{version}}" \
bash install-from-source.sh \
--disable-manual \
Expand All @@ -159,6 +159,7 @@ RUN \
--without-gnutls \
--without-librtmp \
--without-libssh2 \
--without-libpsl \
--with-ssl=/usr/local \
&& rm /usr/local/bin/curl

Expand Down
2 changes: 1 addition & 1 deletion .builders/images/linux-aarch64/build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ "${DD_BUILD_PYTHON_VERSION}" == "3" ]]; then
LDFLAGS="${LDFLAGS} -L/usr/local/lib -lkrb5 -lgssapi_krb5 -llmdb" \
DOWNLOAD_URL="https://github.com/confluentinc/librdkafka/archive/refs/tags/v{{version}}.tar.gz" \
VERSION="${kafka_version}" \
SHA256="0ddf205ad8d36af0bc72a2fec20639ea02e1d583e353163bf7f4683d949e901b" \
SHA256="5bd1c46f63265f31c6bfcedcde78703f77d28238eadf23821c2b43fc30be3e25" \
RELATIVE_PATH="librdkafka-{{version}}" \
bash install-from-source.sh --enable-sasl --enable-curl
always_build+=("confluent-kafka")
Expand Down
19 changes: 10 additions & 9 deletions .builders/images/linux-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS && \
ldconfig

# Compile and install Python 3
ENV PYTHON3_VERSION=3.12.6
ENV PYTHON3_VERSION=3.12.8
RUN yum install -y libffi-devel && \
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
VERSION="${PYTHON3_VERSION}" \
SHA256="85a4c1be906d20e5c5a69f2466b00da769c221d6a684acfd3a514dbf5bf10a66" \
SHA256="5978435c479a376648cb02854df3b892ace9ed7d32b1fead652712bee9d03a45" \
RELATIVE_PATH="Python-{{version}}" \
bash install-from-source.sh --prefix=/opt/python/${PYTHON_VERSION} --with-ensurepip=yes --enable-ipv6 --with-dbmliborder=
ENV PATH="/opt/python/${PYTHON_VERSION}/bin:${PATH}"
bash install-from-source.sh --prefix=/opt/python/${PYTHON3_VERSION} --with-ensurepip=yes --enable-ipv6 --with-dbmliborder=
ENV PATH="/opt/python/${PYTHON3_VERSION}/bin:${PATH}"
# Set up virtual environment for Python 3
RUN /opt/python/${PYTHON_VERSION}/bin/python3 -m pip install --no-warn-script-location --upgrade pip \
&& /opt/python/${PYTHON_VERSION}/bin/python3 -m pip install --no-warn-script-location virtualenv \
&& /opt/python/${PYTHON_VERSION}/bin/python3 -m virtualenv /py3
RUN /opt/python/${PYTHON3_VERSION}/bin/python3 -m pip install --no-warn-script-location --upgrade pip \
&& /opt/python/${PYTHON3_VERSION}/bin/python3 -m pip install --no-warn-script-location virtualenv \
&& /opt/python/${PYTHON3_VERSION}/bin/python3 -m virtualenv /py3

# MQ Client library required by pymqi
ENV IBM_MQ_VERSION="9.2.4.0"
Expand Down Expand Up @@ -145,8 +145,8 @@ RUN \
# curl
RUN \
DOWNLOAD_URL="https://curl.haxx.se/download/curl-{{version}}.tar.gz" \
VERSION="8.9.1" \
SHA256="291124a007ee5111997825940b3876b3048f7d31e73e9caa681b80fe48b2dcd5" \
VERSION="8.11.1" \
SHA256="a889ac9dbba3644271bd9d1302b5c22a088893719b72be3487bc3d401e5c4e80" \
RELATIVE_PATH="curl-{{version}}" \
bash install-from-source.sh \
--disable-manual \
Expand All @@ -163,6 +163,7 @@ RUN \
--without-gnutls \
--without-librtmp \
--without-libssh2 \
--without-libpsl \
--with-ssl=/usr/local \
&& rm /usr/local/bin/curl

Expand Down
2 changes: 1 addition & 1 deletion .builders/images/linux-x86_64/build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [[ "${DD_BUILD_PYTHON_VERSION}" == "3" ]]; then
LDFLAGS="${LDFLAGS} -L/usr/local/lib -lkrb5 -lgssapi_krb5 -llmdb" \
DOWNLOAD_URL="https://github.com/confluentinc/librdkafka/archive/refs/tags/v{{version}}.tar.gz" \
VERSION="${kafka_version}" \
SHA256="0ddf205ad8d36af0bc72a2fec20639ea02e1d583e353163bf7f4683d949e901b" \
SHA256="5bd1c46f63265f31c6bfcedcde78703f77d28238eadf23821c2b43fc30be3e25" \
RELATIVE_PATH="librdkafka-{{version}}" \
bash install-from-source.sh --enable-sasl --enable-curl
always_build+=("confluent-kafka")
Expand Down
5 changes: 3 additions & 2 deletions .builders/images/macos-x86_64/builder_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ RELATIVE_PATH="libxslt-{{version}}" \

# curl
DOWNLOAD_URL="https://curl.haxx.se/download/curl-{{version}}.tar.gz" \
VERSION="8.9.1" \
SHA256="291124a007ee5111997825940b3876b3048f7d31e73e9caa681b80fe48b2dcd5" \
VERSION="8.11.1" \
SHA256="a889ac9dbba3644271bd9d1302b5c22a088893719b72be3487bc3d401e5c4e80" \
RELATIVE_PATH="curl-{{version}}" \
install-from-source \
--disable-manual \
Expand All @@ -89,6 +89,7 @@ RELATIVE_PATH="curl-{{version}}" \
--without-gnutls \
--without-librtmp \
--without-libssh2 \
--without-libpsl \
--with-ssl="${DD_PREFIX_PATH}"
# Remove the binary installed so that we consistenly use the same original `curl` binary
rm "${DD_PREFIX_PATH}/bin/curl"
Expand Down
2 changes: 1 addition & 1 deletion .builders/images/macos-x86_64/extra_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [[ "${DD_BUILD_PYTHON_VERSION}" == "3" ]]; then
LDFLAGS="${LDFLAGS} -L${DD_PREFIX_PATH}/lib -lgssapi_krb5 -llmdb" \
DOWNLOAD_URL="https://github.com/confluentinc/librdkafka/archive/refs/tags/v{{version}}.tar.gz" \
VERSION="${kafka_version}" \
SHA256="0ddf205ad8d36af0bc72a2fec20639ea02e1d583e353163bf7f4683d949e901b" \
SHA256="5bd1c46f63265f31c6bfcedcde78703f77d28238eadf23821c2b43fc30be3e25" \
RELATIVE_PATH="librdkafka-{{version}}" \
bash install-from-source.sh --prefix="${DD_PREFIX_PATH}" --enable-sasl --enable-curl

Expand Down
6 changes: 4 additions & 2 deletions .builders/images/windows-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ RUN Get-RemoteFile `
Approve-File -Path $($Env:USERPROFILE + '\.cargo\bin\rustc.exe') -Hash $Env:RUSTC_HASH

# Install Python 3
ENV PYTHON_VERSION="3.12.6"
ENV PYTHON_VERSION="3.12.8"
RUN Get-RemoteFile `
-Uri https://www.python.org/ftp/python/$Env:PYTHON_VERSION/python-$Env:PYTHON_VERSION-amd64.exe `
-Path python-$Env:PYTHON_VERSION-amd64.exe `
-Hash '5914748e6580e70bedeb7c537a0832b3071de9e09a2e4e7e3d28060616045e0a'; `
-Hash '71bd44e6b0e91c17558963557e4cdb80b483de9b0a0a9717f06cf896f95ab598'; `
Start-Process -Wait python-$Env:PYTHON_VERSION-amd64.exe -ArgumentList '/quiet', 'InstallAllUsers=1'; `
Remove-Item python-$Env:PYTHON_VERSION-amd64.exe; `
& 'C:\Program Files\Python312\python.exe' -m pip install --no-warn-script-location --upgrade pip; `
Expand Down Expand Up @@ -116,6 +116,8 @@ RUN Get-RemoteFile `

ENV OPENSSL_VERSION="3.3.2"

ENV CURL_VERSION="8.11.1"

# Set up runner
COPY runner_dependencies.txt C:\runner_dependencies.txt
RUN python -m pip install --no-warn-script-location -r C:\runner_dependencies.txt
Expand Down
23 changes: 18 additions & 5 deletions .builders/images/windows-x86_64/build_script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Write-Host "Will build librdkafka $kafka_version"
Get-RemoteFile `
-Uri "https://github.com/confluentinc/librdkafka/archive/refs/tags/v${kafka_version}.tar.gz" `
-Path "librdkafka-${kafka_version}.tar.gz" `
-Hash '0ddf205ad8d36af0bc72a2fec20639ea02e1d583e353163bf7f4683d949e901b'
-Hash '5bd1c46f63265f31c6bfcedcde78703f77d28238eadf23821c2b43fc30be3e25'
7z x "librdkafka-${kafka_version}.tar.gz" -o"C:\"
7z x "C:\librdkafka-${kafka_version}.tar" -o"C:\librdkafka"
Remove-Item "librdkafka-${kafka_version}.tar.gz"
Expand All @@ -21,15 +21,28 @@ Remove-Item "librdkafka-${kafka_version}.tar.gz"
# Based on this job from upstream:
# https://github.com/confluentinc/librdkafka/blob/cb8c19c43011b66c4b08b25e5150455a247e1ff3/.semaphore/semaphore.yml#L265
# Install vcpkg
Set-Location "C:\"
$triplet = "x64-windows"
$vcpkg_dir = "C:\vcpkg"
$librdkafka_dir = "C:\librdkafka\librdkafka-${kafka_version}"
# We set the desired tag to the latest release tag to ensure that we are building with the latest stable version.
# The desired tag should be updated periodically or when critical fixes or features are released.
$desired_tag = "2024.12.16"

# Clone and configure vcpkg
if (-Not (Test-Path -Path "$vcpkg_dir\.git")) {
git clone https://github.com/Microsoft/vcpkg.git $vcpkg_dir
}

Set-Location $vcpkg_dir
git checkout $desired_tag

Write-Host "Bootstrapping vcpkg..."
.\bootstrap-vcpkg.bat

& "${librdkafka_dir}\win32\setup-vcpkg.ps1"
# Get deps
Set-Location "$librdkafka_dir"
# Patch the the vcpkg manifest to to override the OpenSSL version
python C:\update_librdkafka_manifest.py vcpkg.json --set-version openssl:${Env:OPENSSL_VERSION}
# Patch the the vcpkg manifest to to override the OpenSSL version and CURL version
python C:\update_librdkafka_manifest.py vcpkg.json --set-version openssl:${Env:OPENSSL_VERSION} --set-version curl:${Env:CURL_VERSION}

C:\vcpkg\vcpkg integrate install
C:\vcpkg\vcpkg --feature-flags=versions install --triplet $triplet
Expand Down
45 changes: 45 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ coverage:
target: 75
flags:
- druid
DuckDB:
target: 75
flags:
- duckdb
EKS_Fargate:
target: 75
flags:
Expand Down Expand Up @@ -310,6 +314,10 @@ coverage:
target: 75
flags:
- karpenter
Keda:
target: 75
flags:
- keda
Kong:
target: 75
flags:
Expand Down Expand Up @@ -410,6 +418,10 @@ coverage:
target: 75
flags:
- mesos_master
Milvus:
target: 75
flags:
- milvus
MongoDB:
target: 75
flags:
Expand Down Expand Up @@ -442,6 +454,10 @@ coverage:
target: 75
flags:
- nvidia_triton
Octopus_Deploy:
target: 75
flags:
- octopus_deploy
OpenLDAP:
target: 75
flags:
Expand Down Expand Up @@ -582,6 +598,10 @@ coverage:
target: 75
flags:
- strimzi
Supabase:
target: 75
flags:
- supabase
Supervisord:
target: 75
flags:
Expand Down Expand Up @@ -962,6 +982,11 @@ flags:
paths:
- druid/datadog_checks/druid
- druid/tests
duckdb:
carryforward: true
paths:
- duckdb/datadog_checks/duckdb
- duckdb/tests
ecs_fargate:
carryforward: true
paths:
Expand Down Expand Up @@ -1132,6 +1157,11 @@ flags:
paths:
- karpenter/datadog_checks/karpenter
- karpenter/tests
keda:
carryforward: true
paths:
- keda/datadog_checks/keda
- keda/tests
kong:
carryforward: true
paths:
Expand Down Expand Up @@ -1262,6 +1292,11 @@ flags:
paths:
- mesos_slave/datadog_checks/mesos_slave
- mesos_slave/tests
milvus:
carryforward: true
paths:
- milvus/datadog_checks/milvus
- milvus/tests
mongo:
carryforward: true
paths:
Expand Down Expand Up @@ -1307,6 +1342,11 @@ flags:
paths:
- nvidia_triton/datadog_checks/nvidia_triton
- nvidia_triton/tests
octopus_deploy:
carryforward: true
paths:
- octopus_deploy/datadog_checks/octopus_deploy
- octopus_deploy/tests
openldap:
carryforward: true
paths:
Expand Down Expand Up @@ -1482,6 +1522,11 @@ flags:
paths:
- strimzi/datadog_checks/strimzi
- strimzi/tests
supabase:
carryforward: true
paths:
- supabase/datadog_checks/supabase
- supabase/tests
supervisord:
carryforward: true
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sudo apt install -y --no-install-recommends build-essential libkrb5-dev wget sof
# Install librdkafka from source since no binaries are available for the distribution we use on the CI:
git clone https://github.com/confluentinc/librdkafka
cd librdkafka
git checkout v2.6.1
git checkout v2.8.0
sudo ./configure --install-deps --prefix=/usr
make
sudo make install
Expand Down
7 changes: 1 addition & 6 deletions .ddev/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ aerospike = ['Apache-2.0']
# https://github.com/pyca/cryptography/blob/main/LICENSE
cryptography = ['Apache-2.0', 'BSD-3-Clause', 'PSF']
# https://github.com/confluentinc/confluent-kafka-python/blob/master/LICENSE
# TODO: Remove once confluent-kafka license metadata is fixed:
# https://github.com/confluentinc/confluent-kafka-python/issues/1857
confluent-kafka = ['Apache-2.0']
# https://github.com/rthalley/dnspython/blob/master/LICENSE
dnspython = ['ISC']
# https://github.com/cannatag/ldap3/blob/dev/COPYING.txt
Expand Down Expand Up @@ -165,7 +162,6 @@ unsorted = [
[overrides.dep.updates]
exclude = [
'ddtrace', # https://github.com/DataDog/integrations-core/pull/9132
'foundationdb', # Breaking datadog_checks_base tests
'pyasn1', # https://github.com/pyasn1/pyasn1/issues/52
'pysmi', # pysnmp dependent on pysmi version 1.2.1
'pysnmp', # Breaking snmp tests
Expand All @@ -175,9 +171,8 @@ exclude = [
# We're not ready to switch to v3 of the postgres library, see:
# https://github.com/DataDog/integrations-core/pull/15859
'psycopg2-binary',
# 2.4.10 is broken on py2 and they did not yank the version
'rethinkdb',
'psutil',
'pymongo[srv]', # Upgrade from 4.8.0 to 4.10.1 causes "AttributeError: module 'pymongo' has no attribute 'mongo_client'"
]

# Dependencies for the downloader that are security-related and should be updated separately from the others
Expand Down
19 changes: 4 additions & 15 deletions .ddqa/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ exclude_members = [
"hithwen",
]

[teams."Platform Integrations"]
jira_project = "PLINT"
jira_issue_type = "Task"
jira_statuses = [
"To Do",
"In Progress",
"Done",
]
github_team = "platform-integrations"
exclude_members = [
"hithwen",
"shanelhuang",
]
github_labels = ["team/platform-integrations"]

[teams."Container Integrations"]
jira_project = "CONTINT"
jira_issue_type = "Task"
Expand All @@ -54,6 +39,10 @@ jira_statuses = [
"Done",
]
github_team = "container-integrations"
exclude_members = [
"clamoriniere",
"hkaj",
]
github_labels = ["team/container-integrations"]

[teams."Database Monitoring"]
Expand Down
Loading

0 comments on commit 8b449b1

Please sign in to comment.