- Issue created by @catch
- π¬π§United Kingdom catch
17 failures on https://www.drupal.org/pift-ci-job/2662465 β
- Status changed to Needs review
over 1 year ago 2:50pm 9 May 2023 - last update
over 1 year ago 29,338 pass, 14 fail - last update
over 1 year ago 29,342 pass, 10 fail - π¬π§United Kingdom catch
This should resolve most/all of the help_topics failures.
- last update
over 1 year ago 29,342 pass, 10 fail - π¬π§United Kingdom catch
This fixes fatal errors in a locale test but not the actual failure, which might be down to l.d.o
The last submitted patch, 3: 3359077.patch, failed testing. View results β
The last submitted patch, 4: 3359077-4.patch, failed testing. View results β
The last submitted patch, 5: 3359077-5.patch, failed testing. View results β
- last update
over 1 year ago 29,378 pass, 4 fail - π¬π§United Kingdom catch
Skipping the remaining tests for now. We can probably make them work with 11.x (not sure if they should though), but no idea what we'll do once we have a 'main' branch with no version number.
The last submitted patch, 9: 3359077-9.patch, failed testing. View results β
- last update
over 1 year ago Custom Commands Failed - π¬π§United Kingdom catch
The two locale tests are failing in ::setUp() before we try to skip the test, so also need an early return.
- last update
over 1 year ago 29,380 pass - Status changed to Needs work
over 1 year ago 8:30am 10 May 2023 - π¬π§United Kingdom alexpott πͺπΊπ
-
+++ b/core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherUserTest.php @@ -91,7 +91,7 @@ public function providerShowAnnouncements(): array { - 'version' => '^10', + 'version' => '^11',
I think it's worth making this dynamic so we don't have to change this on every major Drupal version.
-
+++ b/core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php @@ -32,7 +32,10 @@ protected function getVersionStringToTest() { * {@inheritdoc} */ protected function installParameters() { + // phpcs:disable $parameters = parent::installParameters(); + // Skipped because this branch can't be translated. + return $parameters; // Install Drupal in German. $parameters['parameters']['langcode'] = 'de'; // Create a po file so we don't attempt to download one from @@ -49,12 +52,15 @@ protected function installParameters() { @@ -49,12 +52,15 @@ protected function installParameters() { $version = $this->getVersionStringToTest(); file_put_contents($this->publicFilesDirectory . "/translations/drupal-{$version}.de.po", $contents); return $parameters; + // phpcs::enable } /** * Tests that the expected translated text appears on the login screen. */ public function testInstallerTranslations() { + // Skipped because this branch can't be translated. + $this->markTestSkipped(); $this->drupalGet('user/login'); // cSpell:disable-next-line $this->assertSession()->responseContains('Geben sie das Passwort fΓΌr ihren Benutzernamen ein.');
Let's add a skip test in a new setUp implementation - then we wouldn't need to mess with PHPCS
-
- π¬π§United Kingdom alexpott πͺπΊπ
What I mean by #13.2 is add this:
/** * {@inheritdoc} */ protected function setUp(): void { // Skipped because this branch can't be translated. $this->markTestSkipped(); parent::setUp(); }
Calling
$this->markTestSkipped();
prior to the parent::setUp() is the most efficient way to skip a test as you don't even do an install. - Status changed to Needs review
over 1 year ago 8:51am 10 May 2023 15:45 8:19 Running- π¬π§United Kingdom catch
#13.1 @xjm mentioned in slack just skipping everything here and adding a follow-up to make things dynamic, switching over to that and will open the follow-up in a bit.
#13.2 ahh nice that crossed my mind but I didn't know whether it actually worked! Much better.
- π¬π§United Kingdom catch
- π«π·France andypost
+++ b/core/modules/announcements_feed/tests/src/FunctionalJavascript/AlertsJsonFeedTest.php @@ -55,6 +55,8 @@ public function setUp():void { + // Skipped due to version-specific logic. + $this->markTestSkipped(); +++ b/core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherTest.php @@ -29,6 +29,8 @@ protected function setUp(): void { + // Skipped due to version-specific logic. + $this->markTestSkipped();
Should it be a @todo with link to the new issue?
- π¬π§United Kingdom alexpott πͺπΊπ
Discussed the @todo with @catch we agreed that as long as with have a critical issue open to fix them this is fine.
- π¬π§United Kingdom alexpott πͺπΊπ
+ // Skipped due to version-specific logic. + $this->markTestSkipped();
Should be
$this->markTestSkipped('Skipped due to version-specific logic.')
This way PHPUnit output is even more helpful.
- last update
over 1 year ago Custom Commands Failed - π¬π§United Kingdom catch
Reworked things so the reason we skip is inside the messages including the follow-up issue link.
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 29,380 pass - Status changed to RTBC
over 1 year ago 10:54am 10 May 2023 - π«π·France andypost
Looks great and good to go!
Follow-up exists π± Fix the various tests fail every time we open a new major branch and unskip them on the 11.x branch Active
- Status changed to Fixed
over 1 year ago 10:56am 10 May 2023 -
alexpott β
committed 861648c2 on 11.x
Issue #3359077 by catch, alexpott, andypost: Resolve test failures on 11...
-
alexpott β
committed 861648c2 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.