Skip to content

Commit c1fd94c

Browse files
estringanaAnilm3
andauthored
Fix failing appsec tests on pipeline (#2874)
Co-authored-by: Anil Mahtani <[email protected]>
1 parent bb96a53 commit c1fd94c

6 files changed

Lines changed: 13 additions & 5 deletions

File tree

.circleci/continue_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,9 @@ jobs:
14111411
command: |
14121412
export DEBIAN_FRONTEND=noninteractive
14131413
apt update
1414-
apt install -y wget sudo git g++ gcc gcovr cmake make curl libcurl4-gnutls-dev clang clang-tidy clang-format git php-dev php8.2-xml php-cgi cargo
1414+
apt install -y wget sudo git g++ gcc gcovr cmake make curl libcurl4-gnutls-dev clang clang-tidy clang-format git php-dev php8.2-xml php-cgi
1415+
curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y --default-toolchain "1.76.0"
1416+
echo 'export PATH=${PATH}:$HOME/.cargo/bin' >> $BASH_ENV
14151417
- run: git config --global --add safe.directory /home/circleci/datadog/appsec/third_party/libddwaf
14161418
- run:
14171419
name: CMake

appsec/src/extension/helper_process.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ dd_conn *nullable dd_helper_mgr_cur_conn(void)
129129
return NULL;
130130
}
131131

132-
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
133-
bool dd_on_runtime_path_update(zval *nullable old_val, zval *nonnull new_val, zend_string *nonnull new_str)
132+
bool dd_on_runtime_path_update(
133+
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
134+
zval *nullable old_val, zval *nonnull new_val,
135+
zend_string *nullable new_str)
134136
{
135137
UNUSED(old_val);
136138
UNUSED(new_str);

appsec/src/extension/helper_process.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ dd_conn *nullable dd_helper_mgr_acquire_conn(client_init_func nonnull, void *uns
2727
dd_conn *nullable dd_helper_mgr_cur_conn(void);
2828
void dd_helper_close_conn(void);
2929

30-
bool dd_on_runtime_path_update(
31-
zval *nullable old_value, zval *nonnull new_value, zend_string *nonnull new_str);
30+
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
31+
bool dd_on_runtime_path_update(zval *nullable old_value,
32+
zval *nonnull new_value, zend_string *nullable new_str);
3233

3334
#endif // DD_HELPER_MGR_H

appsec/tests/extension/report_backtrace_01.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Report backtrace
33
--ENV--
44
DD_TRACE_GENERATE_ROOT_SPAN=0
5+
DD_TRACE_AUTO_FLUSH_ENABLED=0
56
--INI--
67
extension=ddtrace.so
78
--FILE--

appsec/tests/extension/report_backtrace_05.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Trace are reported when helper indicates so
33
--ENV--
44
DD_TRACE_GENERATE_ROOT_SPAN=0
5+
DD_TRACE_AUTO_FLUSH_ENABLED=0
56
--INI--
67
extension=ddtrace.so
78
datadog.appsec.enabled=1

appsec/tests/extension/root_span_add_tag.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Test ddtrace_root_span_add_tag
33
--ENV--
44
DD_TRACE_GENERATE_ROOT_SPAN=0
5+
DD_TRACE_AUTO_FLUSH_ENABLED=0
56
DD_SERVICE=appsec_tests
67
--INI--
78
extension=ddtrace.so

0 commit comments

Comments
 (0)