Skip to content

Content reindex cache priming#659

Merged
kentcdodds merged 1 commit intomainfrom
cursor/content-reindex-cache-priming-6d7f
Feb 22, 2026
Merged

Content reindex cache priming#659
kentcdodds merged 1 commit intomainfrom
cursor/content-reindex-cache-priming-6d7f

Conversation

@kentcdodds
Copy link
Owner

@kentcdodds kentcdodds commented Feb 22, 2026

Add cache priming steps to the semantic content reindex workflow to ensure consistent cache availability.


Open in Web Open in Cursor 


Note

Low Risk
Workflow-only change that affects CI performance/consistency, with minimal risk beyond potential cache key/path misconfiguration causing stale or missing cache.

Overview
Updates the Index Semantic Search (content) GitHub Actions workflow to prime and cache other/cache.db before running the semantic indexing script.

The workflow now copies .env.example earlier, restores/saves a site-cache via actions/cache, and conditionally runs npm run build + npm run prime-cache:mocks only on cache misses to ensure the index step has consistent cache data.

Written by Cursor Bugbot for commit b6cd577. This will update automatically on new commits. Configure here.

Summary by CodeRabbit

  • Chores
    • Improved build pipeline efficiency through optimized environment setup and cache management.

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@cursor
Copy link

cursor bot commented Feb 22, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link

coderabbitai bot commented Feb 22, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The workflow configuration is reorganized to establish environment variables and site cache earlier in the job execution. Environment setup steps are moved before indexing operations, cache initialization is added, and conditional cache generation logic is introduced to optimize workflow runs.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Configuration
.github/workflows/index-semantic-content.yml
Restructured workflow job steps to move .env file setup earlier, added site cache initialization with actions/cache, introduced conditional production build and cache generation when cache misses, and removed redundant environment variable copying from the indexChanged content step.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

🐰 Hop, hop! The workflows now flow so sweet,
With env files and caches, the setup's complete,
No duplication, just steps in their place,
The rabbit commits with efficient grace! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cursor/content-reindex-cache-priming-6d7f

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kentcdodds kentcdodds marked this pull request as ready for review February 22, 2026 15:12
@kentcdodds kentcdodds merged commit f14e0f3 into main Feb 22, 2026
8 checks passed
@kentcdodds kentcdodds deleted the cursor/content-reindex-cache-priming-6d7f branch February 22, 2026 15:13
This was referenced Feb 24, 2026
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