-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add Drupal to community build #10050
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
base: master
Are you sure you want to change the base?
Conversation
63d9a29
to
1ecbb16
Compare
Looks to run kernel tests it needs |
debugging on unit and build tests as they are fast, as all databases available using to test sqlite/mysql/pgsql connections sqlite |
.github/workflows/push.yml
Outdated
-d opcache.jit_buffer_size=16M | ||
- name: Verify generated files are up to date | ||
uses: ./.github/actions/verify-generated-files | ||
- name: Test Drupal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should move this to a new job for testing analogous to #9942. The binary needs to be built with the sanitize flags for this to be meaningful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes,I will
ATM trying to connect to pgsql but it looks broken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just add another service like here: https://github.com/php/php-src/blob/master/.github/workflows/nightly.yml#L130-L137
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or just use the existing mysql db if you can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow pgsql connection has issues, I limited tests to sqlite and mysql now
bcf45df
to
a60b38d
Compare
dc76130
to
1bc2eba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @andypost! A few comments. Can you also copy this to nightly to show that this will succeed? I will remove it when merging. 🙂
if: always() | ||
run: | | ||
php -i|grep memory_limit | ||
echo memory_limit=256M > /etc/php.d/drupal.ini |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be done in setup, as it will leak into the next step anyway. Increasing the memory limit generally should be ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this change could go separate file which will be removed at the end of script?
cd drupal | ||
git rev-parse HEAD | ||
php /usr/bin/composer install --no-progress --ignore-platform-reqs | ||
export ASAN_OPTIONS=exitcode=139 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not your fault, but we could make ASAN_OPTIONS
a global env var as it's always the same anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna file separate PR for that
mkdir db | ||
rm -f core/tests/Drupal/FunctionalTests/ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php | ||
export DRUPAL_TYPES=Annotation,Assertion,ClassFinder,Drupal,Extension,File,Plugin,Render,tar,zip | ||
php -dzend.assertions=1 vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite unit,kernel --group $DRUPAL_TYPES || exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a point to adding assertions? I'm not against it, but we if we do we should do so for all projects. Generally, we're not interested in correct behavior, just crashes/memory violations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point is that lots of tests require assertions to throw so php-unit can separate errors in data-providers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used to pick the most important test groups and database connectors, my next goal is to add a benchmark like WP and SF has
run kernel and unit tests for pdo_sqlite and pdo_mysql
Closes #9992