|
30 | 30 | from tasks.libs.common.utils import gitlab_section, timed |
31 | 31 | from tasks.libs.dependencies import get_effective_dependencies_env |
32 | 32 | from tasks.libs.releasing.version import get_version |
| 33 | +from tasks.rust_compression import build as rust_compression_build |
33 | 34 |
|
34 | 35 |
|
35 | 36 | def omnibus_run_task(ctx, task, target_project, base_dir, env, log_level="info", host_distribution=None): |
@@ -208,10 +209,14 @@ def build( |
208 | 209 | install_directory=None, |
209 | 210 | config_directory=None, |
210 | 211 | target_project=None, |
| 212 | + exclude_rust_compression=False, |
211 | 213 | ): |
212 | 214 | """ |
213 | 215 | Build the Agent packages with Omnibus Installer. |
214 | 216 | """ |
| 217 | + if not exclude_rust_compression: |
| 218 | + with gitlab_section("Build Rust compression library", collapsed=True): |
| 219 | + rust_compression_build(ctx, release=True) |
215 | 220 |
|
216 | 221 | flavor = AgentFlavor[flavor] |
217 | 222 | fips_mode = flavor.is_fips() |
@@ -416,12 +421,16 @@ def manifest( |
416 | 421 |
|
417 | 422 |
|
418 | 423 | @task() |
419 | | -def build_repackaged_agent(ctx, log_level="info"): |
| 424 | +def build_repackaged_agent(ctx, log_level="info", exclude_rust_compression=False): |
420 | 425 | """ |
421 | 426 | Create an Agent package by using an existing Agent package as a base and rebuilding the Agent binaries with the local checkout. |
422 | 427 |
|
423 | 428 | Currently only expected to work for debian packages, and requires the `dpkg` command to be available. |
424 | 429 | """ |
| 430 | + if not exclude_rust_compression: |
| 431 | + with gitlab_section("Build Rust compression library", collapsed=True): |
| 432 | + rust_compression_build(ctx, release=True) |
| 433 | + |
425 | 434 | # Make sure we let the user know that we're going to overwrite the existing Agent installation if present |
426 | 435 | agent_path = "/opt/datadog-agent" |
427 | 436 | if os.path.exists(agent_path): |
|
0 commit comments