Skip to content

Commit 190d15a

Browse files
test changes
1 parent 4430669 commit 190d15a

File tree

10 files changed

+16
-45
lines changed

10 files changed

+16
-45
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ variables:
161161
BTFHUB_ARCHIVE_BRANCH: main
162162
GENERAL_ARTIFACTS_CACHE_BUCKET_URL: https://dd-agent-omnibus.s3.amazonaws.com
163163
S3_DSD6_URI: s3://dsd6-staging
164-
RELEASE_VERSION: nightly
164+
RELEASE_VERSION: release
165165

166166
# Build images versions
167167
# To use images from datadog-agent-buildimages dev branches, set the corresponding

.gitlab/binary_build/cluster_agent.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
.cluster_agent-build_common:
33
stage: binary_build
4-
rules:
4+
rules:
55
- !reference [.except_mergequeue]
66
- when: on_success
77
needs: ["go_mod_tidy_check", "go_deps"]
88
before_script:
99
- !reference [.retrieve_linux_go_deps]
1010
script:
1111
- dda inv -- check-go-version
12-
- dda inv -- -e cluster-agent.build --release-version "$RELEASE_VERSION"
12+
- dda inv -- -e cluster-agent.build
1313
artifacts:
1414
paths:
1515
- $CLUSTER_AGENT_BINARIES_DIR/datadog-cluster-agent

release.json

-14
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
55
"6": "6.53.1",
66
"7": "7.64.2"
77
},
8-
"nightly": {
9-
"OMNIBUS_RUBY_VERSION": "95630818722a63cb9e6f3163984f363d799633a1",
10-
"JMXFETCH_VERSION": "0.49.6",
11-
"JMXFETCH_HASH": "f06bdac1f8ec41daf9b9839ac883f1865a068b04810ea82197b8a6afb9369cb9",
12-
"MACOS_BUILD_VERSION": "master",
13-
"WINDOWS_DDNPM_DRIVER": "release-signed",
14-
"WINDOWS_DDNPM_VERSION": "2.7.1",
15-
"WINDOWS_DDNPM_SHASUM": "0f4665761324e1fef1c21651be5b70e79c72b5e7e5662d74619e7db2b27d5bc2",
16-
"SECURITY_AGENT_POLICIES_VERSION": "master",
17-
"WINDOWS_DDPROCMON_DRIVER": "release-signed",
18-
"WINDOWS_DDPROCMON_VERSION": "1.2.0",
19-
"WINDOWS_DDPROCMON_SHASUM": "e5525959521254ba8218f64f644ad19cdeb720aa48ee83eb5e402a8d1643e32e",
20-
"INTEGRATIONS_CORE_VERSION": "ed2c86a680621dfc5416a1751b6bc20cd8841c4b"
21-
},
228
"release": {
239
"INTEGRATIONS_CORE_VERSION": "7.56.0-rc.2",
2410
"OMNIBUS_RUBY_VERSION": "7.56.0-rc.1",

tasks/cluster_agent.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def build(
3535
development=True,
3636
skip_assets=False,
3737
policies_version=None,
38-
release_version="nightly",
3938
):
4039
"""
4140
Build Cluster Agent
@@ -57,11 +56,11 @@ def build(
5756
)
5857

5958
if policies_version is None:
60-
print(f"Loading release versions for {release_version}")
61-
env = load_release_versions(ctx, release_version)
59+
print(f"Loading release versions for release")
60+
env = load_release_versions(ctx)
6261
if "SECURITY_AGENT_POLICIES_VERSION" in env:
6362
policies_version = env["SECURITY_AGENT_POLICIES_VERSION"]
64-
print(f"Security Agent polices for {release_version}: {policies_version}")
63+
print(f"Security Agent polices for release: {policies_version}")
6564

6665
build_context = "Dockerfiles/cluster-agent"
6766
policies_path = f"{build_context}/security-agent-policies"

tasks/github_tasks.py

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def trigger_macos(
7272
_,
7373
workflow_type="build",
7474
datadog_agent_ref=None,
75-
release_version="nightly",
7675
major_version="7",
7776
destination=".",
7877
version_cache=None,

tasks/libs/pipeline/tools.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def gracefully_cancel_pipeline(repo: Project, pipeline: ProjectPipeline, force_c
116116
def trigger_agent_pipeline(
117117
repo: Project,
118118
ref=None,
119-
release_version="nightly",
120119
branch="nightly",
121120
deploy=False,
122121
deploy_installer=False,
@@ -158,7 +157,7 @@ def trigger_agent_pipeline(
158157

159158
args["RUN_KMT_TESTS"] = "on" if kmt_tests else "off"
160159

161-
args["RELEASE_VERSION"] = release_version
160+
args["RELEASE_VERSION"] = "release"
162161

163162
if branch is not None:
164163
args["BUCKET_BRANCH"] = branch

tasks/libs/releasing/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def get_version_numeric_only(ctx, major_version='7'):
381381
return version
382382

383383

384-
def load_release_versions(_, target_version):
384+
def load_release_versions(_, target_version="release"):
385385
with open("release.json") as f:
386386
versions = json.load(f)
387387
if target_version in versions:

tasks/msi.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def _get_vs_build_command(cmd, vstudio_root=None):
7272
return cmd
7373

7474

75-
def _get_env(ctx, major_version='7', release_version='nightly', flavor=None):
76-
env = load_release_versions(ctx, release_version)
75+
def _get_env(ctx, major_version='7', flavor=None):
76+
env = load_release_versions(ctx)
7777

7878
if flavor is None:
7979
flavor = os.getenv("AGENT_FLAVOR", "")
@@ -292,15 +292,14 @@ def build(
292292
vstudio_root=None,
293293
arch="x64",
294294
major_version='7',
295-
release_version='nightly',
296295
flavor=None,
297296
debug=False,
298297
build_upgrade=False,
299298
):
300299
"""
301300
Build the MSI installer for the agent
302301
"""
303-
env = _get_env(ctx, major_version, release_version, flavor=flavor)
302+
env = _get_env(ctx, major_version, flavor=flavor)
304303
env['OMNIBUS_TARGET'] = 'main'
305304
configuration = _msbuild_configuration(debug=debug)
306305
build_outdir = build_out_dir(arch, configuration)
@@ -399,11 +398,11 @@ def build_installer(ctx, vstudio_root=None, arch="x64", debug=False):
399398

400399

401400
@task
402-
def test(ctx, vstudio_root=None, arch="x64", major_version='7', release_version='nightly', debug=False):
401+
def test(ctx, vstudio_root=None, arch="x64", major_version='7', debug=False):
403402
"""
404403
Run the unit test for the MSI installer for the agent
405404
"""
406-
env = _get_env(ctx, major_version, release_version)
405+
env = _get_env(ctx, major_version)
407406
configuration = _msbuild_configuration(debug=debug)
408407
build_outdir = build_out_dir(arch, configuration)
409408

@@ -498,7 +497,7 @@ def get_msm_info(ctx, release_version):
498497
"""
499498
Get the merge module info from the release.json for the given release_version
500499
"""
501-
env = load_release_versions(ctx, release_version)
500+
env = load_release_versions(ctx)
502501
base_url = "https://s3.amazonaws.com/dd-windowsfilter/builds"
503502
msm_info = {}
504503
if 'WINDOWS_DDNPM_VERSION' in env:

tasks/omnibus.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def bundle_install_omnibus(ctx, gem_path=None, env=None, max_try=2):
7676
def get_omnibus_env(
7777
ctx,
7878
skip_sign=False,
79-
release_version="nightly",
8079
major_version='7',
8180
hardened_runtime=False,
8281
system_probe_bin=None,
@@ -86,7 +85,7 @@ def get_omnibus_env(
8685
custom_config_dir=None,
8786
fips_mode=False,
8887
):
89-
env = load_release_versions(ctx, release_version)
88+
env = load_release_versions(ctx)
9089

9190
# If the host has a GOMODCACHE set, try to reuse it
9291
if not go_mod_cache and os.environ.get('GOMODCACHE'):
@@ -217,7 +216,6 @@ def build(
217216
env = get_omnibus_env(
218217
ctx,
219218
skip_sign=skip_sign,
220-
release_version=release_version,
221219
major_version=major_version,
222220
hardened_runtime=hardened_runtime,
223221
system_probe_bin=system_probe_bin,
@@ -350,7 +348,6 @@ def manifest(
350348
base_dir=None,
351349
gem_path=None,
352350
skip_sign=False,
353-
release_version="nightly",
354351
major_version='7',
355352
hardened_runtime=False,
356353
system_probe_bin=None,
@@ -363,7 +360,6 @@ def manifest(
363360
env = get_omnibus_env(
364361
ctx,
365362
skip_sign=skip_sign,
366-
release_version=release_version,
367363
major_version=major_version,
368364
hardened_runtime=hardened_runtime,
369365
system_probe_bin=system_probe_bin,

tasks/pipeline.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ def run(
153153
ctx,
154154
git_ref="",
155155
here=False,
156-
use_release_entry=False,
157156
major_versions=None,
158157
repo_branch="dev",
159158
deploy=False,
@@ -177,9 +176,6 @@ def run(
177176
Use --rc-build to mark the build as Release Candidate.
178177
Use --rc-k8s-deployments to trigger a child pipeline that will deploy Release Candidate build to staging k8s clusters.
179178
180-
By default, the nightly release.json entry is used.
181-
Use the --use-release-entry option to use the release release.json entry instead.
182-
183179
By default, the pipeline builds both Agent 6 and Agent 7.
184180
Use the --major-versions option to specify a comma-separated string of the major Agent versions to build
185181
(eg. '6' to build Agent 6 only, '6,7' to build both Agent 6 and Agent 7).
@@ -203,16 +199,14 @@ def run(
203199
dda inv pipeline.run --here --e2e-tests
204200
205201
Run a deploy pipeline on the 7.32.0 tag, uploading the artifacts to the stable branch of the staging repositories:
206-
dda inv pipeline.run --deploy --use-release-entries --major-versions "6,7" --git-ref "7.32.0" --repo-branch "stable"
202+
dda inv pipeline.run --deploy --major-versions "6,7" --git-ref "7.32.0" --repo-branch "stable"
207203
"""
208204

209205
repo = get_gitlab_repo()
210206

211207
if (git_ref == "" and not here) or (git_ref != "" and here):
212208
raise Exit("ERROR: Exactly one of --here or --git-ref <git ref> must be specified.", code=1)
213209

214-
release_version = "release" if use_release_entry else "nightly"
215-
216210
if major_versions:
217211
print(
218212
"[WARNING] --major-versions option will be deprecated soon. Both Agent 6 & 7 will be run everytime.",
@@ -259,7 +253,6 @@ def run(
259253
pipeline = trigger_agent_pipeline(
260254
repo,
261255
git_ref,
262-
release_version,
263256
repo_branch,
264257
deploy=deploy,
265258
deploy_installer=deploy_installer,

0 commit comments

Comments
 (0)