Commit 4523eb2
committed
fix(ci): install open-feature/sdk for Feature flags tests job
test_featureflags fails on CI with "Class OpenFeature\interfaces\provider\Reason
not found" and downstream "Class DDTrace\OpenFeature\DataDogProvider not
found" because the SDK is never installed. The bridge autoload of
_generated_openfeature.php declares DataDogProvider extends AbstractProvider;
without the SDK on the autoloader path, the parent lookup fails and the whole
bridge file aborts mid-load.
- Add tests/OpenFeature/composer.json requiring open-feature/sdk ^2.1 so the
existing tests/%/composer.lock-php pattern rule installs it into
tests/OpenFeature/vendor/.
- Wire test_featureflags to depend on
tests/OpenFeature/composer.lock-php$(PHP_MAJOR_MINOR) so the install runs
before phpunit is invoked.
The bootstrap_common walkup autoloader picks up tests/OpenFeature/vendor/
when loading OpenFeature test files, registering the SDK autoloader before
the extension autoloads the adapter bridge.1 parent ae5e4d4 commit 4523eb2
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | | - | |
| 1318 | + | |
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments