Problem/Motivation

As of commit bd32bd476f17af1a1f37895c4fbcbadab213c277



 [OK] No errors                                                                              


This report is being submitted as part of a contribution sprint at MidCamp Chicago 2019.

Proposed resolution

There are no errors, though one possible follow-up to this may be enabling deprecation testing in DrupalCI to prevent future regressions.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

ChaseOnTheWeb created an issue. See original summary.

chaseontheweb’s picture

Issue summary: View changes
chaseontheweb’s picture

Status: Active » Needs review
StatusFileSize
new1.08 KB

Attached is a basic DrupalCI config file that should enable deprecated code testing, should the maintainers be interested in doing this.

Status: Needs review » Needs work

The last submitted patch, 3: 3042597-drupalci-enable-deprecations-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

gbyte’s picture

Status: Needs work » Postponed (maintainer needs more info)

Deprecation testing is fair enough, but this seems to be doing a thorough coding standards sniff as well?

Is this kind of sniffing being widely used in contrib modules and how does the workflow change with this kind of sniffing enabled? Failing each patch that does not adhere to Drupal coding standards to 100% seems a bit excessive.

Regardless if we leave it in the code base, we should merge this issue (and patch) with #3018715: Coding standards so that we can fix the coding standards having a test bot verifying the progress.

Thoughts?

manuel garcia’s picture

Status: Postponed (maintainer needs more info) » Needs work

Regarding coding standards:

+++ b/drupalci.yml
@@ -0,0 +1,25 @@
+        sniff-all-files: true

You could change this to be false, which is what core does, see https://git.drupalcode.org/project/drupal/blob/HEAD/core/drupalci.yml

That said, the test bot failure is due to this configuration suppress-deprecations: false, which is used to preventing deprecations from being added in the future, but right now it shows this apparently:

Remaining deprecation notices (5329)

  5329x: date_iso8601() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use date("c", $date) instead. See https://www.drupal.org/node/2999991.
    5277x in SimplesitemapTest::testGenerationResume from Drupal\Tests\simple_sitemap\Functional
    11x in SimplesitemapTest::testSetBundleSettings from Drupal\Tests\simple_sitemap\Functional
    7x in SimplesitemapTest::testBaseUrlSetting from Drupal\Tests\simple_sitemap\Functional
    6x in SimplesitemapTest::testRemoveDuplicatesSetting from Drupal\Tests\simple_sitemap\Functional
    6x in SimplesitemapTest::testAtomicEntityIndexation from Drupal\Tests\simple_sitemap\Functional
    6x in SimplesitemapTest::testSitemapVariants from Drupal\Tests\simple_sitemap\Functional
    4x in SimplesitemapTest::testMaxLinksSetting from Drupal\Tests\simple_sitemap\Functional
    3x in SimplesitemapTest::testLastmod from Drupal\Tests\simple_sitemap\Functional
    2x in SimplesitemapTest::testAddCustomLink from Drupal\Tests\simple_sitemap\Functional
    2x in SimplesitemapTest::testSetBundleSettingsDefaults from Drupal\Tests\simple_sitemap\Functional
    2x in SimplesitemapTest::testSetEntityInstanceSettings from Drupal\Tests\simple_sitemap\Functional
    2x in SimplesitemapTest::testEnableEntityType from Drupal\Tests\simple_sitemap\Functional
    1x in SimplesitemapTest::testAddCustomLinkDefaults from Drupal\Tests\simple_sitemap\Functional
manuel garcia’s picture

Status: Needs work » Needs review
StatusFileSize
new3.48 KB
new4.56 KB

Addressing date_iso8601() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use date("c", $date) instead. See https://www.drupal.org/node/2999991

  • gbyte.co committed e97554a on 8.x-3.x
    Issue #3042597 by Manuel Garcia, ChaseOnTheWeb, gbyte.co: Drupal 9...
gbyte’s picture

Status: Needs review » Fixed

Thanks for your input guys!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.