Skip to content

Commit 35d2ddb

Browse files
authored
Merge pull request wolfi-dev#68428 from AmberArcadia/datadog-agent-fixes
Datadog-agent integration commit bump and gate
2 parents e711a52 + 9d3991b commit 35d2ddb

4 files changed

Lines changed: 20 additions & 103 deletions

File tree

datadog-agent.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package:
33
# This package has two git checkouts. For each new release, the commit SHA for
44
# DataDog/integrations-core must also be updated.
55
version: "7.71.1"
6-
epoch: 0 # GHSA-4xh5-x5gv-qwph
6+
epoch: 1
77
description: "Collect events and metrics from your hosts that send data to Datadog."
88
copyright:
99
- license: Apache-2.0
@@ -124,10 +124,10 @@ pipeline:
124124
# these won't leak into the package.
125125
- runs: |
126126
# install `invoke` and its dependencies
127-
python${{vars.python-version}} -m pip install invoke requests toml pyyaml packaging codeowners
127+
python${{vars.python-version}} -m pip install invoke requests toml pyyaml packaging codeowners --root-user-action ignore
128128
129129
# install `gitlab`
130-
python${{vars.python-version}} -m pip install python-gitlab
130+
python${{vars.python-version}} -m pip install python-gitlab --root-user-action ignore
131131
132132
- uses: go/bump
133133
with:
@@ -381,10 +381,25 @@ subpackages:
381381
with:
382382
repository: https://github.com/DataDog/integrations-core
383383
branch: ${{vars.datadog-major-minor-x}} # 7.x.y
384-
expected-commit: 3040577a9e2f266b8202294db17da354dcb41c47 # needs to be updated with each new release
384+
expected-commit: 154195b209b2f79add4038fdcf082181413fd66b # needs to be updated with each new release
385+
- name: Verify expected-commit is latest
386+
runs: |
387+
# Check if the expected-commit matches the latest commit on the branch
388+
# Extract the current commit from HEAD (which git-checkout set to expected-commit)
389+
EXPECTED_COMMIT=$(git rev-parse HEAD)
390+
LATEST_COMMIT=$(git ls-remote https://github.com/DataDog/integrations-core refs/heads/${{vars.datadog-major-minor-x}} | cut -f1)
391+
392+
if [ "$EXPECTED_COMMIT" != "$LATEST_COMMIT" ]; then
393+
echo "ERROR: expected-commit ($EXPECTED_COMMIT) is not the latest commit on branch ${{vars.datadog-major-minor-x}}"
394+
echo "Latest commit is: $LATEST_COMMIT"
395+
echo "Please update the expected-commit in datadog-agent.yaml"
396+
exit 1
397+
fi
398+
399+
echo "Verified: expected-commit matches the latest commit on branch ${{vars.datadog-major-minor-x}}"
385400
- uses: patch
386401
with:
387-
patches: /home/build/int-core-datadog_checks_dev-pyproject-toml.patch /home/build/int-core-datadog_checks_base-pyproject-toml.patch /home/build/int-core-mysql-hatch-toml.patch /home/build/int-core-singlestore-hatch-toml.patch /home/build/int-core-agent_requirements-in.patch /home/build/int-core-requests-upgrade.patch
402+
patches: /home/build/int-core-datadog_checks_dev-pyproject-toml.patch /home/build/int-core-mysql-hatch-toml.patch /home/build/int-core-singlestore-hatch-toml.patch
388403
- runs: |
389404
# This is needed to work around the error "ValueError: ZIP does not support timestamps before 1980"
390405
SOURCE_DATE_EPOCH=315532800

datadog-agent/int-core-agent_requirements-in.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

datadog-agent/int-core-datadog_checks_base-pyproject-toml.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

datadog-agent/int-core-requests-upgrade.patch

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)