It would be handy if we can get the automated tests passing again so that patch submissions still trigger the d.o. testbots. Of course comprehensive updates to (or removal of) old tests will be needed once the architectural changes for 8.x-3.x are more clear, but for now I was just thinking about quick fixes that can get the testbots to turn green once again. I think this would include:

  1. Skipping any simpletest test methods in LibrariesWebTest that depend on libraries_load() given that we know this logic must be replaced by integration with core Library support.
  2. Fixing any syntax errors in the new test coverage added in #2090623: Turn hardcoded library_load_files() into a more modern, flexible system (I'm seeing at least one failure there).

I'm not sure what will happen with the simpletest cases, but keeping the related classes in place is probably best for now.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rjacobs created an issue. See original summary.

rjacobs’s picture

Status: Active » Needs review

The attached should work. It "voids" out two test methods in LibrariesWebTest and eliminates an erroneous @covers statement for Drupal\Tests\libraries\Kernel\ExternalLibrary\PhpFile\PhpFileLibraryTest::testPhpFileLibrary().

Again, this is just meant as a quick fix. This is a pretty minor low-risk thing, but I'll wait to commit until tomorrow in case there's a comment.

rjacobs’s picture

Here's the patch referred to in #2.

  • rjacobs committed 6db9a66 on 8.x-3.x
    Issue #2593003 by rjacobs: Quick-fix automated tests to support testbots
    
rjacobs’s picture

Status: Needs review » Active

Patch committed, but there is still one test failure that I need to figure out.

Status: Active » Needs work

The last submitted patch, 3: libraries_testbot-quick-fix-2593003-2.patch, failed testing.

tstoeckler’s picture

Status: Needs work » Fixed

Thanks, wasn't aware of this, but just fixed the problem I think you're describing with http://drupalcode.org/project/libraries.git/commit/0b9e2d3

Marking fixed as at the time of writing https://www.drupal.org/pift-ci-job/55375 is green.

Thanks!

rjacobs’s picture

Interesting, thanks for getting that (I think it might have taken me a while to figure that out). It's puzzling that everything was passing on my local instance even before that commit you referenced. Anyway, it's great to see that the bots are happy now.

tstoeckler’s picture

Yeah, I always use the PhpUnit test runner when testing things locally, not run-tests.sh. I think run-tests.sh would have thrown the failure, but I didn't test it, I was just blindly guessing :-)

Status: Fixed » Closed (fixed)

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