Repository navigation
Fixes 32081: initialize DB2 CLI driver once per process - #32083
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
Code Review ✅ ApprovedCaches the DB2 CLI driver installation per process to prevent redundant initializations during repeated sampling connections. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
✅ Playwright Results — workflow succeededValidated commit ✅ 109 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 51m 13s ⏱️ Max setup 4m 25s · max shard execution 12m 34s · max shard-job elapsed before upload 18m 8s · reporting 7s 🌐 217.24 requests/attempt · 1.81 app boots/UI scenario · 0.00% common-shard skew Optimization targets still in progress:
🟡 1 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |



Describe your changes:
Fixes #32081
Cache the successfully installed DB2 CLI driver version for the ingestion process. Repeated DB2 sampling connections now reuse that installation, concurrent callers serialize installation, failed installs remain retryable, and requesting a different version still reinstalls it.
Module invalidation now happens at the successful installation boundary instead of on every DB2 connection.
Type of change:
High-level design:
N/A — targeted DB2 connector fix.
Tests:
Use cases covered
Unit tests
ingestion/tests/unit/source/database/db2/test_clidriver.py.PYTHONPATH=src ../env/bin/pytest -q tests/unit/source/database/db2— 22 passed, 5 skipped.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
linux/amd64with the DB2 dependency.UI screen recording / screenshots:
Not applicable; no UI changes.
Checklist:
Fixes <issue-number>: <short explanation>.Fixes #<issue-number>above.Greptile Summary
The PR makes DB2 CLI-driver initialization process-scoped while preserving retries after failed installations.
clidrivermodule invalidation to the successful installation boundary.Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (2): Last reviewed commit: "Merge branch 'main' into rca-db2-reinit-..." | Re-trigger Greptile