DevOps: Cloud Agent Postgres — postgresql-client, yieldomega role, bootstrap verify #287
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#287
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Agents consistently hit Postgres-related failures on Cloud VMs:
psql: command not found(postgresql-clientnot installed ).127.0.0.1:5433(no server, wrong port, or Dockeryieldomega-pgnever started).permission denied to create database(yieldomegarole missingCREATEDB).yieldomega-pgvs host PostgreSQL 16 (AGENTS.mdmanual setup is easy to miss).Stack and verify scripts assume:
127.0.0.1:5433(PG_HOST_PORT)yieldomega/passwordyieldomega_indexeryieldomega_indexer_testDATABASE_URLpostgres://yieldomega:password@127.0.0.1:5433/yieldomega_indexerScripts using
psql(not onlydocker exec):verify-podium-live-anvil.sh,verify-vault-funding-anvil.sh,verify-wallet-profile-anvil.sh,start-local-anvil-stack.shDB reset paths.Goals
psqlon PATH and a smoke check:psql "$DATABASE_URL" -c 'SELECT 1'.yieldomegarole withCREATEDB, both databases, documented test login.AGENTS.md§ Cloud agent verification).Recommended direction
A. Script:
scripts/bootstrap-cloud-postgres-native.sh(or extendbootstrap-cloud-vm-toolchain.sh)apt-get install -y postgresql-16 postgresql-client(when sudo available).yieldomega/ passwordpassword,CREATEDB.CREATE DATABASE yieldomega_indexerandyieldomega_indexer_testowned byyieldomega.B. Script:
scripts/verify-cloud-postgres.shcommand -v psqlpg_isready -h 127.0.0.1 -p "${PG_HOST_PORT:-5433}"psql "$DATABASE_URL" -v ON_ERROR_STOP=1 -c 'SELECT 1'psqlasyieldomegacanCREATE DATABASE/DROP DATABASE(CREATEDB smoke).DATABASE_URL,YIELDOMEGA_PG_TEST_URL.C. Wire into Cloud bootstrap
.cursor/environment.json: run native Postgres bootstrap when Docker verify fails or always as parallel path for indexer QA.scripts/verify-cloud-vm-toolchain.shwith Postgres row (not only Docker).D. Docs
AGENTS.md: link bootstrap script instead of long manual-onlysudoblock where possible.verify-cloud-postgres.sh→ PASS/FAIL.Acceptance criteria
psqlexists andpsql "$DATABASE_URL" -c 'SELECT 1'succeeds.yieldomegacan drop/recreateyieldomega_indexerviapsql(CREATEDB).bash scripts/verify-podium-live-anvil.sh(or smallest indexer smoke) PASS using host Postgres only.AGENTS.md+.cursor/environment.jsonreference the automated path.Related
yieldomega-pgcontainer: separate issue (Cloud Agent Docker API).Labels
devops,testing,cloud-agent,indexerRelated: #288 (Docker API / yieldomega-pg). Native Postgres bootstrap in this issue is the primary path when Docker is unavailable.
mentioned in commit 4740bda2be9182af6c116f67ebc99a942a571856
mentioned in merge request !420
mentioned in commit
34408980eementioned in merge request !421
mentioned in commit
c6820b64aamentioned in issue #288
mentioned in commit
f0b344bcc1mentioned in issue #351