GitLab CI - test for previous and next minor versions, and maximum PHP version

Created on 25 February 2024, 9 months ago
Updated 20 June 2024, 5 months ago

Problem/Motivation

One of the advantages of GitLab CI is the ability to test against multiple Drupal versions.

This change is to adopt tests for the previous and next major versions of Drupal.

It also tests against the maximum supported PHP version, so while the default tests run on 8.1, this will also test against PHP 8.3.

We also have the ability to test against the previous and next major releases. Since we don't support Drupal 9, there's no point in testing against previous Major. We can look at testing against next major after this, but that will require checking compatibility of dependencies.

Steps to reproduce

N/A

Proposed resolution

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇪Ireland lostcarpark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @lostcarpark
  • Merge request !439Test for previous and next minor. → (Merged) created by lostcarpark
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7
    last update 9 months ago
    86 pass
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7
    last update 9 months ago
    86 pass
  • Pipeline finished with Failed
    9 months ago
    Total: 274s
    #103618
  • Pipeline finished with Failed
    9 months ago
    Total: 765s
    #103620
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7
    last update 9 months ago
    86 pass
  • Pipeline finished with Success
    9 months ago
    Total: 643s
    #103630
  • 🇺🇸United States chrisfromredfin Portland, Maine
  • Pipeline finished with Failed
    7 months ago
    Total: 794s
    #165883
  • 🇦🇺Australia sime Melbourne
  • 🇦🇺Australia sime Melbourne
  • 🇦🇺Australia sime Melbourne
     ------ ----------------------------------------------------------------------- 
      Line   src/Controller/InstallerController.php                                 
     ------ ----------------------------------------------------------------------- 
      311    Call to deprecated method renderPlain() of class                       
             Drupal\Core\Render\Renderer:                                           
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use                
               \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.  
     ------ ----------------------------------------------------------------------- 
    

    The fix for this is suggested in comments https://www.drupal.org/node/3407994 , please confirm if you want to proceed with this.

  • Pipeline finished with Failed
    6 months ago
    Total: 382s
    #184808
  • 🇦🇺Australia sime Melbourne
  • 🇦🇺Australia sime Melbourne

    I've listed the failures in the Proposed Resolution section. The main thing i don't know is how to variegate a test for two different outcomes - eg where the status message has changed after you install a module.

  • Pipeline finished with Canceled
    6 months ago
    Total: 22s
    #185604
  • Pipeline finished with Failed
    6 months ago
    Total: 600s
    #185606
  • Pipeline finished with Failed
    6 months ago
    Total: 7739s
    #185608
  • Pipeline finished with Failed
    6 months ago
    Total: 2192s
    #185654
  • Pipeline finished with Failed
    6 months ago
    Total: 489s
    #185700
  • Pipeline finished with Success
    6 months ago
    Total: 424s
    #185725
  • Status changed to Needs work 6 months ago
  • 🇦🇺Australia sime Melbourne

    I temporarily disabled OPT_IN_TEST_PREVIOUS_MINOR coverage (10.1 becomes unsupported July) just to have better clarity on what needs to be done.

    I have fixed everything except InstallerControllerTest::testInstallUnlockMessage. I don't know what is happening there on 10.3. It should be running into a lock in this test but nothing is returned from the tempstore.

    Note that I merged the fixes on 📌 project_browser_test.time service tests fail on 10.3 Needs review into this (to make it easier to track progress), so please merge that first to give credit to @kimpepper and @mstrelan.

  • 🇦🇺Australia sime Melbourne

    Adding relationship to 📌 Run tests on 11.x Active as there is overlapping work.

  • Pipeline finished with Failed
    6 months ago
    Total: 394s
    #187787
  • Pipeline finished with Success
    6 months ago
    Total: 480s
    #187789
  • Pipeline finished with Success
    6 months ago
    #187798
  • Pipeline finished with Canceled
    6 months ago
    Total: 344s
    #187807
  • Pipeline finished with Success
    6 months ago
    Total: 873s
    #187810
  • Status changed to Needs review 6 months ago
  • 🇦🇺Australia sime Melbourne

    Passing, I picked a few things that seemed like improvements/fixes over head. Please also credit kimpepper and mstrelan for the deprecation helper help.

  • Status changed to Needs work 6 months ago
  • 🇺🇸United States phenaproxima Massachusetts

    I love that DeprecationHelper thing. Wish I'd known about it before! But hey, you gotta learn sometime.

    The only thing is that we shouldn't be using Workspaces to test experimental stuff.

  • 🇦🇺Australia sime Melbourne

    I'm not sure about Workspaces, the test is pre-existing and seems to just be a canary test. But now that Workspaces is marked stable in 10.3 do we even need this test?

  • 🇺🇸United States phenaproxima Massachusetts

    Yes. We do want to test that Project Browser handles experimental modules in a particular way. The use of Workspaces was probably just a convenience thing at the time.

  • 🇦🇺Australia sime Melbourne

    Ok i see where I've misunderstood the purpose of the test. Lemme fix.

  • Pipeline finished with Success
    6 months ago
    Total: 1747s
    #190323
  • Status changed to Needs review 6 months ago
  • 🇦🇺Australia sime Melbourne
  • Status changed to RTBC 6 months ago
  • 🇺🇸United States phenaproxima Massachusetts

    This rocks!

  • Pipeline finished with Failed
    6 months ago
    Total: 4401s
    #192766
  • Pipeline finished with Success
    6 months ago
    Total: 484s
    #192832
  • Pipeline finished with Success
    6 months ago
    #192847
  • Pipeline finished with Skipped
    6 months ago
    #192855
  • Status changed to Fixed 6 months ago
  • 🇺🇸United States chrisfromredfin Portland, Maine

    when I bump you bump we bump (version numbers)

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

Production build 0.71.5 2024