|
3 | 3 | # This package has two git checkouts. For each new release, the commit SHA for |
4 | 4 | # DataDog/integrations-core must also be updated. |
5 | 5 | version: "7.71.1" |
6 | | - epoch: 0 # GHSA-4xh5-x5gv-qwph |
| 6 | + epoch: 1 |
7 | 7 | description: "Collect events and metrics from your hosts that send data to Datadog." |
8 | 8 | copyright: |
9 | 9 | - license: Apache-2.0 |
@@ -124,10 +124,10 @@ pipeline: |
124 | 124 | # these won't leak into the package. |
125 | 125 | - runs: | |
126 | 126 | # 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 |
128 | 128 |
|
129 | 129 | # 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 |
131 | 131 |
|
132 | 132 | - uses: go/bump |
133 | 133 | with: |
@@ -381,10 +381,25 @@ subpackages: |
381 | 381 | with: |
382 | 382 | repository: https://github.com/DataDog/integrations-core |
383 | 383 | 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}}" |
385 | 400 | - uses: patch |
386 | 401 | 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 |
388 | 403 | - runs: | |
389 | 404 | # This is needed to work around the error "ValueError: ZIP does not support timestamps before 1980" |
390 | 405 | SOURCE_DATE_EPOCH=315532800 |
|
0 commit comments