Skip to content

Align CI DB URLs with loopback-only disposable Postgres policy - #6

Draft
Sandesh14015 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-validate-action-job
Draft

Align CI DB URLs with loopback-only disposable Postgres policy#6
Sandesh14015 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-validate-action-job

Conversation

Copilot AI commented Sep 7, 2026

Copy link
Copy Markdown

The validate GitHub Actions job failed because CI DB URLs used localhost while the disposable Postgres compatibility path enforces explicit loopback hosts. This PR updates CI/test DB connection settings to use 127.0.0.1 consistently and remove that mismatch.

  • Problem alignment

    • Normalize DB host values from localhost to 127.0.0.1 where CI/test database URLs are defined.
  • Workflow updates

    • .github/workflows/ci-cd.yml
      • Python test DATABASE_URL
      • Migration test DATABASE_URL
  • Environment parity

    • config/environments/test.env
      • DATABASE_URL now uses 127.0.0.1 to match CI behavior.
# before
DATABASE_URL: postgresql://...@localhost:5432/cashnet_test

# after
DATABASE_URL: postgresql://...@127.0.0.1:5432/cashnet_test

Co-authored-by: Sandesh14015 <226898507+Sandesh14015@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job validate Align CI DB URLs with loopback-only disposable Postgres policy Sep 7, 2026
Copilot AI requested a review from Sandesh14015 September 7, 2026 14:35
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