Update process to 10.0.0 from RC3

Created on 17 July 2024, about 2 months ago
Updated 3 August 2024, about 1 month ago

Problem/Motivation

I am not clear on the proper update process to 10.0.0

Steps to reproduce

I was running rc3. I have updated (I thought) but find everything I expect to update got updated EXCEPT Drupal, which still seems to be constrained at 10.2.7. I have both tried to run the update script and to just use composer.

Proposed resolution

Document how this is supposed to work.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
💬 Support request
Status

Active

Version

10.0

Component

Updater

Created by

🇺🇸United States Steve Hanson

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

Comments & Activities

  • Issue created by @Steve Hanson
  • 🇯🇴Jordan Rajab Natshah Jordan

    Thanks, Steve, for reporting

    Try only for testing to add a static version for Drupal as "drupal/core": "10.3.1", in the root composer.json file.

    Only to check on which package is not letting the update, update to the latest Drupal

  • 🇺🇸United States Steve Hanson

    What I am confused about is what is supposed to update the composer files in the upgrade process. Once I changed drupal/core and drupal/core-recommended drupal would upgrade, and all the rest of the upgrades happened that depended on 10.3 drupal - but now I am getting a few patches that are in composer.lock that will not apply to the new version of the modules.

  • 🇯🇴Jordan Rajab Natshah Jordan

    Try to delete the old composer.lock before composer update -vvv or you may do composer install -vvv

  • 🇺🇸United States Steve Hanson

    My current issue with the upgrade that I just do not understand is that composer keeps trying to apply a patch that fails.

    Issue #3272629: Media Library widget display doesn't return to first page on applying filters": " https://www.drupal.org/files/issues/2022-03-30/media_library_pager_fix.p... ",

    I have tried to NOT apply that patch by removing it from the composer.lock file but it keeps getting put back in and I do not see where that is coming from.

  • 🇺🇸United States Steve Hanson

    Even weirder - it is trying to patch a Drupal 7 module which does not exist (which would explain the failure). This must be some sort of leftover from the migration from Drupal 7 but I cannot see where it is getting put in.

  • 🇺🇸United States Steve Hanson

    It seems to go wrong like this -- with composer update -vvv

    patching file modules/layout_builder/tests/src/FunctionalJavascript/MoveSectionsFormTest.php
    patching file themes/stable9/css/layout_builder/layout-builder.css
    
        https://www.drupal.org/files/issues/2022-03-30/media_library_pager_fix.patch (Issue #3272629: Media Library widget display doesn't return to first page on applying filters)
    Downloading https://www.drupal.org/files/issues/2022-03-30/media_library_pager_fix.patch
    patch '-p2' --no-backup-if-mismatch -d '/home/wis/domains/dev.wis.community/public_html/docroot/core' < '/tmp/66ad2fef8579a.patch'
    Executing command (CWD): patch '-p2' --no-backup-if-mismatch -d '/home/wis/domains/dev.wis.community/public_html/docroot/core' < '/tmp/66ad2fef8579a.patch'
    patching file modules/media_library/media_library.module
    Hunk #1 FAILED at 216.
    1 out of 1 hunk FAILED -- saving rejects to file modules/media_library/media_library.module.rej
    
       Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-03-30/media_library_pager_fix.patch
    Downloading https://packagist.org/downloads/
    Downloading https://packages.drupal.org/8/downloads
    [200] https://packages.drupal.org/8/downloads
    [201] https://packagist.org/downloads/
    
    In Patches.php line 331:
                                                                                   
      [Exception]                                                                  
      Cannot apply patch Issue #3272629: Media Library widget display doesn't ret  
      urn to first page on applying filters (https://www.drupal.org/files/issues/  
      2022-03-30/media_library_pager_fix.patch)!                                   
                                                                                   
    
    Exception trace:
      at /home/wis/domains/dev.wis.community/public_html/vendor/cweagans/composer-patches/src/Patches.php:331
     cweagans\Composer\Patches->postInstall() at /home/wis/domains/dev.wis.community/public_html/vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php:215
     
  • 🇺🇸United States Steve Hanson

    Ah - it comes from the composer.json in the varbase_core module -- but I'm not real clear on the best way to deal with this. I finally set composer-exit-on-patch-failure to false --- Updates now complete but 3 patches fail -

    (Issue #3272629: Media Library widget display doesn't return to first page on applying filters)
    Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-03-30/media_library_pager_fix.p...

    https://www.drupal.org/files/issues/2024-01-04/drupal-10-2-0--2023-12-26... (Issue #3412378: Fix vertical tabs and media library styling issues within Dialog and Media Library Modal by Claro after the Drupal 10.2.0 Release)
    Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2024-01-04/drupal-10-2-0--2023-12-26...

    Applying patches for drupal/security_review
    https://raw.githubusercontent.com/Vardot/varbase-patches/patches/securit... (Issue #3463712: Fix fatal error when pressing Run checklist button)
    Could not apply patch! Skipping. The error was: Cannot apply patch https://raw.githubusercontent.com/Vardot/varbase-patches/patches/securit...

  • 🇯🇴Jordan Rajab Natshah Jordan

    Thanks, Steve, for posting more follow-ups on your difficulties with this issue.

    • Please, have a look at Regression: RC releases have empty dist information Needs work , many projects are facing a caching issue, with code or patches
    • Important to keep composer-exit-on-patch-failure as true to keep the right and secure code base.
    • Delete the composer.lock file in the project.
    • Released Varbase Patches 10.0.42 - which will be updated and released with all needed and updated patches
  • 🇺🇸United States Steve Hanson

    I did delete composer.lock but it gets rebuilt again during the composer update and re-inserts the patches that will not apply.

Production build 0.71.5 2024