-
Notifications
You must be signed in to change notification settings - Fork 140
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
Fix master branch and its travis tests #397
Conversation
web/config.php
Outdated
} | ||
|
||
if (!in_array(@$_SERVER['REMOTE_ADDR'], [ | ||
if (!in_array(@$_SERVER['REMOTE_ADDR'], array( |
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.
My IDE does it all the way. i will remove it.
@@ -23,6 +23,7 @@ matrix: | |||
|
|||
env: | |||
global: | |||
- SYMFONY_PHPUNIT_DIR=.phpunit SYMFONY_PHPUNIT_REMOVE="symfony/yaml" SYMFONY_PHPUNIT_VERSION=5.7 |
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 this allowed, all on one line?
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.
afaik that works, yes. probably because this is how environment variables are passed anyways to the scripts that are run - travis-ci likely just concats the rows with whitespace separator.
@nicolas-grekas would you have an idea why the phpunit-simple crashes the way it does on travis-ci with everything but php 7.1? |
No idea, maybe be a memory limit that travis has in place? Can you make it work locally on 7.0? |
The difference is not the php version. I the composer-instal flag we use in travis. |
but i'll try it at home tonight |
|
Yes, the test is a little bit longer, as it calls each admin page we have in the sandbox and checks wheter it returns a 200 or not. |
On skipping that test: |
Interesting. Started to divide the test trough a dataprovider today, but did not get it working yet. |
I've also tested
|
tests/Functional/AdminTest.php
Outdated
foreach ($admins as $admin) { | ||
$this->doTestReachableAdminRoutes($admin); | ||
} | ||
return $admins; |
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.
$admins is an one dimensional array of AdminInterface
which is not a valid dataprovider.
@ElectricMaxxx Can you please try the following code for the public function getAdmin()
{
$pool = $this->getContainer()->get('sonata.admin.pool');
$adminGroups = $pool->getAdminGroups();
$admins = function() use ($adminGroups, $pool) {
foreach (array_keys($adminGroups) as $adminName) {
yield $pool->getAdminsByGroup($adminName);
}
};
return $admins();
} At least to see if this will make the build run until the end. |
@SenseException you can do aa PR against my branch, pleaae? I am currently mobile only. |
I'll see if I can do it at late evening. |
@ElectricMaxxx I've created #398. |
This one should fix it: sonata-project/cache#103 |
@dbu having a look at this "bug" is really wired. On the one hand caching should never have worked, as there was never a method call |
aannd ... the |
yeah, we should not be generating anything at that point. and i don't know why we would want sonata cache active by default, there is no active cache invalidation anywhere so it should not be listening in, imho. i wonder if thats a default that changed on sonata side somewhere. |
38f98e5
to
1513d48
Compare
Seems as i come closer: https://travis-ci.org/symfony-cmf/cmf-sandbox/jobs/333956339 |
yea travis became green. So there was one chance only: going on php 7.1 and drop lower. |
No clue what the problem of plattform is, the link seems to be fine |
3ad3884
to
f114149
Compare
[ci skip] [skip ci]
Apply fixes from StyleCI
I just wanna try to fix the tests on master.