Skip to content

fork-temp-files test: tighter checks (follow-ups from #477's lens) #478

Closed

Description

@scuttletoby

Follow-ups from the lens on #477 (comment 6973114455). All small, tests only, no behaviour risk.

  1. minor, .github/scripts/fork-temp-files.test.sh:88: the "every script that calls mktemp has an EXIT trap" check passes for any trap ... EXIT line anywhere in the file. Tie it to the mktemp it guards (for example: the trap follows the mktemp, or name the variable).
  2. nit, fork-temp-files.test.sh:72: compares entry counts, not listings; compare the sorted listing before and after.
  3. nit: no test pins the new folder names (fork-follow.*, fork-release.*, fork-interaction-limit.*, fork-follow-report.*); mutant M7 survived. A KILL-ed run is found by that name, so pin it.
  4. nit (older than fork scripts: remove their own temp folders on every exit (#473) #477): fork-follow-report.sh:147 does not check its mktemp; a failed mktemp at fork-release.sh:250 ends without an ::error:: line.

Also: a local agent hook refuses to run fork-follow.test.sh because a comment in its gh stub contains a workflow-disable phrase. Rewording that comment lets agents run the file locally (CI is unaffected).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions