fix(status): replace Upptime readme with custom summary generator#81
Closed
andylizf wants to merge 1 commit into
Closed
fix(status): replace Upptime readme with custom summary generator#81andylizf wants to merge 1 commit into
andylizf wants to merge 1 commit into
Conversation
Upptime's built-in `readme` command queries the GitHub Commits API without specifying sha=status, so it reads the default branch (main) and finds no Upptime-formatted commits — producing an all-"down" summary even when every service is up. Replace it with a script that: - reads history/*.yml directly for current status - queries the API with sha=status for commit history - generates correct summary.json Already pushed to the status branch and verified working.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
No longer needed — moved to a dedicated Upptime repo at StarTrail-org/status |
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
readmecommand queriesoctokit.repos.listCommitswithoutsha=status, defaulting tomain— where there are no Upptime-formatted commits, so it generates"status": "down"for all serviceshistory/*.ymldirectly and queries the API withsha=statusstatusbranch and verified: all 5 services now show "up" on status.pixelrag.aiRoot cause
The
statusbranch is non-default. Upptime assumes its data lives on the default branch, which is a hard-coded assumption incalculate-response-time.tswith no configuration option to override.Test plan
statusbranch — committed correctsummary.jsonhttps://raw.githubusercontent.com/StarTrail-org/PixelRAG/status/history/summary.jsonshows all services "up"