Follow-up to #2791163: Random automatic testing failures on SQLite with PHP 5.5

Problem/Motivation

The class includes an include to use file_directory_os_temp() - this is no longer necessary in 8.3.x because we have #2794249: Move file_directory_os_temp() to a class in Drupal\Component\FileSystem.

Proposed resolution

Use the new \Drupal\Component\FileSystem\FileSystem::getOsTemporaryDirectory

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

CommentFileSizeAuthor
#2 2801259-2.patch1.04 KBalexpott
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
FileSize
1.04 KB

Less oddness.

daffie’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

  • catch committed 2c60b6d on 8.3.x
    Issue #2801259: Remove include from TestDabase class
    
daffie’s picture

Status: Reviewed & tested by the community » Fixed
Fabianx’s picture

Version: 8.3.x-dev » 8.2.x-dev
Status: Fixed » Patch (to be ported)

I think this is eligible for backport, once https://www.drupal.org/node/2794249#comment-11637189 is ported.

xjm’s picture

This is actually not something we would normally backport to a patch release. The location and availability of files is considered internal API, meaning we will break it in a minor but not a patch release.

We can consider it for RC but it is a disruption.

alexpott’s picture

@xjm I agree we should only consider this for RC - otherwise revert #2791163: Random automatic testing failures on SQLite with PHP 5.5 on 8.2.x. However, for me the disruption of this issue as opposed to not doing #2791163: Random automatic testing failures on SQLite with PHP 5.5 on 8.2.x is just not comparable. What is the disruption beyond the fact that any change is in some ways a disruption - there are no API changes here and #2794249: Move file_directory_os_temp() to a class in Drupal\Component\FileSystem (which this change requires) is only additions.

  • catch committed 3cd7230 on 8.2.x
    Issue #2801259: Remove include from TestDabase class
    
    (cherry picked...
catch’s picture

Status: Patch (to be ported) » Fixed

Cherry-picked to 8.2.x to help fix the regression in other issue.

xjm’s picture

@alexpott and @catch and I agreed to cherry-pick all three of these issue for the RC. Can we get a CR for the combination though? I'll reopen #2794249: Move file_directory_os_temp() to a class in Drupal\Component\FileSystem for that.

Status: Fixed » Closed (fixed)

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