You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# databricks-sql-kernel wheel, which transitively brings
130
+
# pyarrow). Explicit --extras kernel rather than --all-extras
131
+
# so this tier targets the kernel configuration specifically.
132
+
install-args: "--extras kernel"
133
+
cache-suffix: "kernel-"
134
+
- name: Show installed versions
135
+
run: |
136
+
echo "=== with databricks-sql-kernel ==="
137
+
poetry run pip list
138
+
- name: Assert the real kernel wheel is installed (not a stub)
139
+
run: |
140
+
poetry run python -c "import databricks_sql_kernel as k; assert k.__file__, 'kernel wheel missing __file__ — not the real wheel'; print('real kernel wheel:', k.__file__)"
141
+
- name: Unit tests (kernel wheel present, realkernel deselected)
142
+
# The bulk of tests/unit fakes databricks_sql_kernel in
143
+
# sys.modules, so the real-wheel routing test is deselected here
144
+
# and run on its own below (a shared session would shadow the
145
+
# real wheel — both real-wheel tests fail loudly if that happens).
146
+
run: poetry run python -m pytest tests/unit -m "not realkernel"
147
+
- name: Drive use_kernel=True through the REAL wheel (routing)
148
+
# Separate invocation, explicit file path: never collects the
149
+
# fake-module test file, so sys.modules stays unpolluted. This is
150
+
# the no-network proof that sql.connect(use_kernel=True) actually
151
+
# instantiates the real KernelDatabricksClient (not a stub, not a
152
+
# Thrift fallback). Fails loudly if the real wheel is shadowed.
153
+
run: poetry run python -m pytest tests/unit/test_session.py -m realkernel -v
0 commit comments