Skip to content

Fix spaCy model loading in ingestion CI - #36176

Merged
karanh37 merged 1 commit into
mainfrom
fix/spacy-preshed-tokenizer-overflow
Oct 26, 2026
Merged

karanh37 merged 1 commit into
mainfrom
fix/spacy-preshed-tokenizer-overflow

Conversation

@IceS2

@IceS2 IceS2 commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes ingestion CI image builds and auto-classification initialization failing while loading en_core_web_md with OverflowError: Python int too large to convert to C ssize_t.

preshed==3.0.14 rejects unsigned 64-bit tokenizer hashes. Constrain it to <3.0.14 in the pii-processor, sample-data, and presidio-analyzer extras. Aggregate extras inherit the constraint, covering OSS and Collate ingestion installs. This is a temporary compatibility constraint; newer preshed releases require verification before relaxing it.

Type of change:

  • Bug fix

High-level design:

Not applicable — one-file dependency compatibility fix. No Dockerfile, workflow, or application changes.

Verification:

  • Built wheels before and after the change and checked metadata for nine extras: pii-processor, sample-data, presidio-analyzer, all, all-dev-env, slim, playwright, test, and dev. The new constraint is present in all nine.
  • In a non-root Python 3.12 ARM64 ingestion container, reproduced the exact overflow with preshed==3.0.14 and en_core_web_md==3.8.0.
  • Installed each of the three changed extras' requirements from the built wheel using pip's normal resolver. All three selected preshed==3.0.13; fresh-process model loading and entity recognition passed (3/3).
  • Separately, in the main-branch ingestion image, reproduced the failing metadata install-classification-models --languages en command, then changed only preshed to 3.0.13 and reran it successfully. Other newly released native dependencies remained unchanged.
  • ruff check ingestion/setup.py, ruff format --check ingestion/setup.py, and git diff --check passed.
  • Unit coverage: not applicable to dependency metadata. No runtime module or connector changed; no pytest, Java, or Playwright suites were run. Full CI image build and AMD64 validation remain for CI.

Manual testing performed:

Install preshed 3.0.14 and load en_core_web_md to reproduce the overflow. Install the updated extra requirements and repeat model loading plus recognition of a synthetic sentence; both succeed with preshed 3.0.13.

UI screen recording:

Not applicable — no UI changes.

Checklist:

  • Reviewed the committed diff against REVIEW.md; no blocking findings. ingestion/setup.py maps to the built-wheel metadata, real pip resolver, and model-loading checks above.
  • Dependency workaround includes an explanatory comment.
  • Decision check: no new architectural decision; this restores dependency compatibility.
  • Issue/title metadata: CI regression fix; no linked issue (skip-pr-checks).
  • Schema migrations and backend integration tests: not applicable.

Reviewed commit: 1a04fe3b5994e0f41fa339faf9f7f8970603f395.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

Adds preshed<3.0.14 to avoid the reported spaCy model-loading failure.

  • Ingestion installs keep spaCy models on compatible preshed releases.

Reviews (1) · Last reviewed commit: "Fix spaCy tokenizer overflow in ingestio..." · Reviewed by Greptile

@IceS2
IceS2 requested a review from a team as a code owner October 25, 2026 06:43
@IceS2 IceS2 added the skip-pr-checks Bypass PR metadata validation check label Oct 25, 2026
@IceS2
IceS2 requested a review from harshsoni2024 October 25, 2026 06:43
@IceS2 IceS2 added the skip-pr-checks Bypass PR metadata validation check label Oct 25, 2026
Copilot AI balanced review requested due to automatic review settings October 25, 2026 06:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Oct 25, 2026
@gitar-bot

gitar-bot Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Constraining preshed below 3.0.14 across ingestion extras may block compatible future releases or create dependency conflicts in ingestion installs.

Pins preshed to <3.0.14 in the pii-processor, sample-data, and presidio-analyzer extras to fix the OverflowError that breaks ingestion CI image builds and en_core_web_md model loading during auto-classification initialization. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@IceS2
IceS2 enabled auto-merge October 25, 2026 06:51
@IceS2
IceS2 added this pull request to the merge queue Oct 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-25T08:07:00Z)

Blocked the queue: playwright-summary

  • Postgresql PR Playwright E2E Tests — playwright-summary, playwright / playwright-ci (chromium-02), playwright / playwright-ci (global-state-01), playwright / playwright-ci (chromium-05), playwright / playwright-ci (chromium-09)

Failed Playwright tests:

  • Features/ContextCenterArticles.spec.ts › Quick link lifecycle validates, creates, edits, and deletes from card
  • Features/SampleDataDomainDataProduct.spec.ts › Verify TestDataProduct exists under TestDomain
  • Features/SampleDataDomainDataProduct.spec.ts › Verify TestDataProduct shows correct details and domain association
  • Features/SampleDataDomainDataProduct.spec.ts › Verify TestDomain exists from sample data ingestion
  • Pages/Lineage/LineageFilters.spec.ts › Verify Impact Analysis service filter selection
  • Pages/Lineage/LineageFilters.spec.ts › Verify Impact Analysis service type filter selection
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage service filter selection
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage service type filter selection
  • Pages/Lineage/LineageFilters.spec.ts › verify downstream count for all the entities
  • Pages/Lineage/LineageFilters.spec.ts › verify upstream count for all the entities
  • Search/SearchRelevance.spec.ts › ranks clear provider address intent above weak high-signal description matches with stopwords
  • Search/SearchRelevance.spec.ts › ranks name and structural table matches before tier and usage description matches

@IceS2
IceS2 added this pull request to the merge queue Oct 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-25T15:16:15Z)

Blocked the queue: playwright-summary

  • Postgresql PR Playwright E2E Tests — playwright-summary, playwright / playwright-ci (chromium-02), playwright / playwright-ci (chromium-09), playwright / playwright-ci (ingestion-02), playwright / playwright-ci (chromium-05), playwright / playwright-ci (global-state-01)

Failed Playwright tests:

  • Features/ContextCenterArticles.spec.ts › Quick link lifecycle validates, creates, edits, and deletes from card
  • Features/SampleDataDomainDataProduct.spec.ts › Verify TestDataProduct exists under TestDomain
  • Features/SampleDataDomainDataProduct.spec.ts › Verify TestDataProduct shows correct details and domain association
  • Features/SampleDataDomainDataProduct.spec.ts › Verify TestDomain exists from sample data ingestion
  • Features/StorageMetadataAgentForm.spec.ts › auto-close keeps the caret between the inserted pair
  • Features/StorageMetadataAgentForm.spec.ts › confidence field rejects values outside 0-100 and blocks next step
  • Features/StorageMetadataAgentForm.spec.ts › edit form renders and manifest edits are saved
  • Features/StorageMetadataAgentForm.spec.ts › manifest editor is full width, clears cleanly and keeps caret stable
  • Features/StorageMetadataAgentForm.spec.ts › sampleDataCount rejects non-positive values and blocks next step
  • Features/TestSuiteMultiPipeline.spec.ts › Edit the pipeline's test case
  • Flow/ApiServiceRest.spec.ts › add update and delete api service type REST
  • Pages/Lineage/LineageFilters.spec.ts › Verify Impact Analysis service filter selection
  • Pages/Lineage/LineageFilters.spec.ts › Verify Impact Analysis service type filter selection
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage service filter selection
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage service type filter selection

@karanh37
karanh37 added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit dc076e6 Oct 26, 2026
133 of 150 checks passed
@karanh37
karanh37 deleted the fix/spacy-preshed-tokenizer-overflow branch October 26, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants