Repository navigation
Conversation
s3-deploy uploads files but never deletes them, so pages of deleted or renamed codes and code lists stay online (e.g. /c/golden_code, /list/single). Before the main upload, delete every S3 object under c/ and list/ that the build did not produce. Abort if the build has fewer than 10 files under a prefix or if more than 50 objects would be deleted. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NyJvrSZfCdKrfziCXK643Q
Member
Author
This branch has not been deployed
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 site's deploy step (
yarn s3-deploy) uploads files but never deletes them. Pages of codes whose YAML was deleted, or whosecode_idwas renamed, therefore stay online. The same holds for code lists.A check of every
code_idthat ever appeared in this repository's history (1,292) found two such pages still live:/c/golden_code(its YAML was removed on 2026-04-22) and/list/single(removed on 2024-04-29). The other 114 retired ids already return 404.This PR adds one step to
build-and-deploy-site.ymlanddevsite-build-and-deploy.yml, before the main upload:c/andlist/;The deploy step that follows invalidates the CloudFront cache, so the removed pages return 404 afterwards. Nothing is redirected: only current
code_idandlist_idpages stay on the site.Tested: YAML loads, the shell passes
bash -n, and a simulation with a stubawscommand deletes exactlyc/golden_code.htmlandlist/single.html. Not tested against the real bucket. The first run's log lists every deleted key, and the step needss3:ListBucketands3:DeleteObjectfor the deploy credentials (the earlier deploy action useddelete-removed: true, so they likely have them).🤖 Generated with Claude Code
https://claude.ai/code/session_01NyJvrSZfCdKrfziCXK643Q