-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR allows the agent0 pipeline to connect to an existing postgres resource instead of managing it's own container. NOTE: actual implementation of this in the infra repo is blocked by registry updates to query registered pools (delvtech/hyperdrive#1039). Currently, we use events to get registered pools, but since infra uses anvil's save/load state, register events get lost. Need follow up after the hyperdrive registry update to get list of registered pools from contract call. - Agent0 `Chain` object now has a flag `use_existing_postgres` to look for env variables to connect to existing postgres container. - Using singular `.env` file instead of multiple ones for defining env variables. - Fixing checkpoint bots and invariance checks to take an `--infra` flag to look for environment variables for connection. - Fixing data pipeline scripts to read hyperdrive addresses from registry. - Fixing bug to rolling back db when adding hyperdrive addr to name fails
- Loading branch information
Showing
22 changed files
with
214 additions
and
114 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Postgres configuration | ||
# Used when chain's config `use_existing_postgres` is set to True | ||
POSTGRES_USER="admin" | ||
POSTGRES_PASSWORD="password" | ||
POSTGRES_DB="agent0_db" | ||
POSTGRES_HOST="localhost" | ||
POSTGRES_PORT=5432 | ||
|
||
# Rollbar api key | ||
ROLLBAR_API_KEY=<INSERT_KEY> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""Loads config""" | ||
|
||
from .postgres_config import PostgresConfig, build_postgres_config | ||
from .postgres_config import PostgresConfig, build_postgres_config_from_env |
Oops, something went wrong.