Skip to content

Test db setup - #9

Closed
ajs2583 wants to merge 2 commits into
mainfrom
test-db-setup
Closed

ajs2583 wants to merge 2 commits into
mainfrom
test-db-setup

Conversation

@ajs2583

@ajs2583 ajs2583 commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator

This pull request adds support for fully isolated manual bot testing in the docgpt system, allowing developers to run a second Discord bot instance with separate test databases and environment variables. It introduces new configuration files, updates documentation for safe test workflows, and improves the bot's feedback UX by ensuring reactions are added to the assistant's reply instead of the user's question.

Testing infrastructure and workflow improvements:

  • Added .env.test.example for test environment variables, including separate API keys, tokens, and database URLs.
  • Introduced docker-compose.test.yml to spin up isolated PostgreSQL (pgvector) and MongoDB containers for test runs.
  • Added run-test-bot.sh script to start a second bot instance using .env.test and the test databases.
  • Expanded README.md with step-by-step instructions for manual bot testing and running a second bot side-by-side with production, including environment setup and teardown.

@github-actions

Copy link
Copy Markdown

PR Change Log

Changed Files Summary

Overall: 5 files changed, 147 insertions(+), 1 deletion(-)

Files Changed

Status File Lines Added Lines Removed
Added systems/docgpt/.env.test.example +18 -0
Modified systems/docgpt/README.md +67 -0
Added systems/docgpt/docker-compose.test.yml +31 -0
Added systems/docgpt/run-test-bot.sh +18 -0
Modified systems/docgpt/src/app/discord.py +13 -1

Changes by Directory

  • systems/docgpt/: 4 file(s)
  • systems/docgpt/src/app/: 1 file(s)
  • ./: 1 file(s)

Warnings

No large file changes detected.


Updated: 2026-03-23T18:44:02.709Z

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

@github-actions github-actions Bot added the stale label Apr 23, 2026
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

This pull request was closed because it has been stale for 14 days with no activity. Feel free to reopen if you'd like to continue working on it.

@github-actions github-actions Bot closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant