-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Problem
The Community Trends chart shows stale star counts while the Star History chart on the same page shows correct, updated values.
Observed on: https://dazzleml.github.io/comfyui-triton-and-sageattention-installer/stats/#community
Star History chart (correct):
- Feb 25: 79 stars
- Feb 26: 80 stars
- Feb 28: 82 stars
Community Trends chart (stale):
- Feb 26: 80 stars
- Feb 27: 80 stars (should be 81?)
- Feb 28: 80 stars (should be 82)
The Star History chart uses GitHub's per-star created_at timestamps (Events API), so it reflects reality. The Community Trends chart uses dailyHistory[].stars from state.json, which is only written for today's entry in the workflow (line 330: if (dateStr === todayStr)).
Likely cause
The workflow writes entry.stars = state.stars only when dateStr === todayStr. If the workflow runs and the star count changes between runs, past entries keep whatever value was written when they were "today." This is by design — stars are point-in-time snapshots, not retroactive.
However, the discrepancy suggests the ComfyUI Triton deployment's workflow may not be running the latest version. The repo hasn't been fully updated with local changes, which could mean:
- An older workflow version that writes stars differently (or not at all for some entries)
- The
todayStrcalculation producing a mismatch with the dailyHistory date format - The workflow running but star metadata not being fetched/written correctly
Note
The ComfyUI Triton deployment is not fully caught up with local GTT changes, which may be the primary contributor. This issue tracks the symptom to verify once the deployment is updated.
Proposed Solution
- Verify the deployed workflow version on ComfyUI Triton — check if it matches the latest GTT workflow
- If workflow is outdated: Update via
ghtraf init --update(once available) or manual copy - If workflow is current: Investigate whether the star fetch (repo metadata at line 248–252) is failing silently or whether the date matching logic has a gap
- Consider: Should Community Trends interpolate star values from the Star History data when dailyHistory has gaps? Star History uses per-star timestamps and is authoritative — it could backfill
d.starsfor entries where the workflow didn't capture the value.
Acceptance Criteria
- Identify root cause (stale workflow vs logic bug vs data gap)
- Community Trends star line matches Star History data for the same dates
- If the fix requires a workflow update, document which version resolves it
- If a dashboard-side interpolation is added, it gracefully handles missing star data
Related Issues
- Refs Community Trends chart shows negative y-axis for Stars #25 — Community Trends negative y-axis for Stars (same chart, different bug)
- Refs Port delta-dedup workflow fix to NCSI Resolver and ComfyUI Triton #32 — Downstream port (ComfyUI Triton needs workflow updates)