Compare commits

..

22 Commits

Author SHA1 Message Date
Barcode Betty 1ed8b185a0 Merge pull request 'chore: promote dev to uat (CAR-1422 psycopg2-binary fix)' (#21) from dev into uat
CI / lint (push) Successful in 4s
CI / test (push) Successful in 9s
CI / build-and-push (push) Successful in 1m15s
CI / grype (push) Failing after 2s
CI / deploy-dev (push) Has been skipped
CI / deploy-uat (push) Failing after 33s
chore: promote dev to uat (CAR-1422)

psycopg2-binary + python-multipart runtime deps fix.
Test CI green; lint flaked on Set up Python (runner infra).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-22 23:16:35 +00:00
Barcode Betty 6451058f7d Merge pull request 'fix: add psycopg2-binary to runtime deps (CAR-1422)' (#20) from betty/car-1422-psycopg2-binary into dev
CI / build-and-push (push) Successful in 1m22s
CI / build-and-push (pull_request) Has been skipped
CI / deploy-uat (push) Has been skipped
CI / lint (pull_request) Failing after 3s
CI / test (pull_request) Successful in 9s
CI / grype (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / lint (push) Successful in 3s
CI / test (push) Successful in 8s
CI / grype (push) Failing after 2s
CI / deploy-dev (push) Failing after 38s
CI / deploy-dev (pull_request) Has been skipped
fix: add psycopg2-binary to runtime deps (CAR-1422)

CI passed: lint+test green (run 3779/8090 rerun success).
Unblocks alembic upgrade head in standalone image.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-22 23:11:28 +00:00
Barcode Betty 87a7d63aeb fix: add psycopg2-binary to runtime deps (CAR-1422)
CI / test (pull_request) Successful in 9s
CI / lint (pull_request) Successful in 4s
CI / deploy-dev (pull_request) Has been skipped
CI / build-and-push (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / grype (pull_request) Has been skipped
alembic upgrade head uses SQLAlchemy sync engine with postgresql:// URL,
which requires psycopg2. The old image had it via cartsnitch-common;
standalone image needs it explicit.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-22 23:09:45 +00:00
Barcode Betty 69d398934f Merge pull request 'chore: promote dev to uat (CAR-1422)' (#19) from dev into uat
CI / lint (push) Successful in 4s
CI / test (push) Successful in 9s
CI / build-and-push (push) Successful in 1m19s
CI / grype (push) Failing after 3s
CI / deploy-dev (push) Has been skipped
CI / deploy-uat (push) Failing after 33s
chore: promote dev to uat (CAR-1422)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-22 22:11:30 +00:00
Barcode Betty 8718f33083 Merge pull request 'fix: move python-multipart to runtime deps (CAR-1422)' (#18) from betty/car-1422-multipart-runtime-dep into dev
CI / lint (push) Successful in 5s
CI / test (push) Successful in 9s
CI / build-and-push (push) Successful in 1m26s
CI / grype (push) Failing after 25s
CI / deploy-uat (push) Has been skipped
CI / deploy-dev (push) Failing after 43s
CI / lint (pull_request) Successful in 4s
CI / test (pull_request) Successful in 9s
CI / build-and-push (pull_request) Has been skipped
CI / grype (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
fix: move python-multipart to runtime deps (CAR-1422)

Moves python-multipart from dev extras to main dependencies so the
production wheel install includes it. Fixes POST /inbound/email 500.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-22 22:02:21 +00:00
Barcode Betty adfdf6b999 fix: move python-multipart to runtime deps (CAR-1422)
CI / lint (pull_request) Successful in 4s
CI / test (pull_request) Successful in 15s
CI / build-and-push (pull_request) Has been skipped
CI / grype (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
Starlette requires python-multipart to parse form/multipart bodies.
Previously only in dev extras, so prod image never included it.
Fixes POST /inbound/email 500 AssertionError.
2026-06-22 21:52:18 +00:00
Savannah Savings 2089395699 Merge pull request 'fix(ci): migrate Docker registry from GHCR to Gitea' (#14) from barcode-betty/ghcr-to-gitea-registry into dev
CI / deploy-uat (push) Has been skipped
CI / deploy-dev (push) Failing after 41s
CI / lint (push) Successful in 5s
CI / grype (push) Has been skipped
CI / test (push) Successful in 9s
CI / build-and-push (push) Failing after 8s
2026-05-24 18:51:46 +00:00
Savannah Savings 6180930f5d Merge pull request 'chore: promote dev to uat (CAR-1009)' (#16) from dev into uat
CI / test (pull_request) Successful in 7s
CI / lint (pull_request) Successful in 4s
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / build-and-push (pull_request) Has been skipped
CI / grype (pull_request) Has been skipped
CI / test (push) Successful in 13s
CI / lint (push) Successful in 3s
CI / build-and-push (push) Failing after 6s
CI / grype (push) Has been skipped
CI / deploy-dev (push) Has been skipped
CI / deploy-uat (push) Failing after 36s
2026-05-24 18:48:50 +00:00
Savannah Savings a197ab0530 {{.PullRequestTitle}}
CI / deploy-uat (push) Has been skipped
CI / test (push) Successful in 13s
CI / lint (push) Successful in 3s
CI / lint (pull_request) Successful in 3s
CI / test (pull_request) Successful in 14s
CI / build-and-push (push) Failing after 8s
CI / build-and-push (pull_request) Has been skipped
CI / grype (push) Has been skipped
CI / grype (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / deploy-dev (push) Failing after 30s
2026-05-24 18:48:28 +00:00
Barcode Betty da9e1e9af1 ci: migrate GHCR → Gitea registry, use REGISTRY_TOKEN
CI / lint (pull_request) Successful in 5s
CI / deploy-dev (pull_request) Has been skipped
CI / test (pull_request) Successful in 24s
CI / build-and-push (pull_request) Has been skipped
CI / grype (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
Fixes CAR-1009.

- REGISTRY already git.farh.net (via CAR-964)
- Change GITEA_TOKEN → REGISTRY_TOKEN for consistency

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-24 18:39:33 +00:00
Barcode Betty 1cf7f92b6b fix(ci): migrate Docker registry from GHCR to Gitea
CI / lint (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
CI / build-and-push (pull_request) Has been cancelled
CI / grype (pull_request) Has been cancelled
CI / deploy-dev (pull_request) Has been cancelled
CI / deploy-uat (pull_request) Has been cancelled
- Change REGISTRY from ghcr.io to git.farh.net
- Replace GHCR login with Gitea Container Registry login using REGISTRY_TOKEN
- Move workflow from .github/workflows to .gitea/workflows

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-24 18:25:39 +00:00
Savannah Savings 0bd6b87ffd Merge pull request 'fix(ci): push Docker images to git.farh.net registry (CAR-964)' (#13) from barcode-betty/car-964-gitea-registry-v2 into dev
CI / lint (push) Successful in 3s
CI / test (push) Successful in 12s
CI / build-and-push (push) Failing after 6s
CI / grype (push) Has been skipped
CI / deploy-uat (push) Has been skipped
CI / deploy-dev (push) Failing after 34s
2026-05-24 18:08:54 +00:00
Flea Flicker 703a279f97 fix(ci): push Docker images to git.farh.net registry (CAR-964)
CI / build-and-push (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / lint (pull_request) Failing after 1m33s
CI / test (pull_request) Failing after 1m32s
CI / grype (pull_request) Has been skipped
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-23 16:07:51 +00:00
Savannah Savings f0ec8a4530 Merge pull request 'promote: receiptwitness workflows gitea migration (CAR-900) dev → uat' (#9) from dev into uat
CI / lint (push) Successful in 5s
CI / deploy-dev (push) Has been skipped
CI / grype (push) Has been skipped
CI / test (push) Successful in 9s
CI / deploy-uat (push) Failing after 29s
CI / build-and-push (push) Failing after 8s
Merge dev→uat: receiptwitness workflow migration (CAR-894/CAR-900)

Renames .github/workflows/ci.yml → .gitea/workflows/ci.yml
2026-05-21 19:03:37 +00:00
Coupon Carl ef5102aad9 Merge pull request 'chore: move workflows from .github to .gitea (CAR-900)' (#8) from carl/car-900-move-workflows-to-gitea into dev
CI / test (push) Successful in 8s
CI / build-and-push (push) Has been skipped
CI / lint (push) Failing after 3s
CI / deploy-uat (push) Has been skipped
CI / grype (push) Has been skipped
CI / deploy-dev (push) Failing after 32s
CI / test (pull_request) Failing after 1m34s
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / lint (pull_request) Failing after 1m27s
CI / grype (pull_request) Has been skipped
CI / build-and-push (pull_request) Has been skipped
chore: move workflows from .github to .gitea (CAR-900)
2026-05-21 18:56:01 +00:00
Savannah Savings f63f6c613d chore: move workflows from .github to .gitea
CI / deploy-uat (pull_request) Has been skipped
CI / lint (pull_request) Successful in 3s
CI / test (pull_request) Successful in 8s
CI / build-and-push (pull_request) Has been skipped
CI / grype (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
Part of Gitea migration (CAR-900 / CAR-894).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-21 18:54:46 +00:00
Savannah Savings 0202e575f6 Merge pull request 'chore: promote Gitea Actions migration to uat' (#7) from dev into uat
CI / lint (push) Successful in 3s
CI / test (push) Successful in 19s
CI / build-and-push (push) Failing after 5s
CI / grype (push) Has been skipped
CI / deploy-dev (push) Has been skipped
CI / deploy-uat (push) Failing after 23s
chore: promote Gitea Actions migration to uat

Dev→UAT promotion for CAR-869 Gitea Actions pipeline.

cc @cpfarhood
2026-05-21 11:56:20 +00:00
Savannah Savings 377f8428c5 Merge pull request 'ci: convert GitHub Actions to Gitea Actions (ubuntu-latest)' (#6) from betty/car-876-gitea-actions-receiptwitness into dev
CI / lint (push) Successful in 4s
CI / test (push) Successful in 9s
CI / lint (pull_request) Successful in 5s
CI / test (pull_request) Successful in 7s
CI / build-and-push (push) Failing after 6s
CI / build-and-push (pull_request) Has been skipped
CI / grype (push) Has been skipped
CI / deploy-uat (push) Has been skipped
CI / grype (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-dev (push) Failing after 30s
ci: convert GitHub Actions to Gitea Actions (ubuntu-latest)

CTO-approved. QA passed. Mechanical CI migration.

cc @cpfarhood
2026-05-21 11:55:48 +00:00
Flea Flicker 340b974532 ci: convert GitHub Actions to Gitea Actions (ubuntu-latest)
CI / deploy-dev (pull_request) Has been skipped
CI / build-and-push (pull_request) Has been skipped
CI / grype (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / lint (pull_request) Successful in 4s
CI / test (pull_request) Successful in 13s
- Replace runs-on: runners-cartsnitch with runs-on: ubuntu-latest
- Replace GitHub App token auth with secrets.GITEA_TOKEN for cross-repo checkout
- Remove actions/create-github-app-token steps from deploy-dev and deploy-uat

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-21 04:13:14 +00:00
cartsnitch-engineer[bot] 2fd2cdca71 feat: migrate receiptwitness to standalone repo with inlined common
Migrates receiptwitness to a standalone repo with inlined common models. Includes SQLite test compatibility fixes (server_default stripping for gen_random_bytes, relationship stubs for SQLAlchemy mapper).

QA PASS (cartsnitch-qa): lint  test  306/306 passed.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-04 21:01:21 +00:00
savannah-savings-cto[bot] 8128b3a76f chore: promote uat to main — receiptwitness migration CI fixes
Merged to production. UAT regression and security review both passed.

- UAT: PASS (Deal Dottie — CAR-733)
- Security: PASS (Stockboy Steve)
- Code CI (lint + test): PASS on uat commit f159d50f

Note: build-and-push has a GHCR permission_denied failure (write_package) — separate infra issue, does not affect code correctness.
2026-04-19 14:02:18 +00:00
cartsnitch-ceo[bot] f159d50f7c Merge pull request #4 from cartsnitch/dev
chore: promote dev to uat — receiptwitness migration CI fixes
2026-04-19 13:25:40 +00:00
2 changed files with 15 additions and 31 deletions
@@ -15,12 +15,12 @@ permissions:
packages: write
env:
REGISTRY: ghcr.io
REGISTRY: git.farh.net
IMAGE_NAME: cartsnitch/receiptwitness
jobs:
lint:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
@@ -33,7 +33,7 @@ jobs:
run: ruff check src/ tests/
test:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
@@ -46,7 +46,7 @@ jobs:
run: pytest tests/ -v
build-and-push:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: [lint, test]
outputs:
@@ -69,12 +69,12 @@ jobs:
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "CalVer tag: $VERSION"
- name: Log in to GHCR
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract metadata
id: meta
@@ -102,7 +102,7 @@ jobs:
git push origin "v${{ steps.calver.outputs.version }}"
grype:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
needs: [build-and-push]
if: github.event_name == 'push'
steps:
@@ -126,24 +126,15 @@ jobs:
ignore-file: .grype.yaml
deploy-dev:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
needs: [grype]
if: always() && !cancelled() && github.event_name == 'push' && github.ref == 'refs/heads/dev'
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.CARTSNITCH_APP_ID }}
private-key: ${{ secrets.CARTSNITCH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: infra
- name: Checkout infra repo
uses: actions/checkout@v4
with:
repository: cartsnitch/infra
token: ${{ steps.app-token.outputs.token }}
token: ${{ secrets.GITEA_TOKEN }}
ref: main
path: infra
@@ -156,7 +147,7 @@ jobs:
- name: Update receiptwitness image tag
run: |
cd infra/apps/overlays/dev
kustomize edit set image ghcr.io/cartsnitch/receiptwitness:sha-${{ github.sha }}
kustomize edit set image git.farh.net/cartsnitch/receiptwitness:sha-${{ github.sha }}
- name: Commit and push to infra
run: |
@@ -169,24 +160,15 @@ jobs:
git push origin main
deploy-uat:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
needs: [grype]
if: always() && !cancelled() && github.event_name == 'push' && github.ref == 'refs/heads/uat'
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.CARTSNITCH_APP_ID }}
private-key: ${{ secrets.CARTSNITCH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: infra
- name: Checkout infra repo
uses: actions/checkout@v4
with:
repository: cartsnitch/infra
token: ${{ steps.app-token.outputs.token }}
token: ${{ secrets.GITEA_TOKEN }}
ref: main
path: infra
@@ -199,7 +181,7 @@ jobs:
- name: Update receiptwitness image tag
run: |
cd infra/apps/overlays/uat
kustomize edit set image ghcr.io/cartsnitch/receiptwitness:${{ needs.build-and-push.outputs.calver_tag }}
kustomize edit set image git.farh.net/cartsnitch/receiptwitness:${{ needs.build-and-push.outputs.calver_tag }}
- name: Commit and push to infra
run: |
+2
View File
@@ -21,7 +21,9 @@ dependencies = [
"pydantic-settings>=2.0,<3.0",
"sqlalchemy[asyncio]>=2.0,<3.0",
"asyncpg>=0.29,<1.0",
"psycopg2-binary>=2.9",
"resend>=2.0",
"python-multipart>=0.0.9",
]
[project.optional-dependencies]