Skip to content

Commit 7bafb13

Browse files
committed
Better flaky test check
Signed-off-by: Bob Weinand <[email protected]>
1 parent 57bff33 commit 7bafb13

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.circleci/continue_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3365,7 +3365,7 @@ jobs:
33653365
docker-compose --version
33663366
- run:
33673367
name: Clone System Tests repo
3368-
command: git clone https://github.com/DataDog/system-tests.git; pushd system-tests; git checkout luc/disable-tests-broken-by-design; popd
3368+
command: git clone https://github.com/DataDog/system-tests.git
33693369
- run:
33703370
name: Copy .tar.gz file to system test binaries folder
33713371
command: |

tests/ext/appsec/sca_test.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ for ($i = 0; $i < 100; ++$i) {
2121
foreach (file(__DIR__ . '/'.$id.'-telemetry.out') as $l) {
2222
if ($l) {
2323
$json = json_decode($l, true);
24-
if (($json["application"]["service_name"] ?? "") != "background_sender-php-service") {
24+
if ($json && ($json["application"]["service_name"] ?? "") != "background_sender-php-service") {
2525
array_push($batches, ...($json["request_type"] == "message-batch" ? $json["payload"] : [$json]));
2626
}
2727
}
@@ -44,5 +44,8 @@ for ($i = 0; $i < 100; ++$i) {
4444
}
4545
}
4646
}
47+
if ($i == 100) {
48+
var_dump(file(__DIR__ . '/'.$id.'-telemetry.out'));
49+
}
4750

4851
?>

0 commit comments

Comments
 (0)