Skip to content

ci: nightly deploy of dev to the main internal instance (#2985) - #2986

Closed
obasilakis wants to merge 5 commits into
devfrom
feature/2985-nightly-prod-deploy
Closed

obasilakis wants to merge 5 commits into
devfrom
feature/2985-nightly-prod-deploy

Conversation

@obasilakis

@obasilakis obasilakis commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2985

New .github/workflows/deploy-prod-nightly.yml: runs at 04:00 UTC, and on workflow_dispatch. Job only runs from main.

Order of steps: resolve the dev-green tag (#2945) → skip if already deployed → skip if an execution is running → pg_dump (trailer-verified) → detached checkout of that SHA → enterprise stale check → build with --pull → reap stale compose containers (#2204) → re-check in-flight executions → up -d (enterprise overlay) → health gate on backend, scheduler, MCP → enterprise registration grep → write the deployed-SHA marker. Three skipped nights in a row fail the run. A failed run files one deduped issue. It deliberately does not use the deploy-failure label, so it can't silence dev's alerts.

Needed before it can run (admin / ops):

  • Repo admin: create a production environment with deployment branches restricted to main
  • Add environment secrets PROD_HOST, PROD_USER, PROD_SSH_KEY
  • Ops: deploy key installed on the host (values in the team secret store)
  • The schedule only fires once this file reaches main

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

✅ Nightly unit-suite clean when this PR is merged into dev, all 3 seeds (head_sha: 2d7b005ec268f25c08518603576f25fa810e05e9).

@AndriiPasternak31

AndriiPasternak31 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

/validate-pr — ❌ REQUEST CHANGES

All line refs are in .github/workflows/deploy-prod-nightly.yml.

Blocking

  1. regression diff is red because of this PR. test_2814_workflow_trigger_parity sees the new schedule/workflow_dispatch triggers, which are not on main. Add the two rows to ACCEPTED_UNTIL_RELEASE, the way dev-nightly.yml did. Reproduced locally: 1 failed / 76 passed.
  2. The backup check passes on a failed backup (L82-83). With no pipefail, a failing pg_dump | gzip still writes a valid ~20-byte gzip, so gzip -t && [ -s ] is always true. Also, set -e does not abort on a failure on the left side of &&. Proven with a stubbed failing pg_dump: the script exited 0, restarted containers and recorded the SHA.
  3. A failed health check doesn't fail the deploy (L117). With curl -sf … && echo OK, a 503 (the failed-migration case) is swallowed and the run goes green and records the SHA. Proven under bash and sh. (deploy-dev.yml on dev has the same bug: bug(ci): Deploy to Dev goes green when the backend fails its post-deploy health check #2995.)
  4. The running-executions check races the restart. It runs at L73, but up -d is at L110, after a multi-minute build, so anything started in between is killed. Re-check immediately before up -d.

Should fix

OK: no hard-coded hosts/IPs/keys; the failure issue dedupes on title and has no log leak in its body; the concurrency group serialises this workflow.

Verification: the deploy script: was extracted and run with stubbed git/docker/sudo/curl across 9 scenarios, the notify block was run against a stubbed gh, and actionlint is clean. Finding 4 and the Postgres container/role names were checked by reading only.

obasilakis and others added 2 commits September 24, 2026 15:21
Scheduled 04:00 UTC + manual. Same shape as deploy-dev.yml, plus a
pre-deploy pg_dump and a skip when executions are running. Secrets are
scoped to a production environment.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@obasilakis
obasilakis force-pushed the feature/2985-nightly-prod-deploy branch from c8e8f0a to 208ce6b Compare September 24, 2026 13:22
@vybe

vybe commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

merge-train: ejected from this train — rides the next one once fixed.

Blocking (all in .github/workflows/deploy-prod-nightly.yml):

  • ~L81–83: no pipefail, so a failed pg_dump | gzip still produces a valid, non-empty gzip and the backup check passes (reproduced).
  • ~L114: curl -sf … && echo swallows a failed health check under set -e; the run still records the SHA as deployed (reproduced).
  • ~L68 vs L110: the running-executions check happens before a multi-minute build; re-check right before up -d.

Needs an admin before merge: the production environment does not exist yet. If this lands first, GitHub auto-creates it with no branch restriction. Create it restricted to main first.

Also worth addressing: carry over the #1443 submodule update checkout line and #2204 stale backup-container cleanup from deploy-dev.yml; the enterprise boot-log lines printed into a public Actions log; skipped nights only emit a warning; and the PR body names an internal secret-store vault/item, which is better removed from a public repo.

The earlier review's test finding is fixed (test_2814 + test_2625: 77 passed).

@AndriiPasternak31 AndriiPasternak31 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes on two small things. The rest is suggestions.

1. Inherits #2995 and poisons the skip marker (deploy-prod-nightly.yml:111). curl -sf .../health && echo " Backend: OK" doesn't abort under set -e. I ran the extracted script: block with a stubbed always-failing curl: exit 0 under bash and sh, and ~/.trinity-last-deployed-sha gets written. So the next night sees TARGET == LAST and skips. A broken prod stays broken with no retry and no alert. The enterprise grep catches an Alembic failure (that crashes at import, before the "registered" print) but not a lifespan failure, which happens after it. On Postgres, /health is liveness-only (main.py:1653), so this line is the only liveness gate.

curl -sf http://localhost:8000/health >/dev/null || { echo "::error::backend unhealthy after deploy"; exit 1; }

2. The pre-deploy backup check can't fail (:76-77). With no pipefail, a failed pg_dump still leaves a valid 20-byte gzip that passes gzip -t && [ -s ]. Reproduced: exit 0, empty dump, then it migrates prod. set -eo pipefail on :50 fixes it (re-ran: exit 1). A content check (the PostgreSQL database dump complete trailer) would be better still.

Suggestions, not blocking:

  • Deploy dev-green, not the dev tip. #2945's tag and scripts/ci/dev-last-green.sh are on dev now. The tip can be a 03:59 merge Tier 2 hasn't seen, and deploy-dev's cron fires at the same 04:00. git checkout --detach "$TARGET_SHA" instead of pull also removes the fetch→pull race between :57 and :82.
  • Move the in-flight check to just before up -d. It runs before a multi-minute build, and anything that starts in that window gets killed. Also, repeated skips are a silent green. Consider alerting after N skipped nights.
  • production doesn't exist yet, and GitHub creates it unprotected on first use. Add if: github.ref == 'refs/heads/main' on the job so this doesn't depend on the settings step.
  • Health-gate the scheduler (and MCP) too. Only the backend is probed.
  • Rollback: print the previous SHA before overwriting the marker, and put a checkout-prev/rebuild/restore-dump recipe in the failure issue. Also consider a host-side flock against manual deploys, and assigning the failure issue.
  • Please edit the 1Password vault/item name out of the PR body. This repo is public.

I verified both blockers with a stubbed run of the extracted block. Happy to re-review once they're in.

@AndriiPasternak31

Copy link
Copy Markdown
Contributor

Correction to blocker 2: don't add set -o pipefail to the whole script. The enterprise check printf '%s\n' "$BOOT_LOG" | grep -q '…registered' then goes false-red. grep -q exits on the first match, printf takes SIGPIPE, and under pipefail the pipeline fails. I reproduced it locally with a 200 KB boot log: red 5/5 with pipefail, green 3/3 without. Real boot logs cross the 64 KB pipe buffer.

Scope it to the dump instead:

( set -o pipefail; sudo docker exec trinity-postgres pg_dump -U trinity trinity | gzip > "$DUMP" )

Blocker 1's curl … || exit 1 stands as written.

@AndriiPasternak31

Copy link
Copy Markdown
Contributor

The fix for blocker 2 (the curl -sf …/health && echo " Backend: OK" line, which never fails under set -e) is now up for deploy-dev.yml in draft PR #3051 (Fixes #2995). The Health block is here: https://github.com/Abilityai/trinity/pull/3051/files#diff-6437260bac3153131c87371ba3b15180e0e07bb9a3e0ee6f7c25068aa9bdccdfR387

Please use the same block in deploy-prod-nightly.yml so the two files match. It makes 3 probes with curl -fsS --max-time 30, 20 s apart, then prints filtered diagnostics, ::error:: and exit 1. It also runs before the skip marker is written, so a failed health check can no longer poison it. The two PRs touch different files and can merge in either order.

@dolho dolho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/review — #2986 (re-review): changes still required

The head is 208ce6b and hasn't changed since 2026-09-24. The blockers from Andrii's changes request and the 09-23/09-25/09-27 comments are still open. The PR merges cleanly with dev (26 commits behind).

Prior review items

# Item Resolved?
B1 A failed health check doesn't fail the run, and the SHA marker is still written No: :111 curl -sf http://localhost:8000/health && echo " Backend: OK"
B2 The backup check passes on a failed pg_dump (no pipefail) No: :76-77 unchanged. Use the subshell-scoped ( set -o pipefail; … ); a script-wide one breaks the grep -q enterprise check.
V4 The in-flight execution check runs before a multi-minute build No: the check is at :67, up -d at :104
— test_2814 trigger parity Yes (ACCEPTED_UNTIL_RELEASE rows)
S Deploy --detach $TARGET_SHA rather than pull; carry over #1443's submodule line and #2204's backup-container reaper; main-only job guard; health-gate the scheduler and MCP; print the previous SHA and a restore recipe; host flock No
S Up to 20 enterprise boot-log lines go to the public log (:118) No
S The 1Password vault/item name is still in the PR body No

Critical

  1. The health gate cannot fail (10/10). Same line as B1. #3051 (now on dev) replaced it in deploy-dev.yml with a 3-probe curl -fsS --max-time 30 loop that exits 1. Port that block here so the two files match.
  2. The backup check always passes (10/10). Same as B2. A 20-byte empty gzip passes gzip -t && [ -s ], and prod then migrates with no real backup.
  3. Secret exposure depends on repo settings, not code (8/10). The production environment doesn't exist yet, and GitHub creates it unprotected on first use. Any writer can run workflow_dispatch from any branch, so without a main-only deployment-branch rule, a modified branch copy of this file can read PROD_SSH_KEY. Create the environment with that restriction before merging. A job-level if: is only a backstop, since a branch copy can delete it.

Informational

  • The marker records HEAD after pull (:122), not the TARGET_SHA from :57, so the fetch→pull race can deploy a commit the skip check never saw.
  • The in-flight check only reads schedule_executions and hard-codes the trinity-postgres container and role. A mismatch fails red, which is the safe direction.
  • ~/backups uses the default umask and has no retention, so prod dumps accumulate.

Clean

No hosts, IPs or keys are committed. Actions are SHA-pinned and match deploy-dev.yml. There is no pull_request_target or untrusted-code path. permissions: contents: read. The failure issue dedupes on its title.

Required before merge: B1 (port #3051's health block), B2 (subshell pipefail), the in-flight re-check right before up -d, the production environment restricted to main, and the PR body edited.

@dolho dolho added the status-needs-fix PR has an unaddressed review/validation finding; cleared by the author's next push (#2815) label Sep 29, 2026
…ploy dev-green (#2985)

- Health: port deploy-dev's 3-probe block (#2995); gate scheduler + mcp-server health too
- Backup: subshell-scoped pipefail on pg_dump, verify the dump-complete trailer, umask 077, 14-day retention
- Re-check in-flight executions right before `up -d`; 3 skipped nights in a row fail the run
- Deploy the dev-green tag (#2945) via detached checkout; marker records that SHA
- Carry over #1443 submodule update=checkout and #2204 stale-container reaper
- main-only job guard; no enterprise boot-log lines in the public log
- Print previous SHA + backup path; rollback recipe in the failure issue

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot removed the status-needs-fix PR has an unaddressed review/validation finding; cleared by the author's next push (#2815) label Sep 30, 2026
@obasilakis

Copy link
Copy Markdown
Contributor Author

Addressed in 63e81da. All in deploy-prod-nightly.yml.

Blockers

  • Health: ported fix(ci): Deploy to Dev fails when the backend /health probe fails (#2995) #3051's 3-probe curl -fsS --max-time 30 block; fails with exit 1 before the marker is written. Scheduler and MCP health are now gated too (fail if not healthy within 60 s).
  • Backup: pipefail is scoped to the dump subshell (script-wide stays off, per the SIGPIPE note), and the dump must end with the PostgreSQL database dump complete trailer. Dir and dump are umask 077; dumps older than 14 days are pruned.
  • In-flight executions are checked again right before up -d. Three skipped nights in a row fail the run, so the failure issue gets filed.

Suggestions taken

Not done

  • Host flock. It only helps if manual/ops deploys take the same lock.
  • Assigning the failure issue.

Stub run of the extracted script: failing curl → exit 1, no marker. Failing pg_dump → exit 1. Running execution → skip (1/3), and the third skip → exit 1. Happy path → marker written. A 300 KB boot-log grep stays green. test_2814 + test_2625: 77 passed.

A repo admin still has to create the production environment, restricted to main, before this merges.

@vybe

vybe commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

merge-train: not on this train. It rides the next one once fixed. Every code blocker from Andrii's review, dolho's re-review and the 09-25 train is fixed at 63e81dab. We extracted the script: block and ran 17 stubbed scenarios under bash. No failed backup, health check, build or up -d writes the deployed marker.

Blocking:

  • The production environment does not exist. The repo's only environment is pypi. A branch copy of the workflow can drop the if: at :29 and workflow_dispatch it, and without a main-only branch rule it reads PROD_SSH_KEY/PROD_HOST. An admin has to create the environment first, restricted to main, and move the PROD secrets into it as environment secrets.

Mechanical fixes:

  • :113 uses set -o pipefail. That is an illegal option under dash/POSIX sh, and ssh-action runs the script in the remote login shell. Every run would then report "pg_dump failed" and never deploy. That fails closed, but the error is misleading. Drop the pipefail, since the trailer check at :115 already catches a failed dump, or run the dump under bash -o pipefail -c.
  • No committed test runs the script. test_2814 matches trigger names and test_2625 is a length cap. Add a test_2985_* on the test_2995_deploy_health_gate.py harness: health fails, dump fails, dump without its trailer, and the happy path, all under bash and sh.

Your call:

  • :172 prints up to 10 backend error|exception|failed lines into the public Actions log. On prod a DB or Redis connection error can carry internal hostnames. Consider printing counts only.
  • The trinity-postgres container and trinity role are hard-coded. docker-compose.prod.yml has no postgres service, so document it in the header.
  • The detached HEAD on the prod host breaks manual git pull deploys. The ops runbook needs to know.

@vybe vybe added the status-needs-fix PR has an unaddressed review/validation finding; cleared by the author's next push (#2815) label Sep 30, 2026
#2985)

- Drop `set -o pipefail` from the pre-deploy dump: dash rejects it, so every
  run on a dash login shell reported "pg_dump failed". The trailer check is
  the gate; `||` still catches gzip failing.
- Health failure prints a count of error-like backend lines, not the lines:
  the Actions log is public.
- Header documents the trinity-postgres container assumption, the detached
  HEAD left on the host, and the POSIX constraint.
- test_2985: runs the whole script under bash, sh and dash with stubs —
  happy path, health failure, failed dump, dump missing its trailer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@obasilakis

Copy link
Copy Markdown
Contributor Author

Addressed at b46b0d4b:

  • pipefail: dropped. The dump trailer check is the gate; || still catches gzip failing (disk full).
  • Script test: tests/unit/test_2985_deploy_prod_script.py runs the whole script: under bash, sh and dash with stubs: happy path, health failure, failed dump, dump without trailer. Each failure asserts ::error:: and an untouched deployed-SHA marker. 12 passed. Against the previous commit, 7 fail, including the dash happy path (set: Illegal option -o pipefail).
  • Public log: a health failure now prints a count of error-like lines, not the lines. The test asserts a stub internal hostname does not reach stdout.
  • Header: documents the trinity-postgres / trinity role assumption, the detached HEAD on the host (manual git pull fails; check out a branch or use workflow_dispatch), and the POSIX constraint.

Still blocking, needs an admin: create the production environment restricted to main and move the PROD_* secrets into it. The repo currently only has pypi.

@github-actions github-actions Bot removed the status-needs-fix PR has an unaddressed review/validation finding; cleared by the author's next push (#2815) label Oct 1, 2026
@vybe

vybe commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

@AndriiPasternak31, could you re-review? Your CHANGES_REQUESTED from 09-27 is the only thing blocking this. A merge-train check of the two commits since then says every point is addressed:

  • B1: the health loop exits 1 before the marker (:173-188).
  • B2: the dump is verified by its trailer (:124).
  • Deploys dev-green with a detached checkout, and refuses a tag that isn't on origin/dev.
  • In-flight re-check right before up -d.
  • Repeated-skip alert.
  • main-only if:.
  • Scheduler and MCP health gates.
  • Rollback recipe.
  • Vault name removed from the body.

flock and the issue assignment were declined, with reasons given.

Still open, as small follow-ups:

  • The trailer check uses tail -n 5. pg_dump ≥17.6's \unrestrict line leaves the trailer exactly at line 5 of 5, so use tail -n 20.
  • psql failing in the in-flight check exits without an ::error::.
  • The body still says "pipefail".

Before release: a production environment restricted to main has to exist before any PROD_* secrets are added.

…mp trailer window (#2985)

psql failing inside check_in_flight exited silently under set -e. It now
prints ::error:: before exiting. The trailer check reads the last 20 lines,
since pg_dump >= 17.6 appends a \unrestrict block after the trailer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@obasilakis

Copy link
Copy Markdown
Contributor Author

Follow-ups from the last merge-train pass, at 2d7b005e:

  • Trailer check reads tail -n 20. The test stub now emits pg_dump ≥17.6's \unrestrict tail after the trailer.
  • psql failing in the in-flight check prints ::error:: and exits 1. New test test_failed_in_flight_query_fails_loudly under bash, sh and dash.
  • PR body no longer says pipefail.

@AndriiPasternak31 ready for re-review.

Still needs an admin: a production environment restricted to main, with PROD_* moved into it as environment secrets, before this merges.

@vybe

vybe commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

merge-train: validated READY on 2d7b005ec — 92 tests pass (test_2985_deploy_prod_script, test_2814_workflow_trigger_parity, test_2625_workflow_expression_cap), the script runs under bash, sh and dash, and each of health failure, failed dump, truncated dump and failed in-flight query exits non-zero before the deployed-SHA marker is written (:214). The 10-01 follow-ups (tail -n 20, loud psql failure, body) are all in.

Not merged today for one reason: @AndriiPasternak31's CHANGES_REQUESTED from 09-27 (against 208ce6b0c) is the only approval signal on the PR, and it blocks the merge until refreshed. @AndriiPasternak31, could you take another look? Every point from that review was verified in the tree twice.

The production environment (restricted to main, PROD_* as environment secrets) still doesn't exist. Since the workflow is main-only and schedule/dispatch-triggered, merging to dev creates no exposure; the environment has to exist before the next release carries this file to main.

One follow-up worth an issue, not a blocker: when the second check_in_flight (:168) skips, the run is green but the host tree is already checked out at the new detached SHA with the enterprise submodule updated (:134-139). Prod bind-mounts ./config/* and the enterprise overlay mounts ./src/backend/enterprise, so an old backend image can run with new templates/enterprise source for up to three nights, and a crash-restart in that window boots old OSS + new enterprise code. Restoring git checkout --detach "$LAST_SHA" + submodule before skip would close it. Smaller: the Tailscale action is pinned at v4.1.3 while deploy-dev.yml is on v4.2.0, and the dedup issue search is token-matched, so another open issue carrying those words could be picked by .[0].

@vybe

vybe commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

@AndriiPasternak31 could you re-review? Your 09-27 blockers look addressed at 2d7b005e: the health check exits before the deployed-SHA marker is written, the dump is trailer-verified, and the in-flight query fails loudly. The merge train validated it READY on 10-02. The red journey-impact is a cancelled run; a second run on the same head passed.

Pre-merge admin step: create a production environment restricted to main and move the PROD_* secrets into it (the repo currently has only pypi).

@vybe

vybe commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Change of direction before this lands: the nightly production deploy shouldn't live in this public repo. A deploy workflow for our own instance is internal tooling, and its script documents our production host layout to the world. Please move it to the private trinity-enterprise repo (the src/backend/enterprise submodule) and close this PR once the move is up.

  • Move: .github/workflows/deploy-prod-nightly.yml plus its tests (test_2985_deploy_prod_script.py, and the test_2814_workflow_trigger_parity.py entry). The workflow will need to check out abilityai/trinity explicitly, since it no longer runs inside it.
  • The production environment and PROD_* secrets go on the private repo, restricted to its main.
  • Note: Actions on trinity-enterprise currently isn't starting jobs (billing), so that has to be fixed before the nightly can run there.

The fixes from the 09-27 review carry over unchanged.

@vybe vybe added the status-needs-fix PR has an unaddressed review/validation finding; cleared by the author's next push (#2815) label Oct 3, 2026
@obasilakis

Copy link
Copy Markdown
Contributor Author

@vybe moved to abilityai/trinity-enterprise#786.

  • The workflow and test_2985_deploy_prod_script.py moved with every fix from the 09-27 review. The script test passes, 15 of 15, under bash, sh and dash.
  • The test_2814 entries are dropped. That test only scans this repo's workflows.
  • No checkout of abilityai/trinity is added. The runner only SSHes to the host, and the host's ~/trinity clone fetches dev and dev-green itself.
  • Failure issues are now filed in trinity-enterprise.
  • Before the first run: create a production environment there, restricted to main, with the four PROD_*/Tailscale secrets, and fix Actions billing.

Closing this PR once #786 is reviewed.

@AndriiPasternak31 AndriiPasternak31 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review at 2d7b005e. My 09-23 and 09-27 blockers are all fixed. I checked each one by running it, not by reading.

  • Health gate. :176-191 makes 3 probes and exits 1, and the marker is written only at :214, after every gate. If I swap back to curl -sf … && echo, 3 tests go red. Moving the marker above Health also turns 3 red.
  • Backup. The dump has to end with its trailer (:125-130). Swapping back to the old gzip -t && [ -s ] check turns 6 red (fail and truncated, under bash, sh and dash).
  • pipefail. There is no script-wide pipefail and dash runs clean. A failed psql query now stops the run with an ::error:: (3 tests go red if that is removed).
  • Suggestions. All in, except the two you declined with reasons (flock, assigning the issue): dev-green with a detached checkout and an ancestor check, the in-flight re-check before up -d, the 3-night alert, the main-only if:, the scheduler and MCP gates, rollback info, the #2204 and #1443 carry-overs, and no boot-log lines in the public log.

I'm leaving my review as is rather than approving. Per vybe's 10-03 call this workflow belongs in the private repo, and abilityai/trinity-enterprise#786 has the same behaviour: I diffed the two, and only comments and issue refs differ. Please close this PR. My remaining notes are for #786:

  1. The second in-flight check (:168) can skip after checkout and build, and the run still ends green. The host is then left on the new SHA plus the new enterprise checkout while the old containers keep running. Prod bind-mounts ./config/* and ./src/backend/enterprise, so the old image serves new templates and enterprise source for up to 3 nights, and a crash-restart boots old OSS with new enterprise code. I reproduced this with your harness (psql returns 0, then 1): rc=0 with a ::warning:: only. Fix: restore LAST_SHA and the submodule inside skip(), or build from a separate worktree.
  2. Seven gates have no test. I deleted each one in turn and every test stayed green: the re-check, the 3-skip escalation, the scheduler/MCP gate, the dev-green ancestor check, the stale-pin check, the enterprise-registration grep, and the tail -n 20 window. The stub's trailer sits on line 5 of 6, so tail -n 5 also passes. Each needs only one new stub mode on the existing harness.
  3. Tailscale pin. :46 is pinned to v4.1.3; deploy-dev.yml on dev uses v4.2.0.
  4. Before #786 merges, create production restricted to main, then add the secrets. Otherwise the first scheduled run creates the environment with no protection.

Housekeeping:

  • When #786 merges, close #2985 by hand. A Refs link to another repo doesn't close it.
  • The 2026-09-24 revision in this PR body's edit history still shows the secret-store vault and item name. Can someone with write access delete that revision?

@obasilakis

Copy link
Copy Markdown
Contributor Author

Superseded by the private-repo port (trinity-enterprise#786). Closing unmerged so only one deploy-prod workflow targets the host.

@obasilakis obasilakis closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status-needs-fix PR has an unaddressed review/validation finding; cleared by the author's next push (#2815)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants