Speed up UpdateSemverTestSecurityAvailabilityTrait

Created on 22 August 2024, 3 months ago
Updated 5 September 2024, 3 months ago

Problem/Motivation

We can switch from a provider to a foreach in the trait, this reduces the time taken for two tests significantly.

Steps to reproduce

Before:
From my local install:

Time: 01:19.812, Memory: 4.00 MB

OK (24 tests, 379 assertions)

Daily test run:
https://git.drupalcode.org/project/drupal/-/jobs/2502554
Drupal\Tests\update\Functional\UpdateSemverCoreSecurityAvail 24 passes 83s
Drupal\Tests\update\Functional\UpdateSemverContribSecurityAv 25 passes 96s

After:

Time: 00:12.538, Memory: 6.00 MB

OK (1 test, 241 assertions)

Pipeline run:

Drupal\Tests\update\Functional\UpdateSemverCoreSecurityAvail   1 passes   21s                                      
Drupal\Tests\update\Functional\UpdateSemverContribSecurityAv   2 passes   39s  

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.3 ✨

Component
UpdateΒ  β†’

Last updated about 5 hours ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @tedbow
  • πŸ‡ΊπŸ‡ΈUnited States @dww
Created by

πŸ‡¬πŸ‡§United Kingdom catch

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024