Skip to content

Commit bf5d4d2

Browse files
committed
ci(featureflags): add Feature flags test job and make target
Wires the `featureflags` phpunit testsuite (tests/OpenFeature) into CI per bwoebi's PR #3630 feedback. Gated to PHP 8.0+ because open-feature/sdk requires PHP 8.
1 parent 8ecafb4 commit bf5d4d2

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.gitlab/generate-tracer.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,24 @@ function before_script_steps($with_docker_auth = false) {
386386
- make test_unit PHPUNIT_JUNIT="artifacts/tests/php-tests.xml" <?= ASSERT_NO_MEMLEAKS ?>
387387
<?php after_script(); ?>
388388

389+
<?php if (version_compare($major_minor, "8.0", ">=")): ?>
390+
"Feature flags tests: [<?= $major_minor ?>]":
391+
extends: .debug_test
392+
needs:
393+
- job: "compile extension: debug"
394+
parallel:
395+
matrix:
396+
- PHP_MAJOR_MINOR: "<?= $major_minor ?>"
397+
ARCH: "amd64"
398+
artifacts: true
399+
variables:
400+
PHP_MAJOR_MINOR: "<?= $major_minor ?>"
401+
ARCH: "amd64"
402+
script:
403+
- make test_featureflags PHPUNIT_JUNIT="artifacts/tests/php-tests.xml" <?= ASSERT_NO_MEMLEAKS ?>
404+
<?php after_script(); ?>
405+
<?php endif; ?>
406+
389407
"API unit tests: [<?= $major_minor ?>]":
390408
extends: .debug_test
391409
needs:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,9 @@ test_distributed_tracing_coverage:
13151315
test_metrics: global_test_run_dependencies
13161316
$(call run_tests,--testsuite=metrics $(TESTS))
13171317

1318+
test_featureflags: global_test_run_dependencies
1319+
$(call run_tests,--testsuite=featureflags $(TESTS))
1320+
13181321
benchmarks_run_dependencies: global_test_run_dependencies tests/Frameworks/Symfony/Version_5_2/composer.lock-php$(PHP_MAJOR_MINOR) tests/Frameworks/Laravel/Version_10_x/composer.lock-php$(PHP_MAJOR_MINOR) tests/Benchmarks/composer.lock-php$(PHP_MAJOR_MINOR)
13191322
php tests/Frameworks/Symfony/Version_5_2/bin/console cache:clear --no-warmup --env=prod
13201323

0 commit comments

Comments
 (0)