Skip to content

leaderboard: Show merged PRs since midnight Pacific as a green up-arrow - #615

Merged
zackees merged 2 commits into
masterfrom
feat/leaderboard-daily-delta
Oct 13, 2026
Merged

zackees merged 2 commits into
masterfrom
feat/leaderboard-daily-delta

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Each leaderboard row now shows a green up-arrow with +N for merged PRs credited to that contributor since the most recent 12:00 AM America/Los_Angeles (zoneinfo, PST/PDT aware). Zero shows a muted dash. The header carries the caption "▲ = new since 12:00 AM Pacific (America/Los_Angeles)" plus the day's total, and the footer shows generation time in Pacific.

Unit: merged PRs, the unit the board already ranks by (not raw commits), so the arrow is consistent with the number it sits next to.

Survey (short): Sports/esports standings show a green up-triangle plus +N rank/points change; stock tickers pair a green up-triangle with the day's delta and a grey dash for unchanged; Advent of Code/Kaggle show a "since last refresh" gain next to the total; GitHub streak dashboards show today's count against the running total. Applied: green triangle + "+N" beside the total, muted dash at 0, an explicit time-window caption. The triangle is an inline SVG, so no font needs the U+25B2 glyph.

RED: 5448cf3 (ci/test_leaderboard_daily_delta.py vs stubs): 11 tests, 10 errors (NotImplementedError). GREEN: next commit, 19 tests OK (with test_leaderboard_schedule). Tests cover PDT and PST midnight, just before/after midnight, the DST-change day, per-contributor counts and badge present for N>0 / absent for N=0.

Local gate: lint, rust-test and cross lanes passed; tier2-linux failed on test_ws_transform_bounds, a C test this PR does not touch (only tools/leaderboard and ci/ changed), so the commit is not stamped.

Sample image from real data: generated locally from the generator + render.py.

@zackees

zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

Don't merge as is: this branch moves plugins/obs-websocket back to 7d89109. Master is at a4040cb (the #540 fix), so merging this would revert that fix. That's why Rust Tier 2 Linux fails in test_ws_transform_bounds (get_modify_set_applies, zero_bounds_with_explicit_none). Restore the pointer with git checkout origin/master -- plugins/obs-websocket, commit, and re-run the gate. The leaderboard change itself doesn't touch the submodule.

…ow (GREEN)

Local-Gate: v1 tree=b942a12cff4b903d20d9e8353b2ab95e033b577a secs=362 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791923719,"gate":"rust/all/fmt","host":"linux-x86_64","key":"500887c7c748b288f74640794fb5baf3d1800b68f62f370beddd5b65f7bdcaf8","lane":"lint","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":24,"stamp":"fbfcdb1c2cdd6dae76758e49019414ef","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"500887c7c748b288f74640794fb5baf3d1800b68f62f370beddd5b65f7bdcaf8","lane":"lint","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":24,"stamp":"27904107f35efae7724fffcb72732ed2","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"9b914ee7a4b75459bfaaf98655104a4c6fe5c37187979b171a5b80f64e9c62a5","lane":"rust-test","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":117,"stamp":"e4516c581d08da32a78b1b0307fbdba8","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"bf6dc07d50f240a6e38ed95642accc6127ade07cc4de40b9da0244573a1f774f","lane":"cross","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":90,"stamp":"ca6482c0de5d0ba950cbf3b6e0bb715a","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"bf6dc07d50f240a6e38ed95642accc6127ade07cc4de40b9da0244573a1f774f","lane":"cross","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":90,"stamp":"735b1d4b3a766cefb270a2819f2b7c2a","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"bf6dc07d50f240a6e38ed95642accc6127ade07cc4de40b9da0244573a1f774f","lane":"cross","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":90,"stamp":"3b623b5de5ebf48f4e33e833be0f78b4","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"bf6dc07d50f240a6e38ed95642accc6127ade07cc4de40b9da0244573a1f774f","lane":"cross","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":90,"stamp":"f5972a3866b7393cdf9134aa5c57409a","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"bf6dc07d50f240a6e38ed95642accc6127ade07cc4de40b9da0244573a1f774f","lane":"cross","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":90,"stamp":"59d17dee19acfef542e55689c6894fed","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"bf6dc07d50f240a6e38ed95642accc6127ade07cc4de40b9da0244573a1f774f","lane":"cross","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":90,"stamp":"eee27f98cd739b4e8fdc31f8f4167717","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
Ci-Attestation: {"at":1791923719,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"60f55c7acfc80f41beebb6efba160b55d7dd0f35a5169d695b5c85ab04cda9b1","lane":"tier2-linux","parents":["825efeba5fde510ea9786db6d3ee82b6c185f10e"],"secs":131,"stamp":"b6d7883e20c36c24335439067d72d299","tree":"b942a12cff4b903d20d9e8353b2ab95e033b577a","v":1,"via":"run"}
@zackees

zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

Rebuilt on master as c075d46: the original RED commit also moved plugins/obs-websocket back from a4040cb72 (#589) to 7d89109c9, from a stale submodule checkout, which would have undone #589. The commits now touch only ci/ and tools/leaderboard/. RED: test_leaderboard_daily_delta 10 errors; GREEN: OK. Local gate passed (all lanes), after #618 fixed the shallow-submodule guard.

@zackees
zackees force-pushed the feat/leaderboard-daily-delta branch from 7ed4428 to c075d46 Compare October 13, 2026 20:35
@zackees
zackees merged commit 9ca213c into master Oct 13, 2026
19 checks passed
@zackees
zackees deleted the feat/leaderboard-daily-delta branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant