-
Notifications
You must be signed in to change notification settings - Fork 168
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
Issue #3368689 by tbsiqueira: Update behat tests to use the new compatible php 8.1 images #3439
Conversation
Thanks for contributing towards Open Social! A maintainer from the @goalgorilla/maintainers group might not review all changes from all teams/contributors. Please don't be discouraged if it takes a while. In the meantime, we have some automated checks running and it might be that you will see our comments with some tips or requests to speed up the review process. 😊 |
feb30e3
to
7fe309d
Compare
f19c6ce
to
0ec64df
Compare
7403698
to
4822cf6
Compare
9e3cea7
to
dd5f7ef
Compare
dd5f7ef
to
11fcc8f
Compare
This was caused due to the new variationcache module being required for 11.0.0 It looks like this was a legacy issue, but now should be solved.
e3957e5
to
be2867f
Compare
Would be great if you could explain the changes you made, especially for the UUID a bit in here so we have some reference what occurred and why you fixed it this way. I feel like it's great knowledge transfer for others 😊 |
We can see that if As open_social/modules/custom/improved_theme_settings/improved_theme_settings.module Line 255 in 94f6070
|
During review we noticed that we had more config objects without a valid UUID this was going to cause the same issue, so we added them to the hook updates.
🚀 🔥 Related PRs 🔥 🚀
This is a PR from a series of 5 PRs that should be merged in the following order:
Problem
We are now officially adding php 8.1 support, but our behat tests are still running on PHP 8.0, this is not an issue because PHPStan guarantees the compatibility, but we want to run our behat tests using PHP 8.1,
After we fixed the behat tests, a couple of issues raised:
$extensions = explode(' ', mb_strtolower(trim($config->get('download_count_excluded_file_extensions') ?? "")));
Unresolved variation cache module dependencies during hook updates fixed here and other places, this errors were found during the upgrade path check, and since they are green, they should all be resolved now.
Missing UUID on configuration created during hook updates, as a result of not using the correct Drupal APIs to generate configs from yml files, as seen here:
This last issue required an update hook, to create a proper for those configuration files, change is available at this link
I also noticed there some
explode()
functions were .... blowing up 💥 ( pun intended ) due to the "string" argument being NULL, so I added checks to avoid that, and they are all verified with PHPStan, the ones that don't have it is because we don't need.Solution
Update docker images used for Behat tests to feature PHP 8.1 compatible images
Issue tracker
https://www.drupal.org/project/social/issues/3368689
Theme issue tracker
N/A
How to test
Definition of done
Before merge
After merge
Screenshots
Release notes
Change Record
Translations