fix(registry): derive freshness from source history#2121
Conversation
|
Warning Review limit reached
More reviews will be available in 12 minutes and 4 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
🔍 Maintainer advisory reviewReviewed 2 changed file(s) — two independent AI reviewers. This is an advisory review — it does not merge or close the PR. Suggested action: 🛠️ Request changes. Address the items below before merging. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
Motivation
contentUpdatedAt, which allowed committed generated files to spoof public freshness/trust metadata.Description
contentUpdatedAtfrom checked-inapps/web/public/data/entries/*.jsonwith a Git-history-derived map of sourcecontent/*.mdxtimestamps computed viagit loginscripts/build-content-index.mjs.contentUpdatedAtwhen present and otherwise fall back to the source file’s Git commit timestamp and thendateAdded, so generated artifacts are no longer an input to freshness metadata.tests/generated-churn-policy.test.tsto assert the new code path (loadGitContentUpdatedAt) is present and the old artifact-based loader is not reintroduced.execFileSyncusage to safely run Git commands from within the build script.Testing
pnpm exec vitest run tests/generated-churn-policy.test.tsand it passed (all tests green).node scripts/build-content-index.mjsto exercise full generation and it completed successfully and wrote registry artifacts.pnpm validate:content:strictand content validation passed.pnpm test:registry-artifactsand observed two tests intests/registry-artifacts.test.tstime out under the environment default test timeout (these timed out during long-running aggregate-assertion checks and are reported here as failures in this run).Codex Task