Skip to content

[codex] pilot uv dependency sync#234

Merged
Pigbibi merged 1 commit into
mainfrom
codex/uv-pyproject-poc-20260703
Jul 3, 2026
Merged

[codex] pilot uv dependency sync#234
Pigbibi merged 1 commit into
mainfrom
codex/uv-pyproject-poc-20260703

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Move the dependency source for CI, Docker, and Cloud Run env-sync from ad-hoc pip installs to pyproject.toml + uv.lock.
  • Keep legacy requirements.txt / constraints.txt in place for compatibility while the platform migration is piloted.
  • Use --no-install-project because this repo still has a src setuptools layout configured but no src/ package migration in this PR.
  • Add regression coverage for uv-based workflow wiring and update README quick-start checks.

Validation

  • uv sync --frozen --extra test --no-install-project
  • uv run --no-sync python scripts/check_qpk_pin_consistency.py
  • uv run --no-sync python -m pytest -q tests/test_uv_dependency_workflow.py tests/test_dependency_pin_guard.py
  • bash tests/test_sync_cloud_run_env_workflow.sh
  • uv run --no-sync ruff check --exclude external .
  • actionlint .github/workflows/ci.yml .github/workflows/sync-cloud-run-env.yml
  • git diff --check
  • docker build -t charles-schwab-platform-uv-poc:local .

Known caveat

  • Full uv run --no-sync python -m pytest -q is still not green on the current repo baseline: 24 failed, 139 passed, 1 warning. The failures are existing broader runtime/test-stub mismatches and are not mixed into this dependency-management PoC.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi Pigbibi merged commit 24230e2 into main Jul 3, 2026
2 checks passed
@Pigbibi Pigbibi deleted the codex/uv-pyproject-poc-20260703 branch July 3, 2026 06:26

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 556839b3e7

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Dockerfile
&& python -m pip install -r requirements.txt -c constraints.txt
COPY pyproject.toml uv.lock ./
RUN python -m pip install --upgrade pip uv \
&& uv sync --frozen --no-dev --no-install-project

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep uv.lock in sync with shared-package pins

When the shared-package pins advance, scripts/check_qpk_pin_consistency.py only scans requirements*.txt, constraints*.txt, and pyproject.toml, while uv.lock stores the actual git sources as ?rev=.... Because this Docker build now installs from uv.lock with uv sync --frozen (per uv sync --help, frozen syncs without updating the lockfile), a normal pin update can leave the image installing the old QuantPlatformKit/UsEquityStrategies revisions even after the pin files were fixed. Please have the pin update/guard also regenerate or validate uv.lock before using frozen syncs.

Useful? React with 👍 / 👎.

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.

1 participant