Skip to content

📊 Refresh CIA data (0 CSVs + production stats)#1971

Closed
github-actions[bot] wants to merge 1 commit intomainfrom
data/cia-csv-refresh
Closed

📊 Refresh CIA data (0 CSVs + production stats)#1971
github-actions[bot] wants to merge 1 commit intomainfrom
data/cia-csv-refresh

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

📊 Automated CIA data refresh

Pulled the latest service.data.impl/sample-data/ CSVs from
Hack23/cia@master
(resolved to commit 78f3dc5e7678c4a6f4bbd983a116e2b57b976950)
and re-ran the production-statistics pipeline against the same commit.

CSV refresh

Metric Count
Total tracked CSVs 146
✅ Updated 0
🟰 Unchanged 140
❔ Missing upstream 0
⏭ Skipped (local-only) 6
❌ Failed downloads 0

Production statistics

  • Total persons: 2494
  • Total votes: 3716922
  • Last extraction: 2026-04-20 00:22:07.168517

How resolution works

The workflow never introduces new files — it only refreshes CSVs
already tracked under data/cia/** and cia-data/**. Upstream paths
are resolved through a recursive basename → upstream-path index
built from the GitHub Tree API, so files living in
sub-folders (distinct_values/, framework-validation/,
risk-rule-tests/) are located correctly even though local paths
are organised differently. An <stem>_sample.csv alias is applied
for the handful of locally-renamed canonical files.

Review checklist

  • CSV diffs look reasonable (no schema regressions)
  • production-stats.json counts move monotonically or within reason
  • Dashboards still render with the refreshed data
  • No unexpected file additions or removals

Generated by .github/workflows/update-cia-csv-data.yml.

…8f3dc5

- Upstream ref: master (resolved to 78f3dc5e7678c4a6f4bbd983a116e2b57b976950)
- CSV files: updated 0 / 146 tracked
- Production stats: 2494 persons, 3716922 votes
- Last extraction: 2026-04-20 00:22:07.168517
Copilot AI review requested due to automatic review settings April 24, 2026 04:32
@github-actions github-actions Bot review requested due to automatic review settings April 24, 2026 04:32
Copilot AI added a commit that referenced this pull request Apr 24, 2026
…kers + manifest drift (root-cause fix for #1971)

Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/1b7b6726-73f2-477f-9dec-a0f3cfd7ccea

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@pethers pethers closed this Apr 24, 2026
@pethers pethers deleted the data/cia-csv-refresh branch April 24, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant