- Issue created by @mfb
- Status changed to Needs review
about 1 year ago 9:32am 4 November 2023 - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,488 pass - Status changed to Needs work
12 months ago 11:25pm 10 November 2023 The Needs Review Queue Bot β tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request β . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
- Status changed to Needs review
12 months ago 11:54pm 10 November 2023 - πΊπΈUnited States mfb San Francisco
Not sure what the bot is saying here - it will be "needs work" until converted to MR, or converting to MR is just a recommendation?
- πΊπΈUnited States xjm
@mfb We've turned off automatic patch testing and are trying to get core issues converted to MRs, but we also don't want a bunch of credit-gamers rolling into issues, adding noise, and taking down Drupal.org infrastructure with a zillion new MRs at once. We will still commit patches if necessary, but NR and RTBC issues should ideally have an MR rather than a patch. We aren't quite at the point of disallowing all patches, though; thence (strongly) recommended.
- πΊπΈUnited States mfb San Francisco
@xjm time to fire up the convert patch to MR bot then?
- Status changed to Needs work
12 months ago 2:52pm 11 November 2023 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- last update
12 months ago CI error - Status changed to Needs review
12 months ago 5:18pm 11 November 2023 - πΊπΈUnited States mfb San Francisco
Removing "(GIPK)" from the code comment because the dictionary is constantly changing and thus patch "fuzz" appears, which the CI system interprets as a hard conflict.
- last update
12 months ago Custom Commands Failed - Status changed to Needs work
12 months ago 5:57pm 11 November 2023 - π¬π§United Kingdom longwave UK
In this case I think it's fine to add a
// cspell:ignore gipk
comment to the file which will allow that word to appear in this file only. - Status changed to Needs review
12 months ago 6:26pm 11 November 2023 - πΊπΈUnited States mfb San Francisco
Yes, cspell also picks up the "GIPK" from inside the MySQL constant! so easier to just ignore it.
- last update
12 months ago 30,519 pass - Status changed to Needs work
12 months ago 12:56am 26 November 2023 - πΊπΈUnited States smustgrave
Know it's a task but feels like one of those issues that should have test coverage or a mock test if possible?
- πΊπΈUnited States mfb San Francisco
@smustgrave not sure we can test this MySQL setting, as setting it requires the SESSION_VARIABLES_ADMIN privilege. We could try and see if the CI environment has this privilege though
- Status changed to Needs review
12 months ago 7:23pm 26 November 2023 - πΊπΈUnited States mfb San Francisco
This test fails for me, but passes if I grant the SESSION_VARIABLES_ADMIN privilege. Note this is just a test test :) to be replaced with a simpler/quicker failing test if it passes.
- last update
12 months ago 30,676 pass - πΊπΈUnited States smustgrave
If itβs one of those that canβt be tested could it be documented in the issue summary?
- πΊπΈUnited States mfb San Francisco
Apparently the CI system does have privileges to test this setting, so here's a failing test, which will be skipped if there are not privileges to test it.
- last update
12 months ago 30,676 pass - πΊπΈUnited States mfb San Francisco
Hmm that failed to fail :/ Maybe because the CI system is running an old version of MySQL, and the test is being skipped? Let's see if we can find out.
- last update
12 months ago Custom Commands Failed - last update
12 months ago 30,653 pass, 1 fail - πΊπΈUnited States mfb San Francisco
Ok wow, drupal CI runs on MySQL 8.0.11, which was released way back in April 2018! So, the test will be skipped on any patch I upload, but at least we can run the test locally.
So, here's the patch at #11 combined with the test at #16
- last update
12 months ago 30,676 pass - πΊπΈUnited States smustgrave
@catch shared this in #needs-review-queue-initative channel as I've not seen one of these before, https://www.drupal.org/about/core/policies/core-change-policies/drupal-d... β
Wasn't able to test locally as I'm on ddev which also believe is 8.0.11 but looking at the test believe it covers the scenario (kudos!)
I believe this is good but wonder if submaintainer sign off is also needed.
- πΊπΈUnited States mfb San Francisco
@smustgrave I'm not sure what you mean re: linking to "Interface and base class method signature changes"
Looking at the ddev docker images, it looks like you might be able to update to their latest mysql image, which is version 8.0.33
Sounds correct that someone should sign off on adding support, and this particular approach.
- πΊπΈUnited States bradjones1 Digital Nomad Life
I'm not quite sure this needs any particular sign-off on whether to adopt - it's a feature of MySQL 8 that might be used alongside Drupal and so we should improve compatibility. Is it possible to enable this functionality at runtime or during install? Do we want to venture into that workflow?
I don't see any change to interfaces in the patch at #19?
Also this should probably get converted to an MR at this point.
- πΊπΈUnited States mfb San Francisco
@bradjones1 are you asking if drupal should enable this MySQL setting for its session? I don't think it should, as this is a "restricted" session variable that requires an extra privilege: SESSION_VARIABLES_ADMIN. Seems best to support it being either on or off, and not try to toggle it (aside from in the test).
I can convert the patch to merge request, which I believe should cause it to run on a more recent version of MySQL - last I looked, it appeared that DrupalCI used an old version of MySQL, while GitLab CI used a more recent version.
- πΊπΈUnited States bradjones1 Digital Nomad Life
Yes that was my question, and you answered it.
And yes - DrupalCI is now officially deprecated.
- π¨π¦Canada Charlie ChX Negyesi πCanada
A very wise former core subsystem maintainer taught me to introduce a helper method when some functionality is repeated at least three times.
Currently migrate Sql and mysql\Connection popCommittableTransactions extracts the mysql error code. This adds the third. All three are using subtly different checks which once again shows a helper would be helpful. Also, don't we need to loop the previous exceptions as FinalExceptionSubscriber does?
- πΊπΈUnited States mfb San Francisco
@Charlie ChX Negyesi Looks like mysql\Connection popCommittableTransactions was removed in π Refactor transactions Fixed , so it would appear this isn't done often enough for a helper method to be useful.
I don't think we need to loop thru previous exceptions; did you have a scenario in mind where that is needed?
- π¨π¦Canada Charlie ChX Negyesi πCanada
I didn't have any specifics , no, I guess this is fine then, sorry for the noise.
- πΊπΈUnited States smustgrave
So keep coming back to this and I'm on ddev 8.0 but the test is skipped. Any idea?
- πΊπΈUnited States mfb San Francisco
@smustgrave which reason for skipping are you hitting? Both should be resolvable, either grant the SESSION_VARIABLES_ADMIN privilege or upgrade to MySQL 8.0.30+ (or both)
- πΊπΈUnited States smustgrave
ddev is on 8.0.33 but according to the test is needs to be less then 8.0.30 correct?
- πΊπΈUnited States mfb San Francisco
@smustgrave the test will be skipped on MySQL less than 8.0.30
- Status changed to RTBC
10 months ago 1:01am 2 January 2024 - πΊπΈUnited States smustgrave
Believe I was finally able to test with ddev and get a failing test.
Believe the change is good. Sorry for the delay.
- π¬π§United Kingdom longwave UK
I reproduced the issue locally and the fix looks reasonable. Backported to 10.2.x as it's a borderline bug fix and harmless change unless this mode is enabled - the specific error code is only thrown for this case - which means anyone who wants to use this can do so now instead of waiting for 10.3/11.0.
Committed and pushed 6a0d80e461 to 11.x and 7eb3267ba2 to 10.2.x. Thanks!
-
longwave β
committed 7eb3267b on 10.2.x
Issue #3399160 by mfb, smustgrave, bradjones1, Ghost of Drupal Past:...
-
longwave β
committed 7eb3267b on 10.2.x
- Status changed to Fixed
10 months ago 2:29pm 2 January 2024 -
longwave β
committed 6a0d80e4 on 11.x
Issue #3399160 by mfb, smustgrave, bradjones1, Ghost of Drupal Past:...
-
longwave β
committed 6a0d80e4 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.