gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#16pulls page: cache the git part per repo by branch tips

mergedw53-pulls-speed-pr → mainby Gitoria · head 80307ae2

  • successKunibert: kunibertKunibert review

Verdicts

  • Kunibertrequested changes on an earlier head 69141f65

People’s approvals

Reviews

  1. Kunibertappcommented80307ae2 · current head · 2026-11-15 18:15:51 UTC

    T1–T3 are fixed in the updated code. One minor L10 standards violation remains.

    Correctness (0 new, 0 still open)

    The cache now reloads PR numbers and excludes scans with failed Git lookups. No additional correctness findings.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (1 new, 0 still open)

    One new callback lacks the parameter type required by L10.

    Gates: not run

  2. Kunibertapprequested changes69141f65 · earlier head · 2026-11-15 17:21:04 UTC

    The cache can retain missing PR numbers and transient Git failures, blocking valid merges or leaving incorrect rows. The README also needs updating to describe the cache.

    Correctness (3 new, 0 still open)

    Found two cache correctness bugs and one documentation mismatch.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (0 new, 0 still open)

    No violations found in the changed Hybriel lines or applicable repository rules.

    Gates: not run

Threads

  1. lib/pulls.hl:52outdated · resolvedKunibert

    1. Kunibert2026-11-15 17:21:04 UTC

      🔶 Major · Correctness: no rule: Keep PR numbers out of the branch-tip cache

      For tickets-connected repositories, the push path calls notifyPush() → pullsNow() before syncAndRaise() creates the new PR record, caching number = null under the final branch tips. withStatuses() runs before withNumbers(), and mergePullNow() uses the cached number directly, so both miss subsequent person approvals and block valid merges until refs change or eviction. Reload PR numbers from recordBySha() before approval checks instead of caching them.

    2. Kunibert2026-11-15 18:15:51 UTC

      Fixed: cache entries exclude PR numbers, and livePullNumbers reloads them before status and merge checks.

  2. lib/pulls.hl:87outdated · resolvedKunibert

    1. Kunibert2026-11-15 17:21:04 UTC

      🔶 Major · Correctness: no rule: Propagate per-pull Git failures before caching

      lg.ok only confirms that git log succeeded. sourceOf() returns an empty source when its Git call fails, while merge-base errors become an open state; both fallback results are now cached despite those failures. After Git recovers, unchanged tips keep serving '(branch gone)' or an incorrect open state. Track success across all Git lookups, distinguishing merge-base exit 1 from errors, and skip caching incomplete scans.

    2. Kunibert2026-11-15 18:15:52 UTC

      Fixed: branch, source and ancestry lookup failures now prevent caching, while merge-base exit 1 remains valid.

  3. lib/pulls.hl:44outdated · resolvedKunibert

    1. Kunibert2026-11-15 17:21:04 UTC

      🔹 Minor · Correctness: no rule: Update the documented per-read list behavior

      README.md:261 still says the list is read from Git each time. Cache hits now reuse the stored list after checking branch tips. Update that section to explain the cache and its invalidation key.

    2. Kunibert2026-11-15 18:15:52 UTC

      Fixed: the README now documents the cache, its fingerprint and live database reads.

  4. lib/pulls.hl:78Kunibert

    1. Kunibert2026-11-15 18:15:51 UTC

      🔹 Minor · Standards: L10: Type the new branch-read callback parameter

      .kunibert/HL-STANDARD.md L10 requires “Type every function parameter” and specifies Hybrid for records. The new callback receives { ok, lines }; change (branches) to (Hybrid branches).

Conversation

Nobody has written here yet.

Only the owner and the members of this repository can comment here.