Skip to content

Commit 7b56ce8

Browse files
authored
Merge branch 'master' into sy/cisco-catalyst-center
2 parents 0b77b37 + 05ce03c commit 7b56ce8

545 files changed

Lines changed: 10432 additions & 1335 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.builders/images/linux-aarch64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS perl-core && \
3636
ldconfig
3737

3838
# Compile and install Python 3
39-
ENV PYTHON3_VERSION=3.13.14
39+
ENV PYTHON3_VERSION=3.13.15
4040
RUN yum install -y libffi-devel && \
4141
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
4242
VERSION="${PYTHON3_VERSION}" \
43-
SHA256="5ae535a36af0ebca6fca176ecb8197f5db9c1cb8c8f0cd12cdf1787046db1f41" \
43+
SHA256="c28d9d213c09b5b5ab2c29812950e12f746999e099b82894231be954b26baed9" \
4444
RELATIVE_PATH="Python-{{version}}" \
4545
bash install-from-source.sh \
4646
--prefix=/opt/python/${PYTHON3_VERSION} \

.builders/images/linux-x86_64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS perl-core && \
3535
ldconfig
3636

3737
# Compile and install Python 3
38-
ENV PYTHON3_VERSION=3.13.14
38+
ENV PYTHON3_VERSION=3.13.15
3939
RUN yum install -y libffi-devel && \
4040
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
4141
VERSION="${PYTHON3_VERSION}" \
42-
SHA256="5ae535a36af0ebca6fca176ecb8197f5db9c1cb8c8f0cd12cdf1787046db1f41" \
42+
SHA256="c28d9d213c09b5b5ab2c29812950e12f746999e099b82894231be954b26baed9" \
4343
RELATIVE_PATH="Python-{{version}}" \
4444
bash install-from-source.sh --prefix=/opt/python/${PYTHON3_VERSION} --with-ensurepip=yes --enable-ipv6 --with-dbmliborder=
4545
ENV PATH="/opt/python/${PYTHON3_VERSION}/bin:${PATH}"

.builders/images/macos/builder_setup.sh

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,40 @@ install-from-source() {
1212
bash "install-from-source.sh" --prefix="${DD_PREFIX_PATH}" "$@"
1313
}
1414

15+
# Rust toolchain, needed to build cryptography from source: it no longer ships macOS x86_64 wheels.
16+
# Installed under the prefix to keep it in the builder cache, with the shims linked into
17+
# ${DD_PREFIX_PATH}/bin, which build.py already puts on PATH.
18+
# RUST_VERSION bumps on its own; the hashes are rustup-init's, so they only change with RUSTUP_VERSION:
19+
# https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${RUST_TARGET}/rustup-init.sha256
20+
# renovate: datasource=github-releases depName=rust-lang/rust
21+
RUST_VERSION="1.91.0"
22+
# renovate: datasource=github-tags depName=rust-lang/rustup
23+
RUSTUP_VERSION="1.26.0"
24+
case "$(uname -m)" in
25+
x86_64)
26+
RUST_TARGET="x86_64-apple-darwin"
27+
RUSTUP_SHA256="f6d1a9fac1a0d0802d87c254f02369a79973bc8c55aa0016d34af4fcdbd67822"
28+
;;
29+
arm64)
30+
RUST_TARGET="aarch64-apple-darwin"
31+
RUSTUP_SHA256="ed299a8fe762dc28161a99a03cf62836977524ad557ad70e13882d2f375d3983"
32+
;;
33+
*)
34+
echo "Unsupported architecture for the Rust toolchain: $(uname -m)" >&2
35+
exit 1
36+
;;
37+
esac
38+
export RUSTUP_HOME="${DD_PREFIX_PATH}/rustup" CARGO_HOME="${DD_PREFIX_PATH}/cargo"
39+
curl --retry 5 --fail "https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${RUST_TARGET}/rustup-init" -o /tmp/rustup-init
40+
echo "${RUSTUP_SHA256} /tmp/rustup-init" | sha256sum --check
41+
chmod +x /tmp/rustup-init
42+
/tmp/rustup-init -y --no-modify-path --profile minimal --default-toolchain "${RUST_VERSION}"
43+
# The shims are copies of the rustup binary we just verified, so they carry the same hash
44+
echo "${RUSTUP_SHA256} ${CARGO_HOME}/bin/rustc" | sha256sum --check
45+
rm /tmp/rustup-init
46+
mkdir -p "${DD_PREFIX_PATH}/bin"
47+
ln -sf "${CARGO_HOME}"/bin/* "${DD_PREFIX_PATH}/bin/"
48+
1549
# mqi
1650
IBM_MQ_VERSION=9.2.4.0-IBM-MQ-DevToolkit
1751
curl --retry 5 --fail "https://s3.amazonaws.com/dd-agent-omnibus/ibm-mq-backup/${IBM_MQ_VERSION}-MacX64.pkg" -o /tmp/mq_client.pkg
@@ -99,8 +133,8 @@ VERSION="18.3" \
99133
SHA256="d95663fbbf3a80f81a9d98d895266bdcb74ba274bcc04ef6d76630a72dee016f" \
100134
RELATIVE_PATH="postgresql-{{version}}" \
101135
install-from-source --without-readline --with-openssl --without-icu
102-
# Add paths to pg_config and to the library
103-
echo PATH="${DD_PREFIX_PATH}/bin:${PATH:-}" >> "$DD_ENV_FILE"
136+
# pg_config is reached through ${DD_PREFIX_PATH}/bin, which build.py already puts on PATH. Writing PATH
137+
# to the env file instead would drop the entries build_wheels.py adds later, such as the maturin script.
104138

105139
# zstd for librdkafka compression support
106140
# Keep version in sync with github.com/DataDog/datadog-agent/deps/repos.MODULE.bazel

.builders/images/macos/extra_build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ sudo cp -Rf "${DD_PREFIX_PATH}/mqm" /opt
3434
echo "WITH_XML2_CONFIG=${DD_PREFIX_PATH}/bin/xml2-config" >> $DD_ENV_FILE
3535
echo "WITH_XSLT_CONFIG=${DD_PREFIX_PATH}/bin/xslt-config" >> $DD_ENV_FILE
3636

37+
# Point the openssl crate, used by cryptography, at the OpenSSL we build instead of the system one.
38+
# This runs on every build, unlike the builder setup, which is skipped when the cache is warm.
39+
echo "OPENSSL_LIB_DIR=${DD_PREFIX_PATH}/lib" >> $DD_ENV_FILE
40+
echo "OPENSSL_INCLUDE_DIR=${DD_PREFIX_PATH}/include" >> $DD_ENV_FILE
41+
42+
# The rustup shims resolve the toolchain through these, so they are needed on cache hits too
43+
echo "RUSTUP_HOME=${DD_PREFIX_PATH}/rustup" >> $DD_ENV_FILE
44+
echo "CARGO_HOME=${DD_PREFIX_PATH}/cargo" >> $DD_ENV_FILE
45+
3746
# Empty arrays are flagged as unset when using the `-u` flag. This is the safest way to work around that
3847
# (see https://stackoverflow.com/a/61551944)
3948
pip_no_binary=${always_build[@]+"${always_build[@]}"}

.builders/images/macos/pbs.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Python Build Standalone (PBS) pins for macOS in resolve-build-deps.
22
# https://astral.sh/blog/python-build-standalone
33
# Sourced by .github/workflows/resolve-build-deps.yaml (set -a; source ...).
4-
PYTHON_PATCH=14
5-
PBS_RELEASE=20260610
6-
PBS_SHA256__aarch64=79daa8e9dea1e64ad50aebb05a807289023a474c2020b72361eb44d67fa2401e
7-
PBS_SHA256__x86_64=064731aded38b1a12909088d40d9e0e385dc989e38a1e1de9917610254194962
4+
PYTHON_PATCH=15
5+
PBS_RELEASE=20260807
6+
PBS_SHA256__aarch64=dbadb0ffe46f8bace50daaf8a0c5fc6903c003690776da9eb5269e33c856bb53
7+
PBS_SHA256__x86_64=187eed2282e9c3a5b6b14953d564ee25a9f35cf2c209c9fa292186ee48b0e4a1

.builders/images/windows-x86_64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ RUN Get-RemoteFile `
8585
Approve-File -Path $($Env:USERPROFILE + '\.cargo\bin\rustc.exe') -Hash $Env:RUSTC_HASH
8686

8787
# Install Python 3
88-
ENV PYTHON_VERSION="3.13.14"
88+
ENV PYTHON_VERSION="3.13.15"
8989
RUN Get-RemoteFile `
9090
-Uri https://www.python.org/ftp/python/$Env:PYTHON_VERSION/python-$Env:PYTHON_VERSION-amd64.exe `
9191
-Path python-$Env:PYTHON_VERSION-amd64.exe `
92-
-Hash 'c54d9b9bbb8a36e6489363ddd01139707fd781d72f1f9e90c7ec65d0061368e0'; `
92+
-Hash 'edec09c4853aeae9ac36efb8c9f95b6b8e2fee65eee56d9767a8b7c69c574403'; `
9393
Start-Process -Wait python-$Env:PYTHON_VERSION-amd64.exe -ArgumentList '/quiet', 'InstallAllUsers=1'; `
9494
Remove-Item python-$Env:PYTHON_VERSION-amd64.exe; `
9595
& 'C:\Program Files\Python313\python.exe' -m pip install --no-warn-script-location --upgrade pip; `

.ddev/config.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ nginx_ingress_controller = "nginx-ingress-controller"
208208

209209
[overrides.dep.updates]
210210
exclude = [
211-
'pyasn1', # https://github.com/pyasn1/pyasn1/issues/52
212211
'pysnmp', # Breaking snmp tests
213212
'aerospike', # v8+ breaks agent build.
214213
'confluent-kafka',
@@ -220,6 +219,10 @@ exclude = [
220219
'pymysql', # Pinned to below 1.2.0 as requested by DBM while they work on supporting 1.2+
221220
'foundationdb', # 7+ has a breaking changes
222221
'ddtrace', # 4.5.1 does not support MacOS 11, which is used by the Agent
222+
'kubernetes', # Excluded on size: 36 bundles the aio client and aiohttp, +24M on disk.
223+
# Unpin once https://github.com/kubernetes-client/python/issues/2677 is resolved.
224+
'redis', # 8.1.0 adds 788K on disk, over the Agent per-PR gate. Bumped in stages
225+
# instead, see #24817. Unpin once we reach 8.1.0.
223226

224227
]
225228

.deps/builder_inputs.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
# Hash inputs are defined in .builders/inputs_hash.py (SHARED_INPUTS,
1212
# RESOLUTION_INPUTS).
1313
[resolution]
14-
hash = "20526a521fe4bcb1be07e09d4b60b6f8791dddecb3966faa3746d536388c9841"
14+
hash = "d629da124aca924cb21ad8ec750e18461e134564835a3be29edbde2e885dc90f"
1515

1616
[images]
17-
linux-aarch64 = "12d028af4a7aaead88c4947dc4996df85eb57f09ac6f0430f3ed640290418e85"
18-
linux-x86_64 = "947d461418c4dbc246db29b08ae4ff9fd7ebee7081b1e36500990c5d1f0aad99"
19-
macos-aarch64 = "78e6a48da3021de05ea531e272e5e2ebab7b5e09888144460586602f39368fbc"
20-
macos-x86_64 = "d27dd57c87253060744c2e1584b17348a921cbf7c343f1bb55005665fa5c61fb"
21-
windows-x86_64 = "e016f1da3aab33685b9e791535baebec81e6c28e8926a6503fbbee8daf43a2d1"
17+
linux-aarch64 = "48faaad3beb1c8fc378547f2e5719d5b3b6a475903999a4bf2abb6c1a6d4089f"
18+
linux-x86_64 = "a7a9010670d189d6ce933695256e4fc9a720e4f0d6fc8a3be6269e65a3be0ec5"
19+
macos-aarch64 = "58d04ff6c74f75cfa26560596b546b32215ce581861ad8492b54f1dadb89f750"
20+
macos-x86_64 = "289cc19d76545b596f69d7dbeef679da1cddc2cc25f139d36748a8efd387cc49"
21+
windows-x86_64 = "da9fa3c61b2d1808cab45eec33d39ba8680f1021066f948e0f760aab218632bc"

.deps/image_digests.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"linux-aarch64": "sha256:3f814638582595cccb6c5a5725369fd858b4c00022a5b7fb905fcdfe6784e8d2",
3-
"linux-x86_64": "sha256:e841e61a71a9e927c52bd49b1e37378bdf27a708210db8a06e00ac8b44cc824c",
4-
"windows-x86_64": "sha256:df834692738c720f20a45f6eda15f345e6a9629e1a28f9621a9de37c565b2bda"
2+
"linux-aarch64": "sha256:3b0cb5bda376c2c3ed2ec0fcf3d29b93bb1a7038272174307b857a843bcfb838",
3+
"linux-x86_64": "sha256:03d85cbbd16a904032ae564f578da49c73f8fefd3c726efa0c66f88305dee6ab",
4+
"windows-x86_64": "sha256:bb0fb7104b762c2bc2e268dcaf139f3136ab20caa87ac44fb5b024345d07a267"
55
}

0 commit comments

Comments
 (0)