Repository navigation
Track 4 staging (3/3): Run the ranking graph end to end on staging and check it - #170
Open
SuperNova-W wants to merge 1 commit into
Open
SuperNova-W wants to merge 1 commit into
SuperNova-W wants to merge 1 commit into
Conversation
run-on-staging.sh starts a throwaway Postgres and a Python container on the staging box (horizon-t4-* names only; nothing in the Coolify stack), seeds the synthetic semester, and materializes ranking_run through publish_ranking with their asset checks. run_t4.py prints the leaderboard and a member document, checks every seeded case and every metric value seed.py worked out (exit 1 if one is wrong), scores a v1 run to check the survey ratings, and writes a v1 vs v2 compare report. --tests also runs the suite with the database tests, --ui starts Dagster on 127.0.0.1:3070, --down removes everything. ship-to-staging.sh runs from a Mac clone: over one ssh appdev-staging connection it copies a branch's committed horizon/ folder to /opt/horizon-t4/<branch>, runs it there and copies the compare report back, so an unpushed branch can be tested.
This was referenced Nov 27, 2026
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.
run-on-staging.sh starts a throwaway Postgres and a Python container on the
staging box (horizon-t4-* names only; nothing in the Coolify stack), seeds the
synthetic semester, and materializes ranking_run through publish_ranking with
their asset checks. run_t4.py prints the leaderboard and a member document,
checks every seeded case and every metric value seed.py worked out (exit 1 if
one is wrong), scores a v1 run to check the survey ratings, and writes a v1 vs
v2 compare report. --tests also runs the suite with the database tests, --ui
starts Dagster on 127.0.0.1:3070, --down removes everything.
ship-to-staging.sh runs from a Mac clone: over one ssh appdev-staging
connection it copies a branch's committed horizon/ folder to
/opt/horizon-t4/, runs it there and copies the compare report back, so
an unpushed branch can be tested.
Stack
Track 4, stacked on Michael's #147 → #149 → #151 → #153. Review and merge in order; each PR shows only its own change.
t4/base-pr-153: a copy of T4.4: Delivery against the SOW metrics #153's head (90b8e5b, in Michael's fork), so this stack can target it. After T4.1: Ranking schema, rubric v1 and ranking runs #147–T4.4: Delivery against the SOW metrics #153 merge, retarget PR 1 tomaster.t4/4a-schema-upgradeT4.1 fix: add excluded_buckets to an existing ranked_memberst4/4b-review-fixesT4.3 fix: real elapsed review hours, Co-authored-by trailers, roster-only contributorst4/4c-survey-rolesT4.3 fix: count survey answers only from the respondents the card namest4/4d-inactive-stretchT4.2 fix: longest_inactive_stretch counts the gap since the last activityt4/5a-scoringT4.5 (1/4): Percentile, bucket and overall scoringt4/5b-read-modelsT4.5 (2/4): Published ranking document and leaderboard read modelst4/5c-member-scoresT4.5 (3/4): member_scores assett4/5d-publishT4.5 (4/4): publish_ranking assett4/6a-explanationsT4.6 (1/4): Explanation input, Claude call and fallbackt4/6b-member-explanationsT4.6 (2/4): member_explanations asset and published notest4/6c-admin-cliT4.6 (3/4): Admin CLI: finalize, compare, add-notet4/6d-rubric-v2T4.6 (4/4): Rubric v2 without survey buckets as the defaultt4/7a-staging-inputsTrack 4 staging (1/3): The deployed definitions of the input tablest4/7b-staging-seedTrack 4 staging (2/3): A synthetic semester with expected metric valuest4/7c-staging-runnerTrack 4 staging (3/3): Run the ranking graph end to end on staging and check it ← this PRTesting
./nx run horizon-dag:checkpasses on this branch. Database tests run whenTEST_POSTGRES_URLpoints at a Postgres the tests may create databases on, for examplepostgresql://postgres@127.0.0.1:5432/postgres; without it they are skipped.horizon/dev/t4-staging): every seeded case and every independently computed metric value matches. The same harness fails on the code before PRs 2–4.Size: 4 files changed, 397 insertions(+).