Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW Install extra PHP extensions for some unit tests #135

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Jul 9, 2024

install_inmemory_cache_exts can be set to true in extra_jobs - doing so adds the necessary requirements for all three in-memory cache adapters to be checked in the new unit test (see https://github.com/silverstripe/silverstripe-framework/pull/11300/files#diff-c45f7dfcc60b4ba10d58981503d905eb32b9415cb3883f13aae632767dcaf390).

The new phpunit_skip_suites input is added so that we can have those extra dependencies only for the unit tests that need them.

We don't actually need to have a memcached or redis server running - we're not testing that the symfony adapters work, that's symfony's job. We just need the prerequisites to be met so we can instantiate the adapters, to check the correct adapters do get instantiated.

See https://github.com/GuySartorelli/silverstripe-framework/actions/runs/9850069049/job/27195842069 for a test run which shows this works fine as far as installing everything.
Note that the framework PR requires other PRs to go green, so that's what all the red is about. The important thing is that it gets passed both "Configure PHP" and "Composer", and that only the one extra cache CI run exists.

Issue

README.md Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@GuySartorelli GuySartorelli force-pushed the pulls/1/in-memory-cache branch from bf6a245 to 067ae22 Compare July 11, 2024 21:25
@emteknetnz emteknetnz merged commit 2dec015 into silverstripe:1 Jul 12, 2024
4 checks passed
@emteknetnz emteknetnz deleted the pulls/1/in-memory-cache branch July 12, 2024 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants