feat: add archive infrastructure for EOL distribution packages#47
Open
abtreece wants to merge 4 commits intofullstaq-ruby:mainfrom
Open
feat: add archive infrastructure for EOL distribution packages#47abtreece wants to merge 4 commits intofullstaq-ruby:mainfrom
abtreece wants to merge 4 commits intofullstaq-ruby:mainfrom
Conversation
6 tasks
The previous code degraded any non-2xx response (auth errors, 5xx, redirects) to LATEST_VERSION=0 whenever the suffix indicated an archive bucket. That silently turns a transient outage or misconfiguration into Caddy redirecting clients to /versions/0/... 404s — broken behavior masquerading as valid config. Only treat HTTP 404 as the legitimate "archive not yet populated" case; surface every other failure.
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
apt-archive.fullstaqruby.organdyum-archive.fullstaqruby.orgquery-latest-repo-versions.rbto query archive bucket versions, with graceful fallback (version 0) before first migrationContext
Addresses fullstaq-ruby/server-edition#190 — CI disk space exhaustion from the growing Aptly state archive.
Archive repos follow the PostgreSQL (
apt-archive.postgresql.org) and HashiCorp (archive.releases.hashicorp.com) pattern: frozen repositories for EOL distributions, served as static redirects to GCS.Companion PR: fullstaq-ruby/server-edition#191 (migration scripts, build config, runbook)
Implementation plan:
context/plans/EOL-ARCHIVE-MIGRATION.md(Tasks 1-3)Deployment sequence
terraform applyinterraform/to create buckets and DNSTest plan
terraform init -backend=false && terraform validate && terraform fmt -check -diff -recursivepassesdig apt-archive.fullstaqruby.org Aanddig yum-archive.fullstaqruby.org Areturn backend server IPcurl -I https://apt-archive.fullstaqruby.org/dists/returns 302 to GCS