fix(ci): Python SDK CI failures — missing dotenv dep + sqlite3.Row AttributeError#8
Closed
fix(ci): Python SDK CI failures — missing dotenv dep + sqlite3.Row AttributeError#8
Conversation
…hsg.py Co-authored-by: russellbrenner <5236354+russellbrenner@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI issues causing job failures
fix(ci): Python SDK CI failures — missing dotenv dep + sqlite3.Row AttributeError
Feb 25, 2026
russellbrenner
pushed a commit
that referenced
this pull request
Feb 26, 2026
Upstream changes (9 commits, 6 unique): - Add Siray embedding provider (JS + Python SDKs) - Improve Docker reliability (bookworm-slim base, inline Node healthcheck) - Add dashboard service profile gating (docker compose --profile ui) - Fix SQLite path in .env.example for Docker volume alignment - Add Doppler compose wrapper and dashboard build-time env vars - Fix dashboard to load memories without requiring NEXT_PUBLIC_API_KEY Fork PR integration (#8, #9): - Add python-dotenv to Python SDK dependencies - Fix sqlite3.Row compat in Python hsg.py compute_tag_match_score - Add langchain connector fallback imports for missing deps - Switch dashboard fonts from Google Fonts to local geist package All omnibus tests pass (TS 3/3, Python 3/3). Dashboard builds clean. https://claude.ai/code/session_01AvLytv3nsAZWqiDqxEKBfh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Description
Python SDK CI job was failing at import time due to a missing
python-dotenvdependency, and after unblocking that, all three omnibus tests failed withAttributeError: 'sqlite3.Row' object has no attribute 'get'inhsg.py.Three fixes:
pyproject.toml— addedpython-dotenv>=1.0todependencies.config.pycallsfrom dotenv import load_dotenvat module level but the package was never declared.connectors/langchain.py—except ImportErrorstub only definedBaseChatMessageHistoryandBaseRetriever; leftBaseMessage,HumanMessage,AIMessage,Document, andCallbackManagerForRetrieverRunundefined. Any import of the module withoutlangchain_coreinstalled raisedNameErrorat class definition time.memory/hsg.py—compute_tag_match_score— function typed itsmemparam asdictbut receivessqlite3.Row, which has no.get(). Replaced with direct bracket access guarded bytry/except (KeyError, IndexError).🔄 Type of Change
🧪 Testing
All 3 Python omnibus tests (
test_evolutionary_stability,test_boolean_metadata_logic,test_content_robustness) pass. Node.js SDK job was already green and is unaffected.📱 Screenshots (if applicable)
N/A
🔍 Code Review Checklist
📚 Related Issues
🚀 Deployment Notes
No deployment changes required.
📋 Additional Context
The
sqlite3.Rowbug would also silently swallow tag-match scoring in production (all tag scores returning 0.0) for any query path that reachedcompute_tag_match_score, so this fix has correctness impact beyond CI.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.