Skip to content

vfp-expected.mjs: measure each golden twice; a clock-derived output passes --check on the machine that wrote it #35

Open

Description

@hemstreet

whyNotMeasured catches output that names the scratch directory, but not output derived from the clock. Concrete case: on my install procs.prg prints a seconds-since-midnight value (49277.344 one run, 49409.284 the next — see the Second() issue), so an .expected written by a sweep would be stale one second later, and --check would report a diff that looks like a product disagreement instead of nondeterminism.

Suggestion: in the sweep, call askVfp twice per program and require the two captures to be identical before writing or comparing; otherwise write it into not-measured.txt with a reason like "what it printed changes from run to run". Costs one extra VFP launch per golden, only during sweeps.

I'll include this in the same small harness PR as the -A change, since both guard the same property: a golden should mean the same thing on every machine, every day.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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