Skip to content

Lab: reduce whole-tree mode for crashes, timeouts and memory blowups #32

Open

Description

@mareklangiewicz

Lab issue (neospector lua/myemmylab*.lua). The crash-triage recipe ends with reduce, but reduce only shrinks a file to a diagnostic. Still missing: reduce --outcome crash|timeout|memory --unless-bin B, which shrinks a tree or file while the candidate build crashes, times out or blows memory and B doesn't.

It must respect lab.BLOWUPS and the lab's memory headroom.

Activity

  1. mareklangiewicz commented on Nov 20, 2026

    @mareklangiewicz
    OwnerAuthor

    Widening this: the whole-tree mode should also take a diagnostic outcome, "drop files while diagnostic X survives". It's the step before the file-level reduce when a hit needs other files in its tree (a class in another file, a library). The #41 session (2026-11-20) wrote it by hand twice as a throwaway fileshrink.sh. Roughly: reduce --tree=DIR CODE --file=REL [--line=N|--mark=…] copies the tree, ddmins over its files (never the target file), keeps the target's diagnostic and prints the surviving file list. Same lab.BLOWUPS and headroom rules as the crash/timeout/memory modes. See also #74 (--line, budget, progress).

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

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions