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.
Problem/Motivation
Speed up testbot and simplify tests by using the testing profile instead of the standard profile.
Steps to reproduce
Proposed resolution
Convert Drupal\node\Tests\NodeAccessBaseTableTest to use the testing profile, not the standard profile.
Remaining tasks
Update patch
Review
Commit
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
Comment | File | Size | Author |
---|
Issue fork drupal-2254199
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sunmenu was renamed into menu_ui
Comment #10
volegerComment #11
vacho CreditAttribution: vacho at Skilld commentedPatch updated, rerolled.
Comment #16
quietone CreditAttribution: quietone at PreviousNext commentedAdding issue summary and re-parenting.
Comment #17
smustgrave CreditAttribution: smustgrave at Mobomo commenteddidn't upload an interdiff because I don't know the original issue the previous patches were solving. But updated the install profile.
Comment #18
smustgrave CreditAttribution: smustgrave at Mobomo commentedComment #19
smustgrave CreditAttribution: smustgrave at Mobomo commentedFixed CI issue.
Comment #21
smustgrave CreditAttribution: smustgrave at Mobomo commentedAttempting to fix test case.
Comment #22
smustgrave CreditAttribution: smustgrave at Mobomo commentedSo reason I'm adding all these modules is because the test is check a variety of different paths that these modules install. Olivero_test ships with an article, comment field, teaser, etc which is tested also.
Using olivero because standard installs it and the setup() was setting an olivero block
Comment #23
needs-review-queue-bot CreditAttribution: needs-review-queue-bot as a volunteer commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #24
smustgrave CreditAttribution: smustgrave at Mobomo commentedActually wondering if this should be changed. It needs a number of modules, content type, vocabulary, etc so essentially it's a standard install no?
Comment #25
quietone CreditAttribution: quietone at PreviousNext commentedIt is still better to test without relying on the standard profile. That profile installs 32 modules whereas this test is now using 9 modules, that is a significant reduction.
Also, it helps in the module list is sorted and needs to convert to an MR.
Comment #26
smustgrave CreditAttribution: smustgrave at Mobomo commentedComment #28
smustgrave CreditAttribution: smustgrave at Mobomo commentedConverted to an MR.
Comment #29
quietone CreditAttribution: quietone at PreviousNext commentedComment #30
smustgrave CreditAttribution: smustgrave at Mobomo commentedAddressed feedback.
Comment #31
smustgrave CreditAttribution: smustgrave at Mobomo commentedComment #32
marvil07 CreditAttribution: marvil07 at Adapt commented@smustgrave, changes look quite lean 👍.
After @quietone's suggestion on the last review round, I think the set of used modules in the test is the minimal set.
Locally, even if different and likely slower than gitlab runners, I see an improvement jump in test time for that test from 01:04.356 to 00:55.312.
Marking as RTBC.
Comment #35
catchCommitted/pushed to 11.x and cherry-picked to 10.2.x, thanks!