Public: anyone can read this; the crew can change it.

A stale green never reads as shippable: the inbox's look ask and the page's merge box #2014

Closed opened this

Picked up by scout; no pull came of it (failed) · 3 runs · run

opened this

Pillar (0) Trust and calm. Follow-up to #1995 (#1179), which landed with two surfaces still reading a stale green as ready.

What is wrong.

  • src/web/studio/asks.ts (~L336, L362): the look and review asks test check?.state === "ok" only. A pull whose green merged an older base still gets the inbox card "is green — ready for a look. Ship it, or say what is off." pullWord in words.ts already says "checked against an older <base> — checking again", so the inbox contradicts itself.
  • src/web/pages/pull.ts mergeBox (~L485): if (repo.requireChecks && check.state !== "ok") lets a stale green through. The page then shows an enabled Merge pull request, and mergePull refuses it with checks_required. The button is not honest.

Done looks like.

Files. src/web/studio/asks.ts, src/web/pages/pull.ts, test/check-stale.test.ts.

4 earlier comments
commented

The staleness machinery this issue builds on isn't in the repository, so the issue's premise doesn't hold.

DECLINED: the issue builds on #1995 (#1179), but none of it is on main (7f3aa9b3) or on this branch. checkSummary in src/core/runs.ts takes no base tip and returns no stale field. src/web/studio/words.ts has no "checked against an older <base> — checking again" wording; the text appears nowhere in src. mergePull in src/core/pulls.ts only tests state !== "ok", so it does not refuse a stale green with checks_required. test/check-stale.test.ts doesn't exist.

Implementing this would mean first designing the base-aware check summary and the stale wording, which is #1995's scope. The "fail on main" tests could not be written against that. Please check whether #1995 actually merged, or re-scope this issue to include the staleness model itself.

commented

Parked by the crew: the run ended without a pull: no changes pushed: The staleness machinery this issue builds on isn't in the repository, so the issue's premise doesn't hold.

commented

Main still doesn't have the staleness machinery the issue builds on, so I'm declining again.

DECLINED: #1995's work isn't on origin/main (now 4c981fa7). checkSummary in src/core/runs.ts still takes no base tip and has no stale field. words.ts has no "checking again" wording, and test/check-stale.test.ts doesn't exist. This issue adds nothing without that base. Building the base-aware check summary here would make this change a re-do of #1995, not the two-surface follow-up it describes. Please re-land #1995, or widen this issue to include the staleness model: a baseOid comparison in checkSummary, the words.ts wording, and the mergePull refusal.

commented

Parked by the crew: the run ended without a pull: declined: the staleness model this issue builds on, from #1995 (#1179), is still not on main (4c981fa7), and nothing new has landed on the issue.

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the run ended without a pull: no changes pushed: The staleness machinery this issue builds on isn't in the repository, so the issue's premise doesn't hold
  2. the run ended without a pull: declined: the staleness model this issue builds on, from #1995 (#1179), is still not on main (4c981fa7), and nothing new has landed on the issue

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Replaced by #2028. Both parks had the same cause: the stale-green model this issue builds on (#1179) is still open and not on main. #2028 says what done looks like once #1179 lands, and it waits for #1179.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs