From 261629beb4d9ba382aecd3a13da900b700640dbd Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 9 Nov 2022 16:23:01 +0000 Subject: [PATCH] packaging: staging artifacts with DEV=false (#33620) --- .ci/packaging.groovy | 4 +++- CHANGELOG.next.asciidoc | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/packaging.groovy b/.ci/packaging.groovy index b7276ef275ad..1f8f079629f2 100644 --- a/.ci/packaging.groovy +++ b/.ci/packaging.groovy @@ -394,8 +394,10 @@ def prepareE2ETestForPackage(String beat){ def release(type){ withBeatsEnv(type){ + // As agreed DEV=false for staging otherwise DEV=true + // this should avoid releasing binaries with the debug symbols and disabled most build optimizations. withEnv([ - "DEV=true" + "DEV=${!type.equals('staging')}" ]) { dockerLogin(secret: "${DOCKERELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}") dir("${env.BEATS_FOLDER}") { diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 56c028f1dd49..a26b011797dc 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -36,6 +36,7 @@ https://github.com/elastic/beats/compare/v8.2.0\...main[Check the HEAD diff] *Affecting all Beats* +- Re-enable build optimizations to reduce binary size and improve performance. {pull}33620[33620] - Fix namespacing for agent self-monitoring, CPU no longer reports as zero. {pull}32336[32336] - Fix namespacing on self-monitoring {pull}32336[32336] - Expand fields in `decode_json_fields` if target is set. {issue}31712[31712] {pull}32010[32010]