Skip to content

mlib-migrate-tests: the promoted test program records an absolute scratch path in its Generated-by header (promotions differ by worktree) #2602

Closed

Description

@ehartford

The promoted M*LIB test program test/corpora/mlib/programs/test_mbptree/test_mbptree.w begins with

// Generated by: with migrate /Users/eric/.local/with-staging/mlib-lane/out/tmp/action-scratch/mlib-migrate-tests/source-test_mbptree/test_mbptree.c

an absolute scratch path of the worktree that promoted it. Every re-promotion from another worktree (today: corpus-tests, bridge2) changes that line and nothing else, so two identical promotions differ by machine and directory (D50: key on what the output is made from). The other corpora's test programs print // Migrated from C with no path.

Expected: mlib-migrate-tests (build/mlib.w) passes with migrate a path relative to the action scratch, or the migrator prints the source name without its directory, so a promotion is byte-identical wherever it runs.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Fixed (main 2083b59): a migration's header names the source under the input directory (or its basename for a single file), never the worktree's absolute path; the contracts basic test forbids the absolute path. The promoted M*LIB test program's header changes at its next re-promotion (D112).

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