Skip to content

Fix bfabric-cli tracebacks on user errors and SIGILL on CPUs without AVX2 - #646

Merged
Caushi merged 3 commits into
mainfrom
fix/cli-errors-and-polars-cpu-check
Oct 29, 2026
Merged

Caushi merged 3 commits into
mainfrom
fix/cli-errors-and-polars-cpu-check

Conversation

@Caushi

@Caushi Caushi commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator
  • Fix bfabric-cli to report user errors (unknown query field, SOAP fault, lost connection, missing or malformed config, unknown config env, HTTP errors) in one Error: line instead of a traceback
  • Add report_user_errors to apply the same handling outside use_client
  • Fix importing polars through bfabric on a CPU without AVX2 to raise polars' "install polars[rtcompat]" hint instead of dying with "Illegal instruction"

Claudio Cannizzaro added 3 commits October 29, 2026 13:18
…t AVX2

polars only warns about missing CPU features and then the process dies with
'Illegal instruction'. Turn that one warning into an error when bfabric is
imported, so the user sees the 'install polars[rtcompat]' hint.
…ceback

Wrap suds faults, unknown query fields and lost connections in
BfabricRequestError / BfabricUnavailableError, report ValueError, OSError,
YAML and HTTP errors from use_client as a single Error: line, and add the
report_user_errors context manager for the same handling elsewhere. An
unknown config environment raises a ValueError listing the available ones.
… pytest

A newer pydantic makes basedpyright reject TypeAdapter(Annotated alias); add
targeted ignores. Wrapping the suds calls in _translate_call_errors moved the
baseline-grandfathered reportAny lines, so ignore them in place (basedpyright
pruned the now-stale baseline entries). pytest 9.2 removed
FixtureManager._arg2fixturedefs, which pytest-bdd 9.0 still uses; cap pytest
in the asgi_auth test extra.
@Caushi
Caushi merged commit 0b0a1f6 into main Oct 29, 2026
23 checks passed
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