Skip to content

Commit 7431c5b

Browse files
Update APT repo path for testing artifacts (#1615)
1 parent 31ef3e4 commit 7431c5b

6 files changed

Lines changed: 24 additions & 24 deletions

File tree

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ repos:
22
- repo: https://github.com/golangci/golangci-lint
33
rev: v1.55.2
44
hooks:
5-
- id: golangci-lint
5+
- id: golangci-lint
66
- repo: local
77
hooks:
8-
- id: pyright
9-
name: pyright
10-
entry: pyright
11-
language: system # Use local install for pyright, else we cannot import the requirements and we get errors on external libraries
12-
'types_or': [python, pyi]
13-
require_serial: true
14-
additional_dependencies: []
15-
minimum_pre_commit_version: '2.9.2'
8+
- id: pyright
9+
name: pyright
10+
entry: pyright
11+
language: system # Use local install for pyright, else we cannot import the requirements and we get errors on external libraries
12+
"types_or": [python, pyi]
13+
require_serial: true
14+
additional_dependencies: []
15+
minimum_pre_commit_version: "2.9.2"
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.3.5
17+
rev: v0.12.2
1818
hooks:
1919
- id: ruff
20-
args: [ --fix ]
20+
args: [--fix]
2121
- id: ruff-format
2222
- repo: https://github.com/jendrikseipp/vulture
23-
rev: 'v2.3'
23+
rev: "v2.3"
2424
hooks:
2525
- id: vulture
2626
- repo: local
@@ -34,7 +34,7 @@ repos:
3434
- id: protected-branches
3535
name: protected-branches
3636
description: checks that the commit isn't created on a protected branch
37-
entry: 'inv ci.check-protected-branch'
37+
entry: "inv ci.check-protected-branch"
3838
language: system
3939
pass_filenames: false
4040
stages: [pre-commit, pre-push]

components/datadog/agent/host_linuxos.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ func (am *agentLinuxManager) getInstallCommand(version agentparams.PackageVersio
3030
testEnvVars := []string{}
3131

3232
if version.PipelineID != "" {
33-
testEnvVars = append(testEnvVars, "TESTING_APT_URL=apttesting.datad0g.com")
33+
testEnvVars = append(testEnvVars, fmt.Sprintf("TESTING_APT_URL=apttesting.datad0g.com/datadog-agent/pipeline-%v-a%v", version.PipelineID, version.Major))
3434
// apt testing repo
3535
// TESTING_APT_REPO_VERSION="pipeline-xxxxx-a7 7"
36-
testEnvVars = append(testEnvVars, fmt.Sprintf(`TESTING_APT_REPO_VERSION="pipeline-%[1]v-a%[2]v-%[3]s %[2]v"`, version.PipelineID, version.Major, am.targetOS.Descriptor().Architecture))
36+
testEnvVars = append(testEnvVars, fmt.Sprintf(`TESTING_APT_REPO_VERSION="stable-%[1]s %[2]v"`, am.targetOS.Descriptor().Architecture, version.Major))
3737
testEnvVars = append(testEnvVars, "TESTING_YUM_URL=yumtesting.datad0g.com")
3838
// yum testing repo
3939
// TESTING_YUM_VERSION_PATH="testing/pipeline-xxxxx-a7/7"

components/datadog/updater/install_script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ DD_INSTALLER_REGISTRY_URL_AGENT_PACKAGE="669783387624.dkr.ecr.us-east-1.amazonaw
1616
DD_INSTALLER_REGISTRY_AUTH_AGENT_PACKAGE="ecr" \
1717
DD_INSTALLER_DEFAULT_PKG_VERSION_DATADOG_AGENT="pipeline-${DD_PIPELINE_ID}" \
1818
TESTING_KEYS_URL="keys.datadoghq.com" \
19-
TESTING_APT_URL="apttesting.datad0g.com" \
20-
TESTING_APT_REPO_VERSION="pipeline-${DD_PIPELINE_ID}-a7-$(uname -m | sed 's/aarch64/arm64/; s/amd64/x86_64/') 7" \
19+
TESTING_APT_URL="apttesting.datad0g.com/datadog-agent/pipeline-${DD_PIPELINE_ID}-a7" \
20+
TESTING_APT_REPO_VERSION="stable-$(uname -m | sed 's/aarch64/arm64/; s/amd64/x86_64/') 7" \
2121
TESTING_YUM_URL="yumtesting.datad0g.com" \
2222
TESTING_YUM_VERSION_PATH="testing/pipeline-${DD_PIPELINE_ID}-a7/7" \
2323
bash -c "$(curl -L https://install.datadoghq.com/scripts/install_script_agent7.sh)"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23.0
44

55
require (
66
dario.cat/mergo v1.0.1
7-
github.com/DataDog/datadog-agent/pkg/util/option v0.0.0-20250102215417-1af8863cd8cd
7+
github.com/DataDog/datadog-agent/pkg/util/option v0.67.0
88
github.com/Masterminds/semver v1.5.0
99
github.com/alessio/shellescape v1.4.2
1010
github.com/aws/aws-sdk-go-v2 v1.32.7

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s=
22
dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
33
github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
44
github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
5-
github.com/DataDog/datadog-agent/pkg/util/option v0.0.0-20250102215417-1af8863cd8cd h1:kam3LA9L/VuBRPQLqW4CBnelpxF1KY4WGbb/W2UHn2g=
6-
github.com/DataDog/datadog-agent/pkg/util/option v0.0.0-20250102215417-1af8863cd8cd/go.mod h1:BECd5pnMX9MEnARCAV+S7M0Sk/gYwopL7QlhCFdXSI0=
5+
github.com/DataDog/datadog-agent/pkg/util/option v0.67.0 h1:8WQBb4AOO7LGIbCnJsQZSP0xv/V9ELfe5pbgkOoak+Q=
6+
github.com/DataDog/datadog-agent/pkg/util/option v0.67.0/go.mod h1:BQJ+P1ycpK/T1DQvvPWle4ZkJ/QDLxg4pHzXnpfrUwY=
77
github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM=
88
github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo=
99
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=

tasks/deploy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ def check_s3_image_exists(_, pipeline_id: str, deploy_job: str):
9191
# Job to s3 directory mapping
9292
deploy_job_to_s3 = {
9393
# Deb
94-
"deploy_deb_testing-a7_x64": f"apttesting.datad0g.com/dists/pipeline-{pipeline_id}-a7-x86_64/7/binary-x86_64",
95-
"deploy_deb_testing-a7_arm64": f"apttesting.datad0g.com/dists/pipeline-{pipeline_id}-a7-arm64/7/binary-arm64",
96-
"deploy_deb_testing-a6_x64": f"apttesting.datad0g.com/dists/pipeline-{pipeline_id}-a6-x86_64/6/binary-x86_64",
97-
"deploy_deb_testing-a6_arm64": f"apttesting.datad0g.com/dists/pipeline-{pipeline_id}-a6-arm64/6/binary-arm64",
94+
"deploy_deb_testing-a7_x64": f"apttesting.datad0g.com/datadog-agent/pipeline-{pipeline_id}-a7/dists/stable-x86_64/7/binary-amd64",
95+
"deploy_deb_testing-a7_arm64": f"apttesting.datad0g.com/datadog-agent/pipeline-{pipeline_id}-a7/dists/stable-arm64/7/binary-arm64",
96+
"deploy_deb_testing-a6_x64": f"apttesting.datad0g.com/datadog-agent/pipeline-{pipeline_id}-a6/dists/stable-x86_64/6/binary-amd64",
97+
"deploy_deb_testing-a6_arm64": f"apttesting.datad0g.com/datadog-agent/pipeline-{pipeline_id}-a6/dists/stable-arm64/6/binary-arm64",
9898
# Rpm
9999
"deploy_rpm_testing-a7_x64": f"yumtesting.datad0g.com/testing/pipeline-{pipeline_id}-a7/7/x86_64",
100100
"deploy_rpm_testing-a7_arm64": f"yumtesting.datad0g.com/testing/pipeline-{pipeline_id}-a7/7/aarch64",

0 commit comments

Comments
 (0)