Skip to content

Release 4.30.3

Choose a tag to compare

@github-actions github-actions released this 02 Dec 15:08
bbbdfb7

Changed

  • A job past its time limit no longer waits for the machine to empty before it
    runs again. It now reruns alongside a control run of its tests without the
    mutant, under the same load, and takes its limit from that control. Where
    some jobs take minutes, waiting kept the machine half idle: 89 mutants of one
    such project took 916 s instead of 1182 s, with the same verdicts.

Fixed

  • merge of a split strong pass: a mutant that survived one job's tests, where another job's tests passed without running the mutated code, came out no-coverage, as if no test ran it. It is now survived, since every test that could kill it ran with it. Where a test no such job ran could kill it, the mutant is left for a later pass, not called no-coverage.
  • node:test records how long each test took, as Jest and Mocha already did.
    Without this, a strong pass counted every node:test test as 1 s when choosing
    which of a mutant's test files to run first and when setting a job's time
    limit.
  • A test file that reads a measured file as text sees it as written. Tests of
    a browser script that check what the file says, or run it in a vm
    sandbox of their own, failed on the instrumented copy: its first line was
    Supercov's, and a fresh sandbox had no runtime ("Cannot read properties of
    undefined (reading 'mcdcBegin')"). A test file (*.test.*, *.spec.*, or
    one under test/, tests/, __tests__/, spec/ or e2e/) now reads the
    file as its author wrote it; a server, a helper or a bundler still reads
    the copy, so a browser is served what is measured. A measured file run in
    a vm context, as written or as the copy, runs as the copy with the run's
    runtime, so it is still measured.
  • node --check on a measured file no longer fails with "WeakRef: invalid
    target": Node fails a syntax check of any file with an inline source map
    while source maps are on, and Supercov now turns them off for a check.
  • JavaScript strong pass (node:test, Jest, Mocha, AVA, tap, bun:test): a test
    file that can't run beside a copy of itself, such as one that starts a server
    on a fixed port, could have its tests reach another job's server, which was
    running a different mutant or none. That gave false kills and survivors. Each
    file's first baseline now runs as two copies at once. Where they end
    differently, that file's jobs run one at a time, and the pass names it.
  • A Rust Worker under wrangler dev no longer loses a decision now and then.
    A decision's record can cross a page of the coverage region, and the poller
    reads only the pages marked as written; the record marked only its first
    page, so a take read it as empty unless another probe had written the next
    page. A branch body was then covered while its condition's outcome showed
    as never observed, and the 100% gate could fail on unchanged code. A
    record now marks every page it is on.