Let's add a drupalci.yml that fails the build if deprecated code is used. That way we can guarantee that Entity API is D9 ready.

Comments

bojanz created an issue. See original summary.

bojanz’s picture

Status: Active » Needs review
StatusFileSize
new1.76 KB

Let's try this.

bojanz’s picture

StatusFileSize
new2.14 KB

So close.

  • bojanz committed c9d9e65 on 8.x-1.x
    Issue #3101368 by bojanz: Let tests fail on deprecation notices
    
bojanz’s picture

Status: Needs review » Fixed

Committed. I'll remove DeleteMultipleFormTest in a followup commit (it's not testing anything).

Status: Fixed » Closed (fixed)

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

tr’s picture

Priority: Normal » Major
Status: Closed (fixed) » Active

Please re-think this decision. Because Drupal is now introducing new API methods in minor point releases and NOT backporting these to other currently-supported versions of core, there will always be deprecated methods that can't be fixed without breaking in some supported versions of core. That means that the Entity API tests will ALWAYS be failing.

See https://www.drupal.org/node/626176/qa - the 8.x-1.x branch tests have been failing for years because of this. That means contributed patches fail (actually, the tests don't even get triggered because of the branch fails) and that means that we don't see NEW fails because they are hidden by all the OLD deprecation failures. This defeats the whole purpose of having DrupalCI and having testing.

I suggest removing the drupalci.yml and letting DrupalCI run with the default configuration.

tr’s picture

Status: Active » Needs review
StatusFileSize
new813 bytes

Status: Needs review » Needs work

The last submitted patch, 8: 3101368-8-use-default-drupalci-yml.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

tr’s picture

The test bot didn't actually pick up on the deleted drupalci.yml - it used the one currently in the Entity API repository instead. I have to commit this change to make the test bot test with the default drupalci.yml.

Because we can't do much without passing tests, and because I've had no feedback on this and related issues for more than a month, I'm just going to go ahead and commit the patch in #8. If it breaks things I can always revert it.

  • TR committed 1040492 on 8.x-1.x
    Issue #3101368 by TR: Use default drupalci.yml
    
tr’s picture

Status: Needs work » Fixed

That fixed the 8.x-1.x tests, as you can see at https://www.drupal.org/node/626176/qa

I will be leaving this commit in.

Now we can address the PHP 8.1 failures.

Status: Fixed » Closed (fixed)

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