DevTrack SDK v0.4.2 #34
mahesh-solanke
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Release Notes - DevTrack SDK v0.4.2
🎉 Release Date
Version: 0.4.2 (Stability - Bugfix Release)
Release Date: 2026-01-11
📋 Overview
DevTrack SDK v0.4.2 is a stability and bugfix release that resolves critical database lock conflicts between CLI commands and running applications. This release significantly improves the developer experience by adding intelligent fallback mechanisms and better error handling when the database is locked by an active application instance.
🐛 Critical Bug Fixes
Fixed DuckDB Lock Conflicts in CLI Commands
Problem: CLI commands (
stat,query,init) would fail with lock errors when the database was already in use by a running application. DuckDB uses file-level locking, meaning a single write connection blocks all other connections (including read-only ones) from accessing the database file.Root Cause:
Solution:
statcommand now fetches stats from/__devtrack__/statsendpoint if database is lockedquerycommand fetches logs from API when direct database access failsinitcommand checks database status via API before prompting for overwriteImpact:
Fixed
initCommand Unnecessary PromptsProblem: The
initcommand would prompt users to overwrite an existing database even when the database was already initialized and accessible via the running application's API.Solution:
check_db_initialized_via_api()helper functioninitcommand now checks database status via HTTP API before prompting🔄 Improvements
Enhanced Database Connection Management
DevTrackDBclass to better handle read-only and write mode transitionsImproved Error Messages
Test Infrastructure
🔧 Technical Changes
New Functions
parse_lock_error(): Extracts PID and process info from DuckDB lock errorscheck_db_initialized_via_api(): Checks database initialization status via HTTP APIdetect_devtrack_endpoint(): Better endpoint detection with improved error handlingModified Components
cli.py: Major refactoring to add API fallback mechanismsstatcommand: HTTP API fallback on lockquerycommand: HTTP API fallback on lockinitcommand: API check before overwrite promptdatabase.py: Improved connection handling for read/write mode transitionstests/conftest.py: Added global network request mocking fixtureTest Coverage
📦 Installation
Or upgrade from previous version:
🔄 Migration from v0.4.1
No breaking changes! This is a backward-compatible bugfix release.
Simply upgrade:
All existing functionality remains the same. The improvements are automatically applied.
What to Expect
📝 Full Changelog
Fixed
initcommand prompting unnecessarily when database is already initializedImproved
stat,query, andinitcommandsTechnical
parse_lock_error()function for better error parsingcheck_db_initialized_via_api()helper functiondetect_devtrack_endpoint()with better error handlingDevTrackDBconnection management🧪 Testing
All fixes have been tested across:
Test Results:
🙌 Acknowledgements
Special thanks to @kushagra-vj for identifying and clearly highlighting the DuckDB file-lock issue when using DevTrack CLI alongside a running application.
Your detailed feedback directly helped shape the HTTP API fallback mechanism and significantly improved the overall developer experience in this release.
🔗 Resources
📋 Known Issues
None at this time. If you encounter any issues, please report them on GitHub Issues.
🎯 What's Next
We're continuously improving DevTrack SDK based on user feedback. Upcoming releases will focus on:
Full Changelog: v0.4.1...v0.4.2
This discussion was created from the release DevTrack SDK v0.4.2.
Beta Was this translation helpful? Give feedback.
All reactions