Open
Conversation
Add --delete flag to rsync so files removed from scaffold-stark-2 are also removed from speedrunstark, preventing drift. Move all exclude and protect rules to a versioned filter file (.github/sync-speedrun-filter-rules) so adding new speedrun-specific files only requires one line change. Also add an empty-commit guard so the workflow doesn't fail when a merged PR only touches files outside the sync scope.
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.
Summary
--deleteflag to rsync in the speedrun sync workflow so files removed from scaffold-stark-2 are also removed from speedrunstark — this was the root cause of growing drift and manual maintenance.github/sync-speedrun-filter-rules) instead of inline--excludeflags — adding new speedrun-specific files now requires just one line changeContext
The basecamp sync workflow already uses
rsync --deletebut speedrunstark did not, causing files deleted from scaffold-stark-2 to persist indefinitely in speedrunstark. This required periodic manual cleanup.Filter file structure
Protected files include speedrun-specific UI components, branding assets, fonts,
.gitattributesmerge strategies, and the challenge sync workflow.Test plan
base-challenge-templatebranchbase-challenge-template--delete