Skip to content

sync plan: gate the merge before handoff, and list fork-only functions the merge dropped #51

Closed

Description

@mareklangiewicz

Lab issue (neospector lua/myemmylab*.lua). Part of #17. From the 2026-11-18 retro of the fcc0416 merge.

What happened

The merge 8581c78 dropped fork behaviour and passed every test:

  • 337c083's numeric-for rule (infer_for_numeric_var) was replaced by upstream's infer_for_loop_var. The commit message claimed "a start/step of no numeric type keeps integer", but its test never pinned that case (fixed again in d357689).
  • Upstream's member-copy and annotated-literal regressions came in unnoticed (fixed in 0883e61).

The merge was handed off un-gated ("install, or classify first"). The gate, first run at install time, found 14 new problems on luagnd/myhypr/neospector.

Ask

Two steps in gndx emmylua sync plan:

  1. Gate before handoff: gndx emmylua gate on the merge commit is a step of the merge, before it is called ready.
  2. Dropped fork functions: list functions defined on the old fork tip, absent from upstream, and absent after the merge. The by-hand version:
    fns() { git grep -hoE "^\s*(pub(\([a-z]+\))? )?fn [a-z_0-9]+" $1 -- crates/emmylua_code_analysis/src ':!*test*' | sed -E 's/.*fn //' | sort -u; }
    comm -23 <(fns OLD_FORK_TIP) <(fns ORIGIN_MAIN) | comm -23 - <(fns MERGE)
    On 8581c78 it listed 10, of which 2 were fork-authored losses (infer_for_numeric_var, doc_type_lua_with_generics); the rest were upstream functions upstream itself removed. Showing the last fork commit touching each name (git log -S "fn NAME") separates the two.

Related reviewer rule (judgement, not mechanical): a fork fix's test pins every case its commit message claims.

Activity

  1. mareklangiewicz commented on Nov 18, 2026

    @mareklangiewicz
    OwnerAuthor

    Done in myvi 2bb6d1c (not pushed yet).

    1. sync plan gated is ok only when HEAD's own build is installed and gated. A pass on an older install no longer counts.
    2. A new dropped row, printed LOOK, never the next step. It finds the latest first-parent merge of origin/main and lists functions on the old fork tip that are absent from upstream and from the merge. It keeps only those that a fork-only commit's diff mentions (git log -G), and shows that commit. git log -S would not do here: it misses body-only edits, e.g. abadbce on doc_type_lua_with_generics.

    On 8581c78 it lists 5:

    • infer_for_numeric_var + infer_for_range_var (337c083, fixed in d357689)
    • doc_type_lua_with_generics (abadbce)
    • enum_runtime_owner (2307f0d)
    • member_infos_with_key_all (ade1483)

    The last three were not checked in the retro, and I haven't checked them yet either.

  2. mareklangiewicz commented on Nov 18, 2026

    @mareklangiewicz
    OwnerAuthor

    Checked the three unchecked items in the 8581c78 dropped list. None is a loss:

    • doc_type_lua_with_generics (abadbce): its test test_call_result_keeps_object_array_element has the same body before and after the merge and passes on 0883e61 (1 test ran). The LuaType::Array arm in upstream's needs_rich_doc_type now carries the behaviour.
    • enum_runtime_owner (2307f0d): test_member_enum_field_is_enum and test_enum_table_named_unlike_enum have the same bodies and pass (1 test each).
    • member_infos_with_key_all (ade1483): upstream took declared_path_type itself (fcc0416 signature.rs:596, via 916c77b). It reads with MemberCollectMode::Effective in place of the fork's all-layers lookup. That is upstream's own design.

    So the only fork loss from that merge is the known one, infer_for_numeric_var/infer_for_range_var, already fixed in d357689.

  3. mareklangiewicz commented on Nov 18, 2026

    @mareklangiewicz
    OwnerAuthor

    Pushed (myvi c559c9c includes the follow-up simplify pass; fork e8581ad for #54). Closing: the ask is done.

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