Test-only changes should not revert changes in .info(.yml) and phpunit.xml

Created on 16 October 2024, 2 months ago

Problem/Motivation

The "test-only changes" phpunit job reverts files that are not test file, to demonstrate improved test coverage.

However, some changes are reverted that cause unintended test faiures, and these actually make the job less useful, or even totally useless. Two examples are:

  1. A change to .info (in D7) and info.yml (D8+) can add new test files or dependencies (which prove the test coverage). If these files are reverted the test results can be invalid at best, and can give false positives of improved test coverage.
  2. Reverting a change (or the addition of) phpunit.xml will adversely affect the test-only outcome. It can cause the job to fail, for example https://git.drupalcode.org/project/scheduler/-/jobs/3065893

In both of these cases, maintaining the changes in these files will produce the intended outcome of the 'test-only changes' job.

Proposed resolution

Some files are already skipped and not reverted. Add *.info, *.info.yml and phpunit.xml to this list.

Remaining tasks

šŸ› Bug report
Status

Active

Component

gitlab-ci

Created by

šŸ‡¬šŸ‡§United Kingdom jonathan1055

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