You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sync plan: gate the merge before handoff, and list fork-only functions the merge dropped #51
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:
Gate before handoff: gndx emmylua gate on the merge commit is a step of the merge, before it is called ready.
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.
sync plangated is ok only when HEAD's own build is installed and gated. A pass on an older install no longer counts.
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.
Checked the three unchecked items in the 8581c78dropped 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.
Activity
gndx emmylua, Lua-side gates) #17mareklangiewicz commentedon Nov 18, 2026
Done in myvi 2bb6d1c (not pushed yet).
sync plangatedis ok only when HEAD's own build is installed and gated. A pass on an older install no longer counts.droppedrow, 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 -Swould not do here: it misses body-only edits, e.g. abadbce ondoc_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.
mareklangiewicz commentedon Nov 18, 2026
Checked the three unchecked items in the 8581c78
droppedlist. None is a loss:doc_type_lua_with_generics(abadbce): its testtest_call_result_keeps_object_array_elementhas the same body before and after the merge and passes on 0883e61 (1 test ran). TheLuaType::Arrayarm in upstream'sneeds_rich_doc_typenow carries the behaviour.enum_runtime_owner(2307f0d):test_member_enum_field_is_enumandtest_enum_table_named_unlike_enumhave the same bodies and pass (1 test each).member_infos_with_key_all(ade1483): upstream tookdeclared_path_typeitself (fcc0416 signature.rs:596, via 916c77b). It reads withMemberCollectMode::Effectivein 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.mareklangiewicz commentedon Nov 18, 2026
Pushed (myvi c559c9c includes the follow-up simplify pass; fork e8581ad for #54). Closing: the ask is done.