- Status changed to Needs review
over 1 year ago 4:48am 27 July 2023 - last update
over 1 year ago Custom Commands Failed - 🇳🇿New Zealand quietone
I have rerolled. I then added a string key for each test case in the new data provider plus some other cleanup for readability. I have not included the diff because it is 3x larger than the patch and the previous patch had out of scope changes.
Now that I have completed this I see the Novice tag. Not sure it was suitable, the out of scope changes were confusing things. Anyway, it is done now.
- last update
over 1 year ago 29,885 pass - Status changed to RTBC
over 1 year ago 2:46pm 27 July 2023 - last update
over 1 year ago 29,886 pass - last update
over 1 year ago 29,909 pass - last update
over 1 year ago 29,912 pass - last update
over 1 year ago 29,947 pass - last update
over 1 year ago 29,954 pass 56:29 55:23 RunningThe last submitted patch, 32: 3119761-32.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 3:46am 7 August 2023 - 🇳🇿New Zealand quietone
Unrelated failure.
1) Drupal\Tests\system\Functional\System\CronRunTest::testAutomatedCron Failed asserting that 1691374878 is less than 1691374878.
Retesting
- last update
over 1 year ago 29,954 pass - Status changed to RTBC
over 1 year ago 5:02am 7 August 2023 - 🇳🇿New Zealand quietone
Tests passing, restoring RTBC.
@dww, thanks for fixing the capitalization.
- last update
over 1 year ago 29,959 pass - last update
over 1 year ago 29,959 pass - last update
over 1 year ago 29,959 pass - last update
over 1 year ago 29,960 pass - last update
over 1 year ago 29,972 pass - last update
over 1 year ago 30,050 pass - last update
over 1 year ago 30,057 pass - last update
over 1 year ago 30,057 pass - 🇳🇿New Zealand quietone
I'm triaging RTBC issues → .
Ah, I made the patch here. The IS is still correct and there have been no questions unanswered. This is a bit of refactoring and I think can remain at RTBC.
- last update
over 1 year ago 30,059 pass - last update
over 1 year ago 30,061 pass - last update
over 1 year ago 30,064 pass - last update
over 1 year ago 30,131 pass - last update
over 1 year ago 30,136 pass - last update
over 1 year ago 30,137 pass - last update
over 1 year ago 30,137 pass - last update
over 1 year ago 30,147 pass - last update
over 1 year ago 30,147 pass - last update
over 1 year ago 30,151 pass - last update
over 1 year ago 30,155 pass - 🇺🇸United States xjm
Got 20% into a review before falling asleep; here's my notes before I forget...
The diff in Dreditor is wonky; this is much easier to review locally. Locally, it's clear that the following methods are being deleted:
testInfoParserMissingKey()
testMissingCoreVersionRequirement()
testMissingCoreVersionRequirement()
testInfoParserMissingKeys()
- last update
over 1 year ago 30,162 pass 41:34 36:08 Running- last update
over 1 year ago 30,169 pass - last update
over 1 year ago 30,206 pass - last update
over 1 year ago 30,207 pass - last update
over 1 year ago 30,361 pass 26:34 48:45 RunningThe last submitted patch, 32: 3119761-32.patch, failed testing. View results →
- last update
over 1 year ago 30,361 pass - Status changed to Needs work
over 1 year ago 6:10pm 30 September 2023 - 🇺🇸United States xjm
Finally finished the first pass of my review.
-
I don't understand why we still have
testInfoParserBroken()
in addition totestInfoException()
. Maybe someone can explain?
-
+++ b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php @@ -52,94 +52,116 @@ public function testInfoParserNonExisting() { + public function testInfoException($yaml, $expected_exception_message) { ... + public function providerInfoException() {
We can add parameter and return typehints to the method signatures.
-
+++ b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php @@ -52,94 +52,116 @@ public function testInfoParserNonExisting() { + // Set the expected exception for the 2nd call to parse().
Nit: We should spell out "second".
-
+++ b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php @@ -52,94 +52,116 @@ public function testInfoParserNonExisting() { + $this->assertSame($exception_message . '.info.txt', $exception->getMessage()); + + $this->infoParser->parse(vfsStream::url("modules/fixtures/broken-duplicate.info.txt"));
Where is there a newline in the middle of the
catch
block but nowhere around thetry/catch
? It's not technically wrong, but it's weird and made me initially think theparse()
call was outside thetry/catch
.Edit: Looks like this is in HEAD as well and these are just moved lines. Same for the point above about "2nd". I leave it up to contributors whether to fix this, since the diff is already an illegible mess and it's best reviewed with before and after side-to-side (which I will be doing later).
-
+++ b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php @@ -52,94 +52,116 @@ public function testInfoParserNonExisting() { +name: File +version: VERSION +type: module +dependencies: + - self_awareness ... -name: Skynet
Ahem. The module is supposed to be called Skynet. Thence the dependency on
self_awareness
. I don't care if it's not a dictionary word! :P -
+++ b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php @@ -52,94 +52,116 @@ public function testInfoParserNonExisting() { + - llama_detector + - alpaca_detector
Hi Wim (or someone giving homage thereto).
-
+++ b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php @@ -52,94 +52,116 @@ public function testInfoParserNonExisting() { - * Tests that a missing 'core_version_requirement' key is detected. + * Test if correct exception is thrown for a broken info file.
This is not quite a complete sentence. I'd suggest:
Tests that the correct exception is thrown for a broken info file.
Thanks!
-
- Status changed to Needs review
over 1 year ago 8:38am 1 October 2023 12:57 10:07 Running- 🇳🇿New Zealand quietone
#41
1. Yea, that is a bit unusual. I think it all comes down to the face that two of the original methods,testMissingCoreVersionRequirement
andtestInfoParserMissingKey
, make duplicate files and then test parsing twice. WithtestInfoParserBroken
the YAML itself is broken, so the parser can't examine the data, and the exception message is of a different pattern. The new test method continues to use the testing of two info files.
I found that the duplicate stuff was added in #2313917-203: Core version key in module's .info.yml doesn't respect core semantic versioning → but I haven't read that properly because it is too late here.
2. Yes, I forgot that. Done now.
3. Done.
4. For future legibility, I have removed the blank line in the catch block.
5. I have restored Skynet, but it will come up again in a spelling issue.
6. Removed this test, it was actually a duplicate. As you mentioned the diff on this is messy.
7. Done. - Status changed to RTBC
over 1 year ago 5:19pm 2 October 2023 - 🇺🇸United States smustgrave
Appears all points have been answered.
@xjm does #43.1 answer your question?
- last update
over 1 year ago 30,371 pass - last update
over 1 year ago 30,377 pass - last update
over 1 year ago 30,377 pass - last update
over 1 year ago 30,382 pass - last update
over 1 year ago 30,392 pass - last update
over 1 year ago 30,397 pass - last update
over 1 year ago 30,397 pass - last update
over 1 year ago 30,415 pass - last update
over 1 year ago 30,420 pass - last update
over 1 year ago 30,424 pass, 1 fail The last submitted patch, 43: 3119761-43.patch, failed testing. View results →
- Status changed to Needs review
over 1 year ago 9:14am 24 October 2023 - 🇳🇿New Zealand quietone
Unrelated test failure, retesting.
1) Drupal\Tests\toolbar\FunctionalJavascript\ToolbarActiveTrailTest::testToolbarActiveTrail with data set #1 ('horizontal') Failed asserting that false is true.
- last update
over 1 year ago 30,434 pass - Status changed to RTBC
over 1 year ago 4:21pm 24 October 2023 - last update
over 1 year ago 30,438 pass - last update
over 1 year ago 30,456 pass - last update
over 1 year ago 30,472 pass - last update
over 1 year ago Build Successful - last update
over 1 year ago 30,486 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,488 pass - last update
about 1 year ago 30,511 pass - Status changed to Needs work
about 1 year ago 11:49pm 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.)
- Merge request !6061Issue #3119761: Replace multiple test methods in InfoParserUnitTest with 1 testInfoException and a dataprovider → (Closed) created by Hardik_Patel_12
- Status changed to Needs review
about 1 year ago 2:51am 9 January 2024 - 🇺🇸United States dww
Tests were failing in the MR pipeline. I pushed a commit that should fix them.
- Status changed to RTBC
about 1 year ago 2:57pm 9 January 2024 - 🇺🇸United States smustgrave
Replacement seems good. Meaning no coverage appears to have been lost.
- last update
about 1 year ago Patch Failed to Apply - Status changed to Needs work
12 months ago 4:10pm 17 February 2024 - 🇺🇸United States dww
- Rebased to 11.x.
- Fixed 2 of the comments from @longwave in testInfoParserBroken().
- The 4 threads about testInfoException() still need help. - Status changed to Needs review
12 months ago 7:32pm 18 February 2024 - 🇺🇸United States dww
Finished addressing all threads. There's 1 I'm not sure about (see MR comments). Otherwise, this is ready for re-review.
Thanks,
-Derekp.s. x-post with mondrake, but I noticed the same thing. That thread can also be resolved.
- 🇺🇸United States smustgrave
Seems all feedback has been addressed. There's 1 open thread though @longwave mind taking a look?
- Status changed to RTBC
11 months ago 11:52am 1 March 2024 - Status changed to Fixed
11 months ago 12:51am 5 March 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
Committed and pushed 9f6b172c61 to 11.x and 2a98f61317 to 10.3.x and a9b2d321a4 to 10.2.x. Thanks!
Backported to 10.2.x to keep tests aligned.
-
alexpott →
committed a9b2d321 on 10.2.x
Issue #3119761 by dww, aleevas, Hardik_Patel_12, quietone, tedbow,...
-
alexpott →
committed a9b2d321 on 10.2.x
-
alexpott →
committed 2a98f613 on 10.3.x
Issue #3119761 by dww, aleevas, Hardik_Patel_12, quietone, tedbow,...
-
alexpott →
committed 2a98f613 on 10.3.x
-
alexpott →
committed 9f6b172c on 11.x
Issue #3119761 by dww, aleevas, Hardik_Patel_12, quietone, tedbow,...
-
alexpott →
committed 9f6b172c on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.