Repository navigation
fix(backend): pin pyarrow 19.0.1 for GCP buildpack manylinux2014 (#12758) - #12776
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_b447b959-52a4-40f7-9b85-91f0152f496b) |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9ed822e82e
ℹ️ 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".
| ptyprocess==0.7.0 | ||
| pure_eval==0.2.3 | ||
| pyarrow==23.0.1 | ||
| pyarrow==19.0.1 |
There was a problem hiding this comment.
Guard the manylinux2014 wheel requirement
When Dependabot or a future dependency refresh raises this pin again, the existing checks can accept a Linux lock containing only manylinux_2_28 artifacts and recreate the GCP buildpack failure; a repo-wide search finds no pyarrow-specific regression test or compatibility check. Add a CI-discovered guard for the buildpack's manylinux2014 wheel requirement so this production build contract is preserved rather than relying on the temporary version pin alone.
AGENTS.md reference: AGENTS.md:L30-L32
Useful? React with 👍 / 👎.
9ed822e to
f661946
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f66194664c
ℹ️ 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".
| # TODO(#12758): pin for GCP Functions Framework buildpack (rmgpgab) — pyarrow>=23 | ||
| # only ships manylinux_2_28 wheels so the builder falls back to sdist and fails. | ||
| # Remove this pin when rmgpgab is retargeted/disabled to backend/Dockerfile (uv/pylock). | ||
| pyarrow==19.0.1 |
There was a problem hiding this comment.
Address the other manylinux-incompatible pin
In the stated manylinux2014 buildpack environment, changing only PyArrow cannot make this requirements file installable: backend/requirements.txt:131 also pins onnxruntime==1.19.0, while backend/pylock.runtime.toml:879-881 records no sdist and only a manylinux_2_27/manylinux_2_28 Linux wheel. I checked the target with pip debug --platform manylinux2014_x86_64 --python-version 3.11, whose compatible tags exclude those wheels, and uv pip sync ... --python-platform x86_64-manylinux2014 --dry-run, which rejects the lock specifically at onnxruntime. Thus, if the diagnosis in this comment is correct, rmgpgab will still fail after getting past PyArrow; retarget the trigger or account for every requirement incompatible with the builder.
AGENTS.md reference: AGENTS.md:L43-L50
Useful? React with 👍 / 👎.
|
Thanks @undivisible - well-documented stopgap, and the core hypothesis verifies cleanly against PyPI metadata. Verified:
Notes:
Leaving for human maintainer review: someone with GCP access needs to confirm the rmgpgab failure mode from the Cloud Build log and decide between this global pin and retargeting/disabling the trigger. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
f661946 to
0f62831
Compare
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_80fcb377-d77f-4bee-8cea-b8d26789e3c1) |
Explain why the pin exists (rmgpgab manylinux2014 / sdist fail) and when to remove it (trigger uses Dockerfile/uv). Failure-Class: none
0f62831 to
c42ae7d
Compare
utils.conversations.merge_conversations imports utils.conversations.projection_payload, which does `from models.client_processing import PROJECTION_FAMILY_FIELDS`. The module-scoped merge fixtures in test_batch_upload_storage.py and test_merge_validation.py stub `models` with an empty __path__, so the real models.client_processing could not be found and every merge-fixture test errored with ModuleNotFoundError on CI (job 101292145767). Same fix as #12776: add models.client_processing to the model_submods dict and, after the stub loop, replace the MagicMock with a real frozenset so strip_client_processing cannot hang iterating a mock. Test-only change; no production code touched. Verified: cd backend && python -m pytest tests/unit/test_batch_upload_storage.py tests/unit/test_merge_validation.py -q --tb=line Before: 24 passed, 43 errors (ModuleNotFoundError: No module named 'models.client_processing') After: 67 passed in 2.49s Failure-Class: none
utils.conversations.merge_conversations imports utils.conversations.projection_payload, which does `from models.client_processing import PROJECTION_FAMILY_FIELDS`. The module-scoped merge fixtures in test_batch_upload_storage.py and test_merge_validation.py stub `models` with an empty __path__, so the real models.client_processing could not be found and every merge-fixture test errored with ModuleNotFoundError on CI (job 101292145767). Same fix as #12776: add models.client_processing to the model_submods dict and, after the stub loop, replace the MagicMock with a real frozenset so strip_client_processing cannot hang iterating a mock. Test-only change; no production code touched. Verified: cd backend && python -m pytest tests/unit/test_batch_upload_storage.py tests/unit/test_merge_validation.py -q --tb=line Before: 24 passed, 43 errors (ModuleNotFoundError: No module named 'models.client_processing') After: 67 passed in 2.49s Failure-Class: none
utils.conversations.merge_conversations imports utils.conversations.projection_payload, which does `from models.client_processing import PROJECTION_FAMILY_FIELDS`. The module-scoped merge fixtures in test_batch_upload_storage.py and test_merge_validation.py stub `models` with an empty __path__, so the real models.client_processing could not be found and every merge-fixture test errored with ModuleNotFoundError on CI (job 101292145767). Same fix as #12776: add models.client_processing to the model_submods dict and, after the stub loop, replace the MagicMock with a real frozenset so strip_client_processing cannot hang iterating a mock. Test-only change; no production code touched. Verified: cd backend && python -m pytest tests/unit/test_batch_upload_storage.py tests/unit/test_merge_validation.py -q --tb=line Before: 24 passed, 43 errors (ModuleNotFoundError: No module named 'models.client_processing') After: 67 passed in 2.49s Failure-Class: none
Summary
Stopgap / diagnosis PR for #12758 (
cloudbuild-other/rmgpgabred on main).Failure-Class: none
Hypothesis
rmgpgab-omi-…) installsbackend/requirements.txtvia Functions Framework / pip.pyarrow==23.0.1publishes onlymanylinux_2_28linux wheels for cp311 (nomanylinux2014/manylinux_2_17).Building wheel for pyarrow.uv pip syncpath is separate and already OK with the checked-in pylocks; this pin targets the buildpack install path.Change
pyarrow23.0.1→19.0.1inbackend/requirements.txt(last cp311 release with manylinux2014 wheels; confirmed on PyPI).backend/scripts/update-python-lock.shso linux locks now listmanylinux_2_17_x86_64.manylinux2014_x86_64(and still includemanylinux_2_28).Still needed (not claimed fixed)
PERMISSION_DENIEDfor [email protected] onbased-hardware). This PR encodes the public-failure hypothesis only.rmgpgabtrigger once someone with GCP access can inspect it.cloudbuild-other/rmgpgabis green on main.Reviewer notes
rmgpgab/cloudbuild-otherruns on this PR (it may be main-only). If it does, that is the signal for this stopgap.uv pip syncpath should remain unaffected aside from the intentional pyarrow downgrade in locks.rmgpgabis retargeted/disabled toward the Dockerfile/uvpath.Note
Medium Risk
Downgrading pyarrow affects every backend install path (not only the buildpack) and may change Arrow/pandas behavior; the change is intentional but worth watching in production data paths.
Overview
Downgrades
pyarrowfrom 23.0.1 to 19.0.1 acrossbackend/requirements.txtand all regeneratedpylock*files so the GCP Functions Framework /rmgpgabbuildpack can install a wheel on manylinux2014 instead of falling back to an sdist build that fails on older Linux images. Comments reference #12758 and note the pin should be removed once that trigger uses Dockerfile/uv.On Linux locks, 19.0.1 adds
manylinux_2_17_x86_64.manylinux2014_x86_64wheels (alongsidemanylinux_2_28where applicable).Two unit tests that stub
models.*at import time now also mockmodels.client_processing.PROJECTION_FAMILY_FIELDSso modules that import it can load under the existing test harness.Reviewed by Cursor Bugbot for commit 0f62831. Configure here.