Skip to content

Commit c2cd835

Browse files
committed
removed deprecated libunwind dependency settings
1 parent a223e16 commit c2cd835

File tree

7 files changed

+3
-25
lines changed

7 files changed

+3
-25
lines changed

.ci/Jenkinsfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pipeline {
3131
choice(name: 'AGENT_LOG_LEVEL', choices: LOG_LEVELS, description: "Agent's log level")
3232
choice(name: 'TESTS_LOG_LEVEL', choices: LOG_LEVELS, description: "Tests' log level")
3333
booleanParam(name: 'INCLUDE_TESTING', defaultValue: true, description: 'Should the testing stages be included?')
34-
booleanParam(name: 'ADD_LIBUNWIND_DEPENDENCY', defaultValue: false, description: 'Should Alpine (.apk) build have dependency on libunwind (to be able to log C call stack on crash)?')
3534
}
3635
stages {
3736
stage('Initializing'){
@@ -149,7 +148,7 @@ pipeline {
149148
// When running in the CI with multiple parallel stages
150149
// the access could be considered as a DDOS attack.
151150
retryWithSleep(retries: 3, seconds: 45, backoff: true) {
152-
sh script: "BUILD_ARCHITECTURE=${BUILD_ARCHITECTURE} PHP_VERSION=${PHP_VERSION} ADD_LIBUNWIND_DEPENDENCY=${params.ADD_LIBUNWIND_DEPENDENCY} make -f .ci/Makefile prepare", label: 'prepare docker image'
151+
sh script: "BUILD_ARCHITECTURE=${BUILD_ARCHITECTURE} PHP_VERSION=${PHP_VERSION} make -f .ci/Makefile prepare", label: 'prepare docker image'
153152
}
154153
unstash "built-extensions-${BUILD_ARCHITECTURE}"
155154
sh script: "BUILD_ARCHITECTURE=${BUILD_ARCHITECTURE} PHP_VERSION=${PHP_VERSION} make -f .ci/Makefile run-phpt-tests", label: 'run-phpt-tests'
@@ -604,7 +603,6 @@ def addEnvVarsFromParams(def withEnvList) {
604603
if (params.TESTS_LOG_LEVEL != null && !params.TESTS_LOG_LEVEL.equals(LOG_LEVEL_NOT_SET)) {
605604
withEnvList.add('ELASTIC_APM_PHP_TESTS_LOG_LEVEL=' + params.TESTS_LOG_LEVEL)
606605
}
607-
withEnvList.add('ADD_LIBUNWIND_DEPENDENCY=' + params.ADD_LIBUNWIND_DEPENDENCY)
608606
return withEnvList
609607
}
610608

.ci/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ PHP_VERSION ?= 7.2
1313
DOCKERFILE ?= Dockerfile
1414
LOOPS ?= 50
1515
SUFFIX :=
16-
ADD_LIBUNWIND_DEPENDENCY_BUILD_ARG_OPT:=
1716
ifeq ($(DOCKERFILE), Dockerfile.alpine)
1817
## This is only required to tag the docker images used for building/testing this project
1918
SUFFIX := -alpine
20-
ADD_LIBUNWIND_DEPENDENCY_BUILD_ARG_OPT:=--build-arg ADD_LIBUNWIND_DEPENDENCY=${ADD_LIBUNWIND_DEPENDENCY}
2119
endif
2220

2321
MAP_CONAN_HOME_TO_DOCKER_HOST_CMD_LINE_ARG:=
@@ -39,7 +37,6 @@ prepare: ## Build docker image for building and testing the project
3937
@echo "::group::$@" # Helping to group logs in GitHub actions
4038
docker build \
4139
--build-arg PHP_VERSION=${PHP_VERSION} \
42-
${ADD_LIBUNWIND_DEPENDENCY_BUILD_ARG_OPT} \
4340
--tag $(IMAGE):${PHP_VERSION}$(SUFFIX) \
4441
-f ${DOCKERFILE} .
4542
@echo "::endgroup::"

Dockerfile.alpine

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ RUN apk update \
1212
git \
1313
unzip
1414

15-
ARG ADD_LIBUNWIND_DEPENDENCY=false
16-
RUN echo "ADD_LIBUNWIND_DEPENDENCY: ${ADD_LIBUNWIND_DEPENDENCY}"
17-
ENV ADD_LIBUNWIND_DEPENDENCY=${ADD_LIBUNWIND_DEPENDENCY}
18-
RUN if [[ "${ADD_LIBUNWIND_DEPENDENCY}" = "true" ]] ; then apk add libunwind-dev ; fi
19-
ENV ELASTIC_APM_ASSUME_CAN_CAPTURE_C_STACK_TRACE=${ADD_LIBUNWIND_DEPENDENCY}
20-
2115
RUN docker-php-ext-install \
2216
mysqli \
2317
pcntl \

agent/native/ext/unit_tests/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ IF ( $ENV{CLION_IDE} )
8181
ADD_COMPILE_DEFINITIONS( ELASTIC_APM_UNDER_IDE )
8282
ENDIF()
8383

84-
IF ( "$ENV{ELASTIC_APM_ASSUME_CAN_CAPTURE_C_STACK_TRACE}" STREQUAL "true" )
85-
ADD_COMPILE_DEFINITIONS( ELASTIC_APM_ASSUME_CAN_CAPTURE_C_STACK_TRACE )
86-
ENDIF()
84+
ADD_COMPILE_DEFINITIONS( ELASTIC_APM_ASSUME_CAN_CAPTURE_C_STACK_TRACE )
8785

8886
IF ( WIN32 )
8987
ADD_COMPILE_DEFINITIONS( PHP_WIN32 )

packaging/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ tar-info: ## Show the tar package metadata
102102
prepare-apk: ## Build the docker image for the apk smoke tests
103103
@echo "::group::$@" # Helping to group logs in GitHub actions
104104
cd $(PWD)/packaging/test/alpine ;\
105-
docker build --build-arg PHP_VERSION=$(PHP_VERSION) --build-arg ADD_LIBUNWIND_DEPENDENCY=${ADD_LIBUNWIND_DEPENDENCY} -t $@ . || exit 1 ;\
105+
docker build --build-arg PHP_VERSION=$(PHP_VERSION) -t $@ . || exit 1 ;\
106106
cd -
107107
@echo "::endgroup::"
108108

packaging/test/alpine/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ RUN apk update \
1414
unzip \
1515
wget
1616

17-
ARG ADD_LIBUNWIND_DEPENDENCY=false
18-
RUN if [[ "${ADD_LIBUNWIND_DEPENDENCY}" = "true" ]] ; then apk add libunwind; fi
19-
2017
RUN docker-php-ext-install \
2118
mysqli \
2219
pcntl \

packaging/test/docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,44 +183,38 @@ services:
183183
dockerfile: Dockerfile
184184
args:
185185
- PHP_VERSION=8.2
186-
- ADD_LIBUNWIND_DEPENDENCY=
187186
apk-php81:
188187
image: elasticobservability/apm-agent-php-dev:packages-test-apk-php-8.1-0.0.1
189188
build:
190189
context: alpine
191190
dockerfile: Dockerfile
192191
args:
193192
- PHP_VERSION=8.1
194-
- ADD_LIBUNWIND_DEPENDENCY=
195193
apk-php80:
196194
image: elasticobservability/apm-agent-php-dev:packages-test-apk-php-8.0-0.0.1
197195
build:
198196
context: alpine
199197
dockerfile: Dockerfile
200198
args:
201199
- PHP_VERSION=8.0
202-
- ADD_LIBUNWIND_DEPENDENCY=
203200
apk-php74:
204201
image: elasticobservability/apm-agent-php-dev:packages-test-apk-php-7.4-0.0.1
205202
build:
206203
context: alpine
207204
dockerfile: Dockerfile
208205
args:
209206
- PHP_VERSION=7.4
210-
- ADD_LIBUNWIND_DEPENDENCY=
211207
apk-php73:
212208
image: elasticobservability/apm-agent-php-dev:packages-test-apk-php-7.3-0.0.1
213209
build:
214210
context: alpine
215211
dockerfile: Dockerfile
216212
args:
217213
- PHP_VERSION=7.3
218-
- ADD_LIBUNWIND_DEPENDENCY=
219214
apk-php72:
220215
image: elasticobservability/apm-agent-php-dev:packages-test-apk-php-7.2-0.0.1
221216
build:
222217
context: alpine
223218
dockerfile: Dockerfile
224219
args:
225220
- PHP_VERSION=7.2
226-
- ADD_LIBUNWIND_DEPENDENCY=

0 commit comments

Comments
 (0)