Skip to content

Refresh Overview Git facts and issue ages - #262

Merged
yansfil merged 1 commit into
mainfrom
quick/overview-freshness
Sep 29, 2026
Merged

yansfil merged 1 commit into
mainfrom
quick/overview-freshness

Conversation

@yansfil

@yansfil yansfil commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Opening a local Git project's Overview now refreshes checkout facts and pull requests in the background while retaining the previous values.
  • Git metadata changes refresh only the affected project's catalog after a 300 ms debounce; the stats icon spins during an Overview refresh.
  • Issues show their created age when the source provides it, without changing the updated-time sort.
  • Automatic git fetch is outside this change, so behind origin moves only after another process updates the local remote ref.

Overview stats refreshing

The small icon at the left of the stats row spins while the existing counts remain visible.

Review

  • Please judge: Is the spinner placement beside the stats and the issue age readable at the intended density?
  • Watch these files: herdr-core/src/worktrees.rs owns the bounded Git watcher, debounce, and per-project reads; runtime/projects.rs and session_sync/coordinator.rs guard stale answers and loading state.
  • Dependency: notify is pinned because the existing hided Explorer watcher covers only selected visible directories, not every registered project's Git refs.

Evidence

  • Confirmed: A fixture commit and moved remote ref refreshed only the affected repository in the earlier unrestricted run; a ref burst caused one read and 20 idle seconds caused none.
  • Confirmed: The new in-flight watch race test passes; final Rust lint and design contract pass. The serial core suite passed 1,030 tests with three sandbox-blocked tests excluded.
  • Confirmed: An earlier candidate passed 105 browser E2E tests with isolated Herdr and daemon instances; candidate screenshots show the spinner and created age.
  • Confirmed by CI on the final head: Rust workspace, checks and unit suites, all three web E2E shards, desktop E2E, static design, and aggregate verify passed on run 36572821940, attempt 2. The original web E2E shard failed once on an existing issue-preview close assertion and passed on rerun without code changes.
  • Local limit: This managed macOS session blocks OS Trash, Git file-watch delivery, process-child ownership checks, Chromium Mach-port startup, and /bin/ps; the corresponding local checks failed or could not launch.
  • Not confirmed: The installed operator app and a live GitHub issue source were not changed or exercised.
Additional visual evidence

Issue created age

The fixture issue in the middle column shows 9d; the fixture without a creation time has no age.

Verification record
  • Base at PR creation: 215383dfbaa2f5a15cd02af61357be17372c228f; head: 0239751c19c7fe992c2d25aabdaceaee8cb8866c.
  • bash scripts/verify-cargo.sh lint: passed on the final source.
  • bash scripts/verify-cargo.sh test -- --test-threads=1: core suite had 1,030 passed and three failed under this sandbox: one OS Trash permission refusal and two Git watch event timeouts.
  • Serial rerun excluding those three: core suite had 1,030 passed, zero failed; a later unrelated process-owner fixture failed because its child could not start here. The new watch-race regression passed alone.
  • Earlier unrestricted Rust run: 1,032 passed before the final watch-race guard and regression.
  • CI=true bash scripts/verify-web.sh: hcoord and web lanes passed; desktop unit lane was 59/60 because /bin/ps was unavailable here.
  • Earlier full web E2E: 105 passed; final targeted Overview and desktop E2E could not launch Chromium in this sandbox.
  • node scripts/check-design-contract.mjs, git diff --check: passed.
  • Code and requirements reviews: no remaining Fix now findings after the race fix; CI passed on the final head.
  • Visual evidence: two fixture-only cropped product panels in the public PR assets repository.

@yansfil
yansfil merged commit 0aa72ad into main Sep 29, 2026
13 of 15 checks passed
@yansfil
yansfil deleted the quick/overview-freshness branch September 29, 2026 13:45
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 9, 2026
…h-hide#2146)

Related: with-hide/hide-private#221, with-hide#167, with-hide#262 (already closed; their
later comments came from a renamed or sibling test)

## Summary

테스트 이름을 바꾸거나 같은 파일에 앞 20자가 같은 형제 테스트가 있으면, flaky 보고기가 새 flake를 옛 이슈에 계속
달았습니다.
보고기가 직접 연 이슈는 `- Test:` 줄에 파일과 테스트 전체 이름이 적혀 있으므로, 이제 그 둘이 정확히 같을 때만 같은
테스트로 봅니다.
이름이 바뀐 테스트와 형제 테스트는 새 이슈를 엽니다. 사람이 쓴 이슈(잘린 제목을 인용)만 기존대로 파일과 앞 20자로
찾습니다.
화면 변경은 없습니다.

스크린샷 없음: 화면을 건드리지 않는 스크립트 변경

## Review

- **판단해 주세요**: 직접 쓴 이슈가 `- Test: ` + 백틱 파일 + 따옴표 이름 형식을 그대로 쓰면 자동 이슈로
취급되어 잘린 제목으로는 더 이상 안 잡힙니다.
- **조심해서 볼 파일**: `scripts/ci-flaky-report.py` `tracks()` - 이슈 매칭 한 곳.
nextest 이름의 부분 문자열 매칭(`a_burst` / `a_burst_more`)도 같이 사라집니다.

## Evidence

- **확인한 것**: `scripts/tests/test_ci_flaky_report.py` 81개 통과(새 6개: 형제, 이름
변경, 다른 파일, nextest 포함 관계, 사람이 쓴 이슈). 옛 `tracks()`로는 형제·이름 변경 테스트가 실패하는
것도 확인.
- **확인하지 못한 것**: 실제 GitHub에 대한 실행. 이슈 조회·생성은 기존 테스트의 가짜 호출로만 확인했습니다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant