Skip to content

Fix transaction error translation and CI action reference - #14

Merged
cesaints merged 2 commits into
mainfrom
cx/ci-unique-violation-trivy
Oct 14, 2026
Merged

cesaints merged 2 commits into
mainfrom
cx/ci-unique-violation-trivy

Conversation

@cesaints

@cesaints cesaints commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Repository writes could raise a raw IntegrityError during the repository's flush before reaching commit(), which made the idempotency integration test fail. Translate PostgreSQL unique violations (23505) at both transaction boundaries, roll back and close the session, and preserve all other integrity errors. Add unit regressions and PostgreSQL integration coverage for both flush and commit.

Pin Trivy's existing v0.28.0 release to its verified official commit; the previous unprefixed 0.28.0 reference does not exist. Refresh the README to describe the implemented architecture, local setup, and verification limits without claiming production operation.

Validation on Python 3.12:

  • Ruff lint and format check passed (111 files).
  • Mypy passed (94 source files).
  • 88 unit tests passed; coverage 86.87% against the 80% gate.
  • Independent scoped code review passed; git diff --check passed.

PR CI passed on head cbedb70663bd68a3d809efcaff76e1972246596c: run 38651591781. Ruff/Mypy, 88 unit tests (86.87% coverage), 6 PostgreSQL/Testcontainers integration tests, frontend build, and secret scanning all passed. The integration tests include duplicate writes failing during both flush and commit. Local PostgreSQL integration was unavailable because the Docker daemon was not running.

The workflow skipped the Docker build/publish job on this pull request, so this PR does not verify an image build, scan, or GHCR publication. This change does not deploy an application or migrate a database.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T23:04:50.665518Z cbedb70 PR opened
🔒 Security Review ✅ Completed 2026-10-14T23:05:08.571206Z cbedb70 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@cesaints
cesaints merged commit 8e23e19 into main Oct 14, 2026
8 checks 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