chores(x2a): run local tests against PostgreSQL#2656
chores(x2a): run local tests against PostgreSQL#2656eloycoto merged 1 commit intoredhat-developer:mainfrom
Conversation
Review Summary by QodoEnable local PostgreSQL testing with testcontainers
WalkthroughsDescription• Add PostgreSQL testing capability to local development workflow • Create yarn test:pg and yarn test:all:pg scripts with CI=true flag • Add PostgreSQL container startup script for testcontainers support • Document PostgreSQL testing setup and Podman configuration Diagramflowchart LR
A["yarn test:pg<br/>CI=true"] --> B["testcontainers<br/>enabled"]
B --> C["postgres:18<br/>container"]
C --> D["SQLite + PostgreSQL<br/>tests"]
E["start-test-postgres.sh<br/>script"] --> F["Manual container<br/>management"]
G["README documentation"] --> H["User guidance<br/>& setup"]
File Changes1. workspaces/x2a/scripts/start-test-postgres.sh
|
Code Review by Qodo
1. Broken chores lint script
|
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
| "prettier:check": "prettier --check .", | ||
| "prettier:fix": "prettier --write .", | ||
| "chores": "yarn prettier:fix && yarn lint:all --fix && yarn tsc:full && yarn build:api-reports && yarn test:all", | ||
| "chores": "yarn prettier:fix && yarn lint:all:pg --fix && yarn tsc:full && yarn build:api-reports && yarn test:all:pg", |
There was a problem hiding this comment.
1. Broken chores lint script 🐞 Bug ≡ Correctness
workspaces/x2a/package.json updates chores to run yarn lint:all:pg --fix, but no lint:all:pg script exists in that workspace. yarn chores will fail immediately with an unknown script error.
Agent Prompt
### Issue description
`yarn chores` calls a non-existent script (`lint:all:pg`), so the command will fail.
### Issue Context
The workspace defines `lint` and `lint:all`, but not `lint:all:pg`.
### Fix Focus Areas
- workspaces/x2a/package.json[26-32]
### Suggested fix
Update `chores` to call an existing lint script (likely `yarn lint:all --fix`), or add a `lint:all:pg` script if you truly need a separate lint target.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Signed-off-by: Marek Libra <marek.libra@gmail.com>
4706909 to
198f6b2
Compare
|



This change adds
yarn test:pgscript to run our unit tests against both the SQLite and PostgreSQL locally, aligned with the CI.