CenterForDigitalHumanities / CenterForDigitalHumanities/TPEN-services
Missing Database Connection Validation in Workflows
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Files: .github/workflows/cd_dev.yaml, .github/workflows/cd_prod.yaml
Issue: Workflows create .env from secrets but don't validate database connectivity before running tests. Tests may fail due to network issues rather than code issues.
Recommendation:
Add a pre-test step that validates database connections
Provide clear error messages if databases are unreachable
Consider using GitHub Actions services for test databases
Contributor guide
Research direction
Start by reading .github/workflows/cd_dev.yaml and .github/workflows/cd_prod.yaml, focusing on how .env files are created and where tests run. Compare the two workflows and identify the existing database configuration; done means both workflows check database reachability before tests and report a clear error when a connection cannot be established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd, databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100