Skip to content

Consolidate environment configuration and update test documentation - #305

Merged
tacianosilva merged 7 commits into
mainfrom
agents/test-database-permission-issues
Sep 15, 2026
Merged

tacianosilva merged 7 commits into
mainfrom
agents/test-database-permission-issues

Conversation

@tacianosilva

Copy link
Copy Markdown
Member

This pull request focuses on simplifying and improving environment configuration for local development and CI, as well as updating documentation to match these changes. The main updates include introducing a single .env.example file with placeholder values, removing obsolete files and references, and clarifying setup steps for both developers and CI workflows.

Environment configuration improvements:

  • Added .env.example with placeholder values for sensitive data, replacing previous .env and contrib/env-sample files, and updated to remove real credentials and unused variables such as DATABASE_TEST (.env.example, [1] [2] [3].
  • Updated CI workflow to copy .env.example to .env and set database credentials for tests, ensuring compatibility with the new configuration approach (.github/workflows/pythonapp.yml, .github/workflows/pythonapp.ymlL59-R61).

Documentation updates:

  • Added AGENTS.md as a comprehensive guide for setting up local environments, configuring the database and test permissions, running tests, and understanding CI environment expectations.
  • Updated README.md to reference .env.example, remove references to path.env and contrib/, and clarify environment setup and test execution steps [1] [2] [3].
  • Removed obsolete documentation and directory references, including contrib/ from CONTRIBUTING.md and contrib/path.env-sample [1] [2].

These changes make environment setup more secure, consistent, and easier to follow for both new contributors and CI processes.

tacianosilva and others added 3 commits September 15, 2026 15:59
Replace legacy environment samples with a sanitized root .env.example, update CI and documentation, and record the test database setup for coding agents.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the development database role and password in the environment template.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document the Django test runner for regular and coverage runs, removing obsolete Nose and unittest discovery instructions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tacianosilva tacianosilva self-assigned this Sep 15, 2026
Copilot AI lite review requested due to automatic review settings September 15, 2026 19:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Environment sourcing can break CI and documented setup, while the default database host may break Docker deployments.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR consolidates environment configuration, updates setup documentation, and removes obsolete environment files.

Changes:

  • Adds a sanitized .env.example for local development and CI.
  • Updates README, AGENTS, CONTRIBUTING, and CI configuration.
  • Removes obsolete contrib samples and path.env references.

Review findings:

  • Critical (3 votes): Unquoted values can cause CI environment sourcing to fail.
  • Moderate (3 votes): The same values break the documented README setup.
  • Moderate (2 votes): The default database host may fail in Docker deployments.
File summaries
File Summary
README.md Updates environment setup and test instructions.
CONTRIBUTING.md Removes obsolete contrib/ documentation.
contrib/path.env-sample Removes obsolete path template.
contrib/env-sample Removes obsolete environment template.
AGENTS.md Adds environment, database, testing, and CI guidance.
.gitignore Removes the obsolete path.env rule.
.github/workflows/pythonapp.yml Uses the new environment template in CI.
.env.example Provides a consolidated sanitized environment template.
Review details

Suppressed comments (1)

.env.example:28

  • This host value is also consumed by docker-compose.yml, which injects .env into the web container while linking PostgreSQL as postgres-server. A deployment that copies this template without overriding the value will make the web container connect to its own localhost and fail; set the Docker service's database host explicitly or document a Docker-specific override.
  • Files reviewed: 7/8 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/pythonapp.yml
Comment thread README.md
tacianosilva and others added 4 commits September 15, 2026 16:26
Quote values containing spaces so the CI setup can source the generated environment file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use sourceable origin lists and configure the session duration from the environment.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the unused commented Matplotlib plotting implementation and its imports from the views module.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tacianosilva
tacianosilva merged commit 51895a3 into main Sep 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants