Skip to content

OB-244: Sync development branch with main#3

Merged
Oblio-Falootin merged 7 commits intodevelopmentfrom
OB-244/sync-dev-to-main
Apr 20, 2026
Merged

OB-244: Sync development branch with main#3
Oblio-Falootin merged 7 commits intodevelopmentfrom
OB-244/sync-dev-to-main

Conversation

@Oblio-Falootin
Copy link
Copy Markdown
Collaborator

Development branch diverged from main. Syncing to main state.

Oblio-Falootin and others added 7 commits March 25, 2026 20:03
* OB-CLAWBOT: Complete sql-connector update - set default backend to 'local'

Default backend should be 'local' (10.0.0.110) matching .env configuration.

* OB-129: Add secret scanning, .env.example, and pre-commit hooks

* OB-244: SQL_DEFAULT_BACKEND env var + README rewrite

SQL_DEFAULT_BACKEND ENV VAR:
  Problem: default 'local' breaks external ClawHub users (no local server)
  Solution: SQL_DEFAULT_BACKEND env var controls default
    - Not set (external users): defaults to 'cloud' (safe)
    - SQL_DEFAULT_BACKEND=local (Oblio .env): defaults to 'local'
  Applies to: get_connector(), SQLConnector.__init__(), from_env()
  No code change for callers — just .env config

README:
  Complete rewrite as ClawHub-publishable documentation
  - Multi-backend quick start (external + local setup)
  - Default backend table explaining the env var logic
  - Mandatory parameterized query guidance
  - Repository subclass extension pattern
  - Error handling examples
  - ClawHub publish intent documented

.env.example:
  Added SQL_DEFAULT_BACKEND documentation and commented example

* OB-244: Fix CI workflow — Python syntax check, not Node.js

PROBLEM: test-on-pr.yml ran Node.js matrix (18.x/20.x/22.x)
  clawbot-sql-connector is a Python library — no package-lock.json
  Every CI run failed with 'lock file not found'
  Pre-existing issue, not caused by this PR

FIX: Replace Node.js matrix with Python 3.11 syntax + smoke test
  - python -m py_compile (syntax validation)
  - Smoke test: import + _DEFAULT_BACKEND check (no DB required)
  - pymssql mocked in CI (no real DB connection)
  - Secret scanning preserved

---------

Co-authored-by: Oblio <oblio@falootin.com>
@Oblio-Falootin Oblio-Falootin merged commit bf4dd35 into development Apr 20, 2026
2 checks passed
@Oblio-Falootin Oblio-Falootin deleted the OB-244/sync-dev-to-main branch April 20, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant