Skip to content

Fix: make data build deterministic so CI validation passes - #7

Merged
Varnasr merged 1 commit into
mainfrom
claude/modernize-backend-frontend-content-kns7aa
Jul 9, 2026
Merged

Varnasr merged 1 commit into
mainfrom
claude/modernize-backend-frontend-content-kns7aa

Conversation

@Varnasr

@Varnasr Varnasr commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Description

Follow-up bug fix to the modernization in #6. The new data-validation CI job failed on main after the merge because the build was not deterministic.

Type of Change

  • Bug fix
  • New feature
  • Content addition or correction
  • Documentation update
  • Style or layout change
  • Refactoring (no functional change)

Related Issue

Closes #

Changes Made

  • scripts/build.mjs wrote a calendar date (generatedAt) into data/stats.json. On any day after the file was generated, npm run validate (the CI --check step) regenerated a different date and reported it as data drift, failing CI. Removed the timestamp so the generated output depends only on the study data.
  • Dropped the date from the insights-panel note in js/app.js that displayed generatedAt.
  • Regenerated data/stats.json.

Testing

  • Tested locally with a development server
  • Verified search and filter functionality still works
  • Checked responsiveness on mobile viewport
  • All links and citations are valid

npm run validate now passes independent of the date; the insights dashboard renders with no console errors.

Checklist

  • I have read the Contributing Guidelines
  • My changes follow the project's coding style
  • I have tested my changes locally
  • I have added citations/sources for any new content

🤖 Generated with Claude Code

https://claude.ai/code/session_012msh1nNMxadJd417S8FjP2


Generated by Claude Code

The build wrote a calendar date (`generatedAt`) into stats.json, which made
`npm run validate` (the CI `--check` step) fail on any day after the file was
generated — it saw the regenerated date as data drift. Remove the timestamp so
the build output depends only on the study data, and drop the date from the
insights-panel note that displayed it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012msh1nNMxadJd417S8FjP2
@Varnasr
Varnasr merged commit 211a4e7 into main Jul 9, 2026
2 checks passed
@Varnasr
Varnasr deleted the claude/modernize-backend-frontend-content-kns7aa branch July 9, 2026 03:33
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.

2 participants