- Issue created by @zniki.ru
- Merge request !10676Resolve #3495959: Move helpers in ajax_forms_test.module and delete it β (Closed) created by zniki.ru
- πΊπΈUnited States smustgrave
It's a test but wonder if we should start using a Callback folder?
- πΊπΈUnited States smustgrave
Maybe a conversation for another issue. Since there are so many modules in system I just all the ones that started with ajax and these were the ones that needed conversion.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Any reason why these can't be static methods?
- π·πΊRussia zniki.ru
You are right.
It looks like most of the callbacks methods should be converted to static. - π·πΊRussia zniki.ru
Existing methods at Callbacks are not static, this is the reason I decide to use non static methods, to keep code consistent, I think we can create follow up to convert methods to static and add return type hint. I revert recent changes I made. And set back to NR.
- πΊπΈUnited States smustgrave
Since we are dealing with just tests that think it could be in scope of during the conversion to make static here vs another issue.
- π·πΊRussia zniki.ru
All methods at Drupal\ajax_forms_test\Callbacks converted to static.
- π¬π§United Kingdom catch
Only used internally to the test module so we don't need to worry about a bc layer. Approach looks fine to me. Committed/pushed to 11.x, thanks!
- π¬π§United Kingdom catch
Looks like this broke HEAD:https://git.drupalcode.org/project/drupal/-/jobs/4115231
Reverted for now.
- πΊπΈUnited States nicxvan
nicxvan β changed the visibility of the branch 3495959-ajax_forms_test to active.
- πΊπΈUnited States nicxvan
nicxvan β changed the visibility of the branch 11.x to hidden.
- Merge request !10993Revert "add return, convert to static, refactor call" β (Closed) created by nicxvan
- πΊπΈUnited States nicxvan
nicxvan β changed the visibility of the branch 3495959-ajax_forms_test to hidden.
- πΊπΈUnited States nicxvan
I don't think I have permission to reopen the MR so I pulled it down, rebased on 11.x and pushed up a copy so I could create the MR.
Since I was doing that I also reviewed the MR. If it's green I think I can RTBC since the rebase was clean and I didn't write this one.
- π³πΏNew Zealand quietone
@nicxvan, just ask in #core-development for help re-opening an MR. Someone is often around.
Why did this break HEAD and has it been fixed?
- π¬π§United Kingdom catch
@quietone not sure but it may have just been a cross-commit with something else where they passed individually and failed when combined. We have a lot of 1+ month MRs in the RTBC queue so the chances of that happening are quite high. It happened with at least one other issue too. When we're using gitlab issues, we'll be able to set up merge trains so that each merge gets a full pipeline run before it actually goes in against the current state of HEAD.
Since the rebase is green, going to try this again but also keep an eye on gitlab in case we need to revert again.
In my MR for another issue: https://git.drupalcode.org/issue/drupal-3416819/-/pipelines/405059/test_...
Also testing locally latest 11.x fails. I have pushed up MR with the fix, but it's concerning that tests were passing earlier.
Pushed up MR 11001 with the fix. The test only job is passing erroneously, which is probably π Functional Javascript test false postive and missing browser output Active .
- πΊπΈUnited States nicxvan
Oh good catch, went was it passing without it though?
Oh good catch, went was it passing without it though?
Yes, it's very concerning if functional javascript tests have false negatives on MR builds.
- π¬π§United Kingdom oily Greater London
@godotislate I experienced this on another issue and @berdir had a solution.
- πΊπΈUnited States nicxvan
I did another careful review of the merged MR and confirmed that this was incorrectly converted, and that MR 11001 fixes that.
RTBC
Also @quietone, I'll keep that in mind in the future! Honestly it really was not trouble, it's just a couple of extra commands to create a new branch and push it up.
- π·πΊRussia zniki.ru
I mad MR 10993. MR 11001 looks like good fix. @godotislate thanks.
+1 for RTBCYes, it's very concerning if functional javascript tests have false negatives on MR builds.
I think this false positive. Tests passes but it should fail.
@nicxvan thanks for double check original MR, so do I and also found nothing.
- π¬π§United Kingdom catch
Bumped π Functional Javascript test false postive and missing browser output Active to critical, tests were passing multiple times both on here and branch runs when they should have failed.
Committed/pushed the latest MR to 11.x, thanks for tracking it down.
- πΊπΈUnited States nicxvan
Thanks!
Godotislate should be credited I think though.
- π¬π§United Kingdom catch
Ahh sorry too many things, also didn't mark it fixed...