Skip to content

Releases

v1.6.1 — Packagist Patch Order

Choose a tag to compare

@joshdaugherty joshdaugherty released this 01 Dec 13:02
470a823

The patches install in their documented order for an application that requires the package from Packagist, which serves an object's keys in another order than the tag lists them. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a patch, because no patch is added or retired. composer.json lists extra.patches as an array of {description, url} entries instead of an object keyed by description. The same 17 patches are registered in the same order; a package consumer that lists the patch files in its own patches.json is not affected.

What's fixed

  • Keep the patch order Packagist serves by listing extra.patches as an array #142

Maintenance and tooling

  • Set the wiki written-against release to v1.6.1 #144

v1.6.0 — Coverage Report Reuse

Choose a tag to compare

@joshdaugherty joshdaugherty released this 30 Nov 23:09
e52750f

A mutation run can load an existing coverage report and skip the initial suite, and mutant scoring, class constant and parameter default handling are corrected. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a minor, because a patch is added (versioning table). The new patch is opt in: a run reads a coverage report only when PEST_MUTATE_COVERAGE_REPORT names one, and gives its mutant time limit the suite duration from PEST_MUTATE_SUITE_SECONDS; with neither set a run behaves as on v1.5.1. A consumer whose Dependabot bump fails composer install with "Hash mismatch" runs composer patches-relock and commits the patches.lock.json change.

What's new

  • Skip the initial suite when a coverage report is given #139

What's fixed

  • Select tests for every literal in a function parameter default #136
  • Keep a class constant mutant on its own line in the class-constant-coverage patch #134
  • Score a mutant child that ran no test as untested in the no-test-check patch #133
  • Drop the run's own --log-junit from each mutant child #70
  • Score a slow covering file's timeout as untested, not as a kill #61
  • Score a mutant child that ends silently through exit as a kill #62

Maintenance and tooling

  • Set the wiki written-against release to v1.6.0 #140
  • Create the dangling symlink with mklink on Windows in the unreadable test #132
  • Sync shared skills and rules from uams-claude-skills #57, #135, #137
  • Record the no-test-check scoring decision in the decision log #131
  • Check that patch descriptions match between composer.json and the README #111
  • Describe the cached-mutation rebuild in the write-mutated-source patch description #108
  • Split the isolated-processes patch into activation and no-test check patches #93
  • Watch pestphp/pest#2073 for the drop-run-filter removal #91
  • Watch pestphp/pest-plugin-mutate#55 for the Windows mutant child removal #89
  • Watch pestphp/pest#2072 for the Windows mutant child removal #87
  • Add the missing upstream watch rows and record what the unwatched tickets wait on #69
  • Watch pestphp/pest#2071 for the stream wrapper patch retirement #67

v1.5.1 — Score a silent Windows stack-overflow exit as a kill

Choose a tag to compare

@joshdaugherty joshdaugherty released this 22 Nov 20:40
e465f63

Scores a silent Windows stack-overflow child exit as a kill, so a mutant that recurses without end no longer aborts the run. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a patch, because a patch's content changes under the same pin (versioning table). A consumer whose Dependabot bump fails composer install with "Hash mismatch" runs composer patches-relock and commits the patches.lock.json change, as with v1.4.1.

What's fixed

  • Score a silent Windows stack-overflow child exit as a kill #59

v1.5.0 — Report unreadable files as present

Choose a tag to compare

@bpmore bpmore released this 19 Nov 22:29
71198d4

Adds a 15th patch so the mutation stream wrapper reports an existing file that cannot be read as present, and publishes the wiki from the repository. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a minor, because a patch is added (versioning table). A consumer whose Dependabot bump fails composer install with "Hash mismatch" runs composer patches-relock and commits the patches.lock.json change, as with v1.4.1.

What's new

  • Publish the wiki from docs/wiki/ #51

What's fixed

  • Report an unreadable file as present from the mutation stream wrapper's url_stat() #53

Maintenance and tooling

  • Mark the wiki as written against v1.5.0 #55
  • Sync shared skills and rules from uams-claude-skills #49

v1.4.3 — Generate class-constant mutants under covered-only

Choose a tag to compare

@joshdaugherty joshdaugherty released this 18 Nov 12:02
70035e5

Makes --covered-only generate the mutants for a class constant's initializer, so a surviving one is reported instead of omitted. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a patch, because an existing patch changes and none is added (versioning table).

What's fixed

  • pest-plugin-mutate-class-constant-coverage.patch: under --covered-only, a node inside a class constant's initializer counts as covered when any line of its class is, so the constant's mutants (for example RemoveArrayItem on a constant array) are generated and a survivor is reported as untested rather than omitted. PCOV reports no executable line for a constant initializer, so the generation filter skipped every such node and the class reported 100%. A class with no covered line still generates nothing, and without --covered-only the population is unchanged. Pull request: #48, ticket #47.

Maintenance and tooling

  • tests/constants.php drives MutationGenerator with a covered class holding a constant array, and tests/check.sh runs it. Pull request: #48.

Known open

  • A consumer running a whole-suite --mutate run needs uams-web/patches-patchwork's patchwork-directory-wrapper.patch as well as this package, or the run stops with a refusal and no score (#31).

v1.4.2 — Guard hard memory limits

Choose a tag to compare

@joshdaugherty joshdaugherty released this 18 Nov 01:09
08b8b8e

Teaches the isolated-processes guard one more way a mutant's child can die without running a passing test. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a patch, because an existing patch changes and none is added (versioning table).

What's fixed

  • pest-plugin-mutate-isolated-processes.patch: a mutant whose child exhausts PHP's hard memory limit (Hard memory limit of N bytes exhausted ..., with no Fatal error: prefix, from a mutant such as UnwrapSubstr that makes a shrinking loop unbounded) is scored a kill instead of aborting the run with exit 137. A child that exits 0 with no report, or dies before any test starts, is still refused. Pull request: #46, ticket #45.

Maintenance and tooling

  • Sync shared skills and rules from uams-claude-skills #39, #44

Known open

  • A consumer running a whole-suite --mutate run needs uams-web/patches-patchwork's patchwork-directory-wrapper.patch as well as this package, or the run stops with a refusal and no score (#31).

v1.4.1 — Guard compile errors and time limits

Choose a tag to compare

@joshdaugherty joshdaugherty released this 15 Nov 14:54
0ae879f

Teaches the isolated-processes guard two more ways a mutant's child can die without running a passing test. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a patch, because an existing patch changes and none is added (versioning table).

What's fixed

  • pest-plugin-mutate-isolated-processes.patch: a mutant whose child dies of a fatal error that names the mutated file (code that does not compile, such as [] = $result; from RemoveArrayItem on a one-element list destructure) is scored a kill instead of aborting the run. A fatal error in any other file is still refused. Pull request: #42, ticket #40.
  • pest-plugin-mutate-isolated-processes.patch: a mutant whose child runs past PHP's time limit (Maximum execution time of N seconds exceeded, from a suite that calls set_time_limit()) is scored a kill instead of aborting the run. A boot failure for an unrelated reason is still refused. Pull request: #43, ticket #41.

Known open

  • A consumer running a whole-suite --mutate run needs uams-web/patches-patchwork's patchwork-directory-wrapper.patch as well as this package, or the run stops with a refusal and no score (#31).

v1.4.0 — Retry a timed-out mutant

Choose a tag to compare

@joshdaugherty joshdaugherty released this 14 Nov 16:39
6091433

Adds a patch that runs a timed-out mutant child again, and lets a mutant whose child dies of a fatal error count as a kill. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a minor, because a patch is added (versioning table). The package now carries fourteen patches.

What's new

  • pest-plugin-mutate-mutant-timeout-retry.patch, the fourteenth patch: the first time a mutant child times out it is started again, and a timeout is scored only when the second attempt times out too, so a transient slowdown of the machine cannot keep --min=100 out of reach. A child that is slow once and then killed scores Tested, slow once and then passing scores Untested, slow twice scores Timeout (tests/retry.php). Pull request: #38, ticket #30.

What's fixed

  • pest-plugin-mutate-isolated-processes.patch: a child that dies of a PHP fatal error naming the test it was running (PHPUnit's "Premature end of PHP process" line, for example an out-of-memory error) is scored a kill, not refused. A death before any test starts is still refused. Pull request: #36, ticket #34.

Maintenance and tooling

  • Run the upstream watcher for the threads this package waits on. Pull request: #37.

Known open

  • A consumer running a whole-suite --mutate run needs uams-web/patches-patchwork's patchwork-directory-wrapper.patch as well as this package, or the run stops with a refusal and no score (#31).
  • Upstream report for the wrapper-order defect: #33.

v1.3.0 — Stream wrapper order

Choose a tag to compare

@joshdaugherty joshdaugherty released this 13 Nov 23:46
76509d1

Adds a stream-wrapper patch, fixes the crashing-mutant abort in the isolated-processes patch, and adds a check that runs in CI. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a minor, because a patch is added (versioning table). The change to an existing patch would alone be a patch release.

What's new

  • pest-plugin-mutate-stream-wrapper-patchwork.patch, the thirteenth patch: keeps Patchwork in front of Pest's mutation stream wrapper after a pass-through read, so a function a test mocks is still redefined in a mutant child that logs to junit. Without it, a whole-suite run on UAMSWP-Find-a-Doc scored a planted survivor killed (193 tested, 100.00%, macOS); with it and uams-web/patches-patchwork's directory patch, 1 untested, 192 tested. Pull request: #32, ticket #31.
  • tests/check.sh and .github/workflows/patches.yml: install the pinned upstream, apply every patch, and assert the mutant-timeout limit (8 s serial, 56 s at 12 processes for a 3.9 s suite) and the Patchwork order. Consumers need no vendor-assertion test for the timeout patch. Pull request: #24.

Fixed

  • pest-plugin-mutate-isolated-processes.patch: a mutant child that exits non-zero after printing a failed test but writes no junit report is scored a kill instead of aborting the run; exit 0 with no report, or a failure without a failed-test line, is still refused. Pull request: #28, ticket #27.

Known open

  • A consumer that takes this release needs uams-web/patches-patchwork's patchwork-directory-wrapper.patch as well for a whole-suite run, or the run stops with a refusal and no score.
  • The macOS before-and-after for the timeout patch: #21. Upstream report for the wrapper-order defect: #33.

v1.2.0 — Mutant time limit, autoload fix

Choose a tag to compare

@joshdaugherty joshdaugherty released this 12 Nov 13:43
5e35040

Adds a mutant time-limit patch and fixes the v1.1.0 autoload defect. Still pinned to pestphp/pest-plugin-mutate 5.0.2.

Version: a minor, because a patch is added (versioning table). The fix to an existing patch would alone be a patch release.

What's new

  • pest-plugin-mutate-mutant-timeout.patch, the twelfth patch: sizes a mutant child's time limit from the serial work the initial suite stands for, so a --parallel run does not score timeouts no test caused. On aether-multisite-forms ConfigFields (Windows, 12 processes): the eleven patches give 95 timeouts, the twelve give 0 (137 tested). Pull request: #16.

Fixed

  • pest-plugin-mutate-isolated-processes.patch now starts the mutation stream wrapper from Mutate::boot() as well as src/Autoload.php, so a consumer needs no autoload-dev line. In v1.1.0 such a consumer applied no mutations and scored 0.00%. Issue #19, pull request #20.

Known open

  • The macOS before-and-after for the timeout patch is tracked in #21.