fix: prebuild entry point, 3 failing integration tests, and duplicate workflow headings#513
Merged
pethers merged 2 commits intoreduceconflictsfrom Feb 24, 2026
Merged
Conversation
- Fix prebuild script to use correct entry point (scripts/generate-news-indexes/index.ts instead of the barrel re-export) - Add beforeAll/afterAll in Real-world Integration Tests to generate and clean up index files since they are no longer committed to git - Rename duplicate 'Validate & Create PR' heading in news-committee-reports.md to 'Build-time Generation Note' - Extend build-time generation notes in news-committee-reports.md and news-week-ahead.md with local npm run prebuild instruction Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Refactor derived files to build-time generation
fix: prebuild entry point, 3 failing integration tests, and duplicate workflow headings
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
prebuildscript silently did nothing because it invoked the barrel re-export (scripts/generate-news-indexes.ts) instead of the actual executable entry point — sonpm run prebuildnever generated index files. This caused 3 integration tests to fail withENOENTafternews/index*.htmlwas removed from git tracking.Changes
package.json— Fixprebuildto invokescripts/generate-news-indexes/index.ts(executable) instead of the barrel re-exporttests/news-realtime-monitor.test.ts— AddbeforeAll/afterAllto "Real-world Integration Tests" that generates then cleans up index files at test time; tracks only newly created files to avoid deleting pre-existing ones; logs unexpected cleanup errors rather than silencing all of them.github/workflows/news-committee-reports.md— Rename duplicate "Step 5: Validate & Create PR" → "Step 5: Build-time Generation Note"; extend note with localnpm run prebuildinstruction.github/workflows/news-week-ahead.md— Extend build-time generation note to tell agents to runnpm run prebuild(ornpm run build) on a fresh checkout when they need to preview/validate derived outputs💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.