Problem/Motivation

YamlTest::testYamlFiles has a random file_put_contents on the first line. It doesn't do anything and the issue that added it (#2488860: Bring phpunit bridge into drupal and use it for unit tests and simpletest to handle Deprecation) was having trouble with a yaml file but changed nothing about the yaml parser so I assume this was a debug statement that was lost in the review. It didn't even make it into the interdiff by accident.

Writes are pretty expensive too so this might even speed up testbot ever so slightly and save some AWS iops.

Proposed resolution

Remove the code and make testing happy.

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

neclimdul created an issue. See original summary.

neclimdul’s picture

neclimdul’s picture

Issue summary: View changes
tim.plunkett’s picture

Status: Active » Needs review
NickDickinsonWilde’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed there are no other references to this extraneously created file.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

I can confirm this was added by #2488860: Bring phpunit bridge into drupal and use it for unit tests and simpletest to handle Deprecation and is not used at at all.

Committed and pushed 2f1622a8c3 to 8.5.x and a5b589fe36 to 8.4.x. Thanks!

Backported to 8.4.x as this is a test-only change.

  • alexpott committed 2f1622a on 8.5.x
    Issue #2908600 by neclimdul: YamlTest writes temporary files but never...

  • alexpott committed a5b589f on 8.4.x
    Issue #2908600 by neclimdul: YamlTest writes temporary files but never...

Status: Fixed » Closed (fixed)

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