Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from DataDog:main #51

Merged
merged 12 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab/binary_build/cluster_agent_cloudfoundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ cluster_agent_cloudfoundry-build_amd64:
- inv -e cluster-agent-cloudfoundry.build
- cd $CI_PROJECT_DIR/$CLUSTER_AGENT_CLOUDFOUNDRY_BINARIES_DIR
- mkdir -p $OMNIBUS_PACKAGE_DIR
- PACKAGE_VERSION=$(inv agent.version --url-safe --major-version 7) || exit $?
- PACKAGE_VERSION=$(inv agent.version --url-safe) || exit $?
- tar cf $OMNIBUS_PACKAGE_DIR/datadog-cluster-agent-cloudfoundry-$PACKAGE_VERSION-$ARCH.tar.xz datadog-cluster-agent-cloudfoundry
12 changes: 6 additions & 6 deletions .gitlab/binary_build/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build_dogstatsd_static-binary_x64:
- !reference [.retrieve_linux_go_deps]
script:
- inv check-go-version
- inv -e dogstatsd.build --static --major-version 7
- inv -e dogstatsd.build --static
- $S3_CP_CMD $CI_PROJECT_DIR/$STATIC_BINARIES_DIR/dogstatsd $S3_ARTIFACTS_URI/static/dogstatsd.$ARCH

build_dogstatsd_static-binary_arm64:
Expand All @@ -27,7 +27,7 @@ build_dogstatsd_static-binary_arm64:
- !reference [.retrieve_linux_go_deps]
script:
- inv check-go-version
- inv -e dogstatsd.build --static --major-version 7
- inv -e dogstatsd.build --static
- $S3_CP_CMD $CI_PROJECT_DIR/$STATIC_BINARIES_DIR/dogstatsd $S3_ARTIFACTS_URI/static/dogstatsd.$ARCH

build_dogstatsd-binary_x64:
Expand All @@ -42,7 +42,7 @@ build_dogstatsd-binary_x64:
- !reference [.retrieve_linux_go_deps]
script:
- inv check-go-version
- inv -e dogstatsd.build --major-version 7
- inv -e dogstatsd.build
- $S3_CP_CMD $CI_PROJECT_DIR/$DOGSTATSD_BINARIES_DIR/dogstatsd $S3_ARTIFACTS_URI/dogstatsd/dogstatsd

build_dogstatsd-binary_arm64:
Expand All @@ -59,7 +59,7 @@ build_dogstatsd-binary_arm64:
- !reference [.retrieve_linux_go_deps]
script:
- inv check-go-version
- inv -e dogstatsd.build --major-version 7
- inv -e dogstatsd.build
- $S3_CP_CMD $CI_PROJECT_DIR/$DOGSTATSD_BINARIES_DIR/dogstatsd $S3_ARTIFACTS_URI/dogstatsd/dogstatsd.$ARCH

# IoT Agent builds to make sure the build is not broken because of build flags
Expand All @@ -77,7 +77,7 @@ build_iot_agent-binary_x64:
- !reference [.retrieve_linux_go_deps]
script:
- inv check-go-version
- inv -e agent.build --flavor iot --major-version 7
- inv -e agent.build --flavor iot
- $S3_CP_CMD $CI_PROJECT_DIR/$AGENT_BINARIES_DIR/agent $S3_ARTIFACTS_URI/iot/agent

build_iot_agent-binary_arm64:
Expand All @@ -93,5 +93,5 @@ build_iot_agent-binary_arm64:
- !reference [.retrieve_linux_go_deps]
script:
- inv check-go-version
- inv -e agent.build --flavor iot --major-version 7
- inv -e agent.build --flavor iot

4 changes: 2 additions & 2 deletions .gitlab/deploy_containers/deploy_containers_a7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include:
stage: deploy_containers
dependencies: []
before_script:
- if [[ "$VERSION" == "" ]]; then VERSION="$(inv agent.version --major-version 7 --url-safe --pipeline-id $PARENT_PIPELINE_ID)" || exit $?; fi
- if [[ "$VERSION" == "" ]]; then VERSION="$(inv agent.version --url-safe --pipeline-id $PARENT_PIPELINE_ID)" || exit $?; fi
- export IMG_BASE_SRC="${SRC_AGENT}:v${PARENT_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}"
- export IMG_LINUX_SOURCES="${IMG_BASE_SRC}-7${JMX}-amd64,${IMG_BASE_SRC}-7${JMX}-arm64"
- export IMG_WINDOWS_SOURCES="${IMG_BASE_SRC}-7${JMX}-win1809${FLAVOR}-amd64,${IMG_BASE_SRC}-7${JMX}-winltsc2022${FLAVOR}-amd64"
Expand Down Expand Up @@ -132,7 +132,7 @@ deploy_containers-dogstatsd:
!reference [.manual_on_deploy_auto_on_rc]
dependencies: []
before_script:
- VERSION="$(inv agent.version --major-version 7 --url-safe --pipeline-id $PARENT_PIPELINE_ID)" || exit $?
- VERSION="$(inv agent.version --url-safe --pipeline-id $PARENT_PIPELINE_ID)" || exit $?
- export IMG_SOURCES="${SRC_DSD}:v${PARENT_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-amd64,${SRC_DSD}:v${PARENT_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-arm64"
- export IMG_DESTINATIONS="${DSD_REPOSITORY}:${VERSION}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include:
stage: deploy_cws_instrumentation
dependencies: []
before_script:
- if [[ "$VERSION" == "" ]]; then VERSION="$(inv agent.version --major-version 7 --url-safe)" || exit $?; fi
- if [[ "$VERSION" == "" ]]; then VERSION="$(inv agent.version --url-safe)" || exit $?; fi
- if [[ "$CWS_INSTRUMENTATION_REPOSITORY" == "" ]]; then export CWS_INSTRUMENTATION_REPOSITORY="cws-instrumentation"; fi
- export IMG_BASE_SRC="${SRC_CWS_INSTRUMENTATION}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}"
- export IMG_SOURCES="${IMG_BASE_SRC}-amd64,${IMG_BASE_SRC}-arm64"
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/deploy_dca/deploy_dca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ include:
- job: "docker_build_cluster_agent_arm64"
artifacts: false
before_script:
- if [[ "$VERSION" == "" ]]; then VERSION="$(inv agent.version --major-version 7 --url-safe)" || exit $?; fi
- if [[ "$VERSION" == "" ]]; then VERSION="$(inv agent.version --url-safe)" || exit $?; fi
- if [[ "$CLUSTER_AGENT_REPOSITORY" == "" ]]; then export CLUSTER_AGENT_REPOSITORY="cluster-agent"; fi
- export IMG_BASE_SRC="${SRC_DCA}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}"
- export IMG_SOURCES="${IMG_BASE_SRC}-amd64,${IMG_BASE_SRC}-arm64"
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/deploy_packages/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ deploy_staging_dsd:
needs: ["build_dogstatsd-binary_x64"]
script:
- $S3_CP_CMD $S3_ARTIFACTS_URI/dogstatsd/dogstatsd ./dogstatsd
- PACKAGE_VERSION=$(inv agent.version --url-safe --major-version 7) || exit $?
- PACKAGE_VERSION=$(inv agent.version --url-safe) || exit $?
- $S3_CP_CMD ./dogstatsd $S3_DSD6_URI/linux/dogstatsd-$PACKAGE_VERSION --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers full=id=3a6e02b08553fd157ae3fb918945dd1eaae5a1aa818940381ef07a430cf25732

# deploy iot-agent x64 binary to staging bucket
Expand All @@ -145,7 +145,7 @@ deploy_staging_iot_agent:
needs: ["build_iot_agent-binary_x64"]
script:
- $S3_CP_CMD $S3_ARTIFACTS_URI/iot/agent ./agent
- PACKAGE_VERSION=$(inv agent.version --url-safe --major-version 7) || exit $?
- PACKAGE_VERSION=$(inv agent.version --url-safe) || exit $?
- $S3_CP_CMD ./agent $S3_DSD6_URI/linux/iot/agent-$PACKAGE_VERSION --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers full=id=3a6e02b08553fd157ae3fb918945dd1eaae5a1aa818940381ef07a430cf25732

# Datadog Installer
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/e2e/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ new-e2e-installer-windows:
# Must run before new_e2e_template changes the aws profile
# Note: this is similar to the WINDOWS_AGENT_VERSION in new-e2e_windows_msi but this job is running cross platforms
# Note 2: new_e2e_template does not define AGENT_MAJOR_VERSION, so define it as 7 below.
- CURRENT_AGENT_VERSION=$(invoke agent.version --major-version 7) || exit $?; export CURRENT_AGENT_VERSION
- CURRENT_AGENT_VERSION=$(invoke agent.version) || exit $?; export CURRENT_AGENT_VERSION
- export STABLE_AGENT_VERSION_PACKAGE=$(curl -sS https://hub.docker.com/v2/namespaces/datadog/repositories/agent-package/tags | jq -r '.results[] | .name' | sort | tail -n 2 | head -n 1)
- export STABLE_INSTALLER_VERSION_PACKAGE=$(curl -sS https://hub.docker.com/v2/namespaces/datadog/repositories/installer-package/tags | jq -r '.results[] | .name' | sort | tail -n 2 | head -n 1)
- !reference [.new_e2e_template, before_script]
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/e2e_install_packages/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
variables:
TARGETS: ./tests/agent-platform/install-script
TEAM: agent-delivery
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --major-version $AGENT_MAJOR_VERSION --arch $E2E_ARCH --flavor $FLAVOR --no-verbose
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --arch $E2E_ARCH --flavor $FLAVOR --no-verbose

.new-e2e_step_by_step:
stage: e2e_install_packages
variables:
TARGETS: ./tests/agent-platform/step-by-step
TEAM: agent-delivery
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --major-version $AGENT_MAJOR_VERSION --arch $E2E_ARCH --flavor $FLAVOR
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --arch $E2E_ARCH --flavor $FLAVOR

.new-e2e_script_upgrade7:
stage: e2e_install_packages
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/e2e_install_packages/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
variables:
TARGETS: ./tests/agent-platform/install-script
TEAM: agent-delivery
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --major-version $AGENT_MAJOR_VERSION --arch $E2E_ARCH --flavor $FLAVOR
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --arch $E2E_ARCH --flavor $FLAVOR

.new-e2e_suse_a7_x86_64:
variables:
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/e2e_install_packages/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
variables:
TARGETS: ./tests/agent-platform/install-script
TEAM: agent-delivery
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --major-version $AGENT_MAJOR_VERSION --arch $E2E_ARCH --flavor $FLAVOR
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --arch $E2E_ARCH --flavor $FLAVOR

.new-e2e_step_by_step:
variables:
TARGETS: ./tests/agent-platform/step-by-step
TEAM: agent-delivery
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --major-version $AGENT_MAJOR_VERSION --arch $E2E_ARCH --flavor $FLAVOR
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --arch $E2E_ARCH --flavor $FLAVOR

.new-e2e_ubuntu_a7_x86_64:
variables:
Expand Down
8 changes: 4 additions & 4 deletions .gitlab/e2e_install_packages/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
before_script:
# WINDOWS_AGENT_VERSION is used to verify the installed agent version
# Must run before new_e2e_template changes the aws profile
- WINDOWS_AGENT_VERSION=$(invoke agent.version --major-version $AGENT_MAJOR_VERSION) || exit $?; export WINDOWS_AGENT_VERSION
- WINDOWS_AGENT_VERSION=$(invoke agent.version) || exit $?; export WINDOWS_AGENT_VERSION
- !reference [.new_e2e_template, before_script]
script:
# LAST_STABLE_VERSION is used for upgrade test
- export LAST_STABLE_VERSION=$(invoke release.get-release-json-value "last_stable::$AGENT_MAJOR_VERSION")
- export LAST_STABLE_VERSION=$(invoke release.get-release-json-value "last_stable::7")
- !reference [.new_e2e_template, script]

.new-e2e_windows_domain_test:
Expand All @@ -24,11 +24,11 @@
before_script:
# WINDOWS_AGENT_VERSION is used to verify the installed agent version
# Must run before new_e2e_template changes the aws profile
- WINDOWS_AGENT_VERSION=$(invoke agent.version --major-version $AGENT_MAJOR_VERSION) || exit $?; export WINDOWS_AGENT_VERSION
- WINDOWS_AGENT_VERSION=$(invoke agent.version) || exit $?; export WINDOWS_AGENT_VERSION
- !reference [.new_e2e_template, before_script]
script:
# LAST_STABLE_VERSION is used for upgrade test
- export LAST_STABLE_VERSION=$(invoke release.get-release-json-value "last_stable::$AGENT_MAJOR_VERSION")
- export LAST_STABLE_VERSION=$(invoke release.get-release-json-value "last_stable::7")
- !reference [.new_e2e_template, script]

.new-e2e_windows_installer_v7_tests:
Expand Down
7 changes: 3 additions & 4 deletions .gitlab/kitchen_testing/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
rules:
!reference [.on_kitchen_tests]
variables:
AGENT_MAJOR_VERSION: 7
DD_PIPELINE_ID: $CI_PIPELINE_ID-a7


Expand All @@ -90,16 +89,16 @@

.kitchen_test_chef:
script:
- tasks/run-test-kitchen.sh chef-test $AGENT_MAJOR_VERSION
- tasks/run-test-kitchen.sh chef-test 7

.kitchen_test_upgrade5:
script:
- tasks/run-test-kitchen.sh upgrade5-test $AGENT_MAJOR_VERSION
- tasks/run-test-kitchen.sh upgrade5-test 7

.kitchen_test_upgrade7:
script:
- export LAST_STABLE_VERSION=$(cd ../.. && invoke release.get-release-json-value "last_stable::7")
- tasks/run-test-kitchen.sh upgrade7-test $AGENT_MAJOR_VERSION
- tasks/run-test-kitchen.sh upgrade7-test 7

# Kitchen: Agent flavor
# -------------------------------
Expand Down
4 changes: 1 addition & 3 deletions .gitlab/package_build/dmg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- $S3_CP_CMD $S3_ARTIFACTS_URI/agent-version.cache .
- export VERSION_CACHE_CONTENT=$(cat agent-version.cache | base64 -)
- python3 -m pip install -r tasks/libs/requirements-github.txt
- inv -e github.trigger-macos --workflow-type "build" --datadog-agent-ref "$CI_COMMIT_SHA" --release-version "$RELEASE_VERSION" --major-version "$AGENT_MAJOR_VERSION" --destination "$OMNIBUS_PACKAGE_DIR" --version-cache "$VERSION_CACHE_CONTENT" --integrations-core-ref "$INTEGRATIONS_CORE_VERSION"
- inv -e github.trigger-macos --workflow-type "build" --datadog-agent-ref "$CI_COMMIT_SHA" --release-version "$RELEASE_VERSION" --destination "$OMNIBUS_PACKAGE_DIR" --version-cache "$VERSION_CACHE_CONTENT" --integrations-core-ref "$INTEGRATIONS_CORE_VERSION"
- !reference [.upload_sbom_artifacts]
timeout: 3h # MacOS builds can take 1h~2h, increase the timeout to avoid timeout flakes
artifacts:
Expand All @@ -29,8 +29,6 @@ agent_dmg-x64-a7:
image: registry.ddbuild.io/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
tags: ["arch:amd64"]
needs: ["go_mod_tidy_check"]
variables:
AGENT_MAJOR_VERSION: 7
timeout: 6h
before_script:
- export RELEASE_VERSION=$RELEASE_VERSION_7
3 changes: 1 addition & 2 deletions .gitlab/package_build/heroku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- $S3_CP_CMD $S3_PERMANENT_ARTIFACTS_URI/llc-$CLANG_LLVM_VER.${PACKAGE_ARCH} /tmp/system-probe/llc-bpf
- cp $CI_PROJECT_DIR/minimized-btfs.tar.xz /tmp/system-probe/minimized-btfs.tar.xz
- chmod 0744 /tmp/system-probe/clang-bpf /tmp/system-probe/llc-bpf
- inv -e omnibus.build --release-version "$RELEASE_VERSION" --major-version "$AGENT_MAJOR_VERSION" --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --system-probe-bin=/tmp/system-probe --flavor heroku
- inv -e omnibus.build --release-version "$RELEASE_VERSION" --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --system-probe-bin=/tmp/system-probe --flavor heroku
- ls -la $OMNIBUS_PACKAGE_DIR
- !reference [.lint_linux_packages]
- !reference [.upload_sbom_artifacts]
Expand All @@ -53,4 +53,3 @@ agent_heroku_deb-x64-a7:
variables:
DESTINATION_DBG_DEB: "datadog-heroku-agent-dbg_7_amd64.deb"
RELEASE_VERSION: $RELEASE_VERSION_7
AGENT_MAJOR_VERSION: 7
6 changes: 1 addition & 5 deletions .gitlab/package_build/installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- chmod 0744 /tmp/system-probe/clang-bpf /tmp/system-probe/llc-bpf
# NOTE: for now, we consider "ociru" to be a "redhat_target" in omnibus/lib/ostools.rb
# if we ever start building on a different platform, that might need to change
- inv -e omnibus.build --release-version "$RELEASE_VERSION" --major-version "$AGENT_MAJOR_VERSION" --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --system-probe-bin=/tmp/system-probe --host-distribution=ociru --install-directory="$INSTALL_DIR"
- inv -e omnibus.build --release-version "$RELEASE_VERSION" --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --system-probe-bin=/tmp/system-probe --host-distribution=ociru --install-directory="$INSTALL_DIR"
- ls -la $OMNIBUS_PACKAGE_DIR
- !reference [.upload_sbom_artifacts]
variables:
Expand Down Expand Up @@ -51,7 +51,6 @@ datadog-agent-oci-x64-a7:
"generate_minimized_btfs_x64",
]
variables:
AGENT_MAJOR_VERSION: 7
PACKAGE_ARCH: amd64
DESTINATION_OCI: "datadog-agent-7-remote-updater-amd64.tar.xz"
DD_CC: 'x86_64-unknown-linux-gnu-gcc'
Expand All @@ -76,7 +75,6 @@ datadog-agent-oci-arm64-a7:
"generate_minimized_btfs_arm64",
]
variables:
AGENT_MAJOR_VERSION: 7
PACKAGE_ARCH: arm64
DESTINATION_OCI: "datadog-agent-7-remote-updater-arm64.tar.xz"
DD_CC: 'aarch64-unknown-linux-gnu-gcc'
Expand All @@ -97,7 +95,6 @@ bootstrapper_build:
tags: ["arch:amd64"]
needs: ["go_mod_tidy_check", "go_deps"]
variables:
AGENT_MAJOR_VERSION: 7
KUBERNETES_CPU_REQUEST: 8
KUBERNETES_MEMORY_REQUEST: "16Gi"
KUBERNETES_MEMORY_LIMIT: "16Gi"
Expand Down Expand Up @@ -132,7 +129,6 @@ bootstrapper_build:
- ls -la $OMNIBUS_PACKAGE_DIR
- !reference [.upload_sbom_artifacts]
variables:
AGENT_MAJOR_VERSION: 7
KUBERNETES_CPU_REQUEST: 8
KUBERNETES_MEMORY_REQUEST: "16Gi"
KUBERNETES_MEMORY_LIMIT: "16Gi"
Expand Down
8 changes: 3 additions & 5 deletions .gitlab/package_build/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- $S3_CP_CMD $S3_PERMANENT_ARTIFACTS_URI/llc-$CLANG_LLVM_VER.${PACKAGE_ARCH} /tmp/system-probe/llc-bpf
- cp $CI_PROJECT_DIR/minimized-btfs.tar.xz /tmp/system-probe/minimized-btfs.tar.xz
- chmod 0744 /tmp/system-probe/clang-bpf /tmp/system-probe/llc-bpf
- inv -e omnibus.build --release-version "$RELEASE_VERSION" --major-version "$AGENT_MAJOR_VERSION" --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --system-probe-bin=/tmp/system-probe --flavor "$FLAVOR" --config-directory "$CONFIG_DIR" --install-directory "$INSTALL_DIR"
- inv -e omnibus.build --release-version "$RELEASE_VERSION" --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --system-probe-bin=/tmp/system-probe --flavor "$FLAVOR" --config-directory "$CONFIG_DIR" --install-directory "$INSTALL_DIR"
- ls -la $OMNIBUS_PACKAGE_DIR
- !reference [.upload_sbom_artifacts]

Expand Down Expand Up @@ -57,14 +57,12 @@

.agent_7_build:
variables:
AGENT_MAJOR_VERSION: 7
FLAVOR: base
before_script:
- export RELEASE_VERSION=$RELEASE_VERSION_7

.ot_agent_7_build:
variables:
AGENT_MAJOR_VERSION: 7
FLAVOR: ot
before_script:
- export RELEASE_VERSION=$RELEASE_VERSION_7
Expand Down Expand Up @@ -94,7 +92,7 @@ datadog-ot-agent-7-arm64:
- !reference [.cache_omnibus_ruby_deps, setup]
# remove artifacts from previous pipelines that may come from the cache
- rm -rf $OMNIBUS_PACKAGE_DIR/*
- inv -e omnibus.build --release-version "$RELEASE_VERSION" --major-version 7 --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --system-probe-bin=/tmp/system-probe --flavor iot
- inv -e omnibus.build --release-version "$RELEASE_VERSION" --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --system-probe-bin=/tmp/system-probe --flavor iot
- ls -la $OMNIBUS_PACKAGE_DIR
- !reference [.upload_sbom_artifacts]
before_script:
Expand Down Expand Up @@ -138,7 +136,7 @@ iot-agent-armhf:
- !reference [.cache_omnibus_ruby_deps, setup]
# remove artifacts from previous pipelines that may come from the cache
- rm -rf $OMNIBUS_PACKAGE_DIR/*
- inv -e omnibus.build --release-version $RELEASE_VERSION_7 --major-version 7 --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --target-project dogstatsd
- inv -e omnibus.build --release-version $RELEASE_VERSION_7 --base-dir $OMNIBUS_BASE_DIR ${USE_S3_CACHING} --skip-deps --go-mod-cache="$GOPATH/pkg/mod" --target-project dogstatsd
- ls -la $OMNIBUS_PACKAGE_DIR
- !reference [.upload_sbom_artifacts]
variables:
Expand Down
6 changes: 2 additions & 4 deletions .gitlab/package_build/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
-e OMNIBUS_TARGET=${OMNIBUS_TARGET}
-e WINDOWS_BUILDER=true
-e RELEASE_VERSION="$RELEASE_VERSION"
-e MAJOR_VERSION="$AGENT_MAJOR_VERSION"
-e MAJOR_VERSION="7"
-e INTEGRATIONS_CORE_VERSION="$INTEGRATIONS_CORE_VERSION"
-e GOMODCACHE="c:\modcache"
-e AWS_NETWORKING=true
Expand Down Expand Up @@ -60,7 +60,6 @@ windows_msi_and_bosh_zip_x64-a7:
- when: on_success
variables:
ARCH: "x64"
AGENT_MAJOR_VERSION: 7
before_script:
- set RELEASE_VERSION $RELEASE_VERSION_7
timeout: 2h
Expand All @@ -75,7 +74,6 @@ windows_zip_agent_binaries_x64-a7:
needs: ["go_mod_tidy_check", "go_deps"]
variables:
ARCH: "x64"
AGENT_MAJOR_VERSION: 7
OMNIBUS_TARGET: agent_binaries
before_script:
- set RELEASE_VERSION $RELEASE_VERSION_7
Expand All @@ -96,7 +94,7 @@ windows_zip_agent_binaries_x64-a7:
-e OMNIBUS_TARGET=${OMNIBUS_TARGET}
-e WINDOWS_BUILDER=true
-e RELEASE_VERSION="$RELEASE_VERSION"
-e MAJOR_VERSION="$AGENT_MAJOR_VERSION"
-e MAJOR_VERSION="7"
-e INTEGRATIONS_CORE_VERSION="$INTEGRATIONS_CORE_VERSION"
-e GOMODCACHE="c:\modcache"
-e AWS_NETWORKING=true
Expand Down
Loading
Loading