Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The automated tests are broken in 7.x. I suspect this is mainly due to a missing test dependency on date. Rolling a patch real quick to test my theory.
Comment | File | Size | Author |
---|---|---|---|
#32 | bef-2763209-32.patch | 5.36 KB | klausi |
Comments
Comment #2
bdragon CreditAttribution: bdragon at Tag1 Consulting commentedLet's see if this makes the testbot happier.
Comment #4
bdragon CreditAttribution: bdragon at Tag1 Consulting commentedAhh, as per #2692407: Test_dependencies are downloaded before applying patches, rather than after the dependencies aren't recalculated for patches.
Temporarily adding another patch to probe if the testbot gets past the first error if we just don't try and enable modules the testbot has not downloaded...
Comment #5
bdragon CreditAttribution: bdragon at Tag1 Consulting commentedbleh, I think the test blacklist tripped over the patch name..
Comment #6
bdragon CreditAttribution: bdragon at Tag1 Consulting commentedOr maybe I just forgot to reset the status.
Comment #7
bdragon CreditAttribution: bdragon at Tag1 Consulting commentedComment #9
bdragon CreditAttribution: bdragon at Tag1 Consulting commentedOK, it obviously didn't make all the tests pass, nor did I expect it to, but it did get past the whole "enabling modules" bit, so yeah, #2763209-2: Fix 7.x branch tests is at least part of the solution.
Once the .info change is in git, the branch tests will start having the required modules available during testing.
Comment #10
Stevel CreditAttribution: Stevel commentedWe should also add the modules to the 'dependencies' key in the getInfo() module, so it doesn't break with missing dependencies when testing locally.
Comment #11
Stevel CreditAttribution: Stevel commentedUpdated patch
Comment #12
Stevel CreditAttribution: Stevel commentedAnd back to Needs Review...
Comment #14
Stevel CreditAttribution: Stevel commentedThe patch fails because there are no tests found to be executed: test_dependencies[] is not added until after dependencies are downloaded by the testbot, and the tests are skipped because date is not installed. I believe it is ready to commit though, so back to 'Needs review'.
Comment #15
jlockhartComment #16
joseph.olstad@Stevel, you've fixed tests for other modules in the past, great work.
Would be nice if someone would step up to maintain this project.
Comment #17
jkopel CreditAttribution: jkopel as a volunteer and commented@joseph.olstad I do not want to sound defensive, but there ARE people trying to maintain this module, we are just busy.
Please read the bottom of the project page to understand the circumstance.
As always, we welcome assistance from anyone in the community, and we appreciate all the efforts so far.
Comment #18
joseph.olstadYes other maintainers have died of cancer and the project lives on.
Like media.
If stevel says this is ready for commit it should be committed . Chicken and the egg here. Stevel has fixed other projects tests and has a good reputation. His explanation makes sense.
Hoping a maintainer can step up here.
Comment #19
jlockhartI believe the next step here is to get community review. @joseph.olstad if you can take the time to do that that would be great, I'll also take a look later this week when I have time. If we can get the community to step up and get this RTBC then I'm sure the hard working maintainers will happily commit it.
Comment #20
rlhawkThis looks like an improvement. I'm going to commit the patch and see how the tests do.
Comment #22
joseph.olstadThanks!
seems to be an improvement.
php 5.3 seems to have better results in the automated tests
5.6 gets stuck on setUp and that is the most important step. php 5.3 gets past setUp without error.
Comment #23
klausiTests are still failing, so this needs work?
Comment #24
klausiI see that we are missing Features as test dependency because the bef_test_content module depends on it. Then the 2 remaining test fails are fixed for me.
Comment #26
klausiHm, looking at https://dispatcher.drupalci.org/job/drupal_d7/111060/console is seems DrupalCI downloads test dependencies before fetching/applying the patch, so Features module is not downloaded, so we have the same test fails.
I guess we have to commit this blindly and then check again if DrupalCI picks it up?
Comment #27
rlhawkThat sounds good. I'll commit the patch and we'll see if that fixes the tests.
Comment #29
klausiOK, that is progress ... down to a couple of test fails in BEF_TestLinks.
I fixed the obvious ones with the URL encoding. Now 1 fail remains where the test expects a "?status_1=0" URL, but the query is omitted for the filter. Maybe that is a new feature in the module, we need to check if that is intentional.
Comment #31
klausiHrmpf, that did not help - somehow the testbot still shows the same test fails as the dev branch.
How can we find out why the XPath expression fails on the testbot but not locally for me?
And the tests are broken on PHP 7.2, but It seems like a Views issue.
Comment #32
klausiOK, since I'm not sure how those assertions should be changed I have disabled them for now. The important thing here is to get the branch to pass the tests again, so that other patches can be tested. We can enable the assertions again in a new issue for BEF Links.
Comment #33
klausiPassing tests, yay!
I think we can commit this now and then open a new issue about fixing the assertions for BEF Links.
Comment #34
joseph.olstadnice, thanks Klausi!
Comment #36
rlhawkThanks, everyone.
Comment #37
joseph.olstadthere were three commit messages above, maybe some gaffe there?
hmm, project automated tests still need work for php 7.2.x and php 5.3.x it looks like
Comment #38
rlhawkI wanted to give author credit to everyone who helped produce the final patch that got committed, hence the three commits.
Comment #39
klausiThe tests are failing because the Views security release uses short array syntax, which is a test dependency. So we need to wait on the next Views release, see #3039953: PHP 5.3.x fix for syntax changes Views 3.21. Then the branch should also pass on PHP 7, the errors there are related to #2810431: Parameter 3 to views_ui_build_form_state() expected to be a reference, value given in views_ui_ajax_form() (also not released yet).
Comment #41
joseph.olstad@rlhawk can you set the issue test default to something other than php 5.3.x ?
and add commit tests for php 7.0.x , 7.1.x , 7.2.x (supported by core) and php 7.3.x (soon supported in core)
currently php 5.3.x is the issue default automated test, I recommend something higher than that for the default. Currently the lowest zend supported release is php 7.1.x.
Thanks