github Ericsson/codechecker v6.29.2

latest release: v6.29.3
4 hours ago

Analyzer

  • Fix CTU parse-on-demand: normalize relative -include path to absolute (#5097)
    Fixes #5093 — relative -include paths in CTU parse-on-demand mode are now correctly normalized to absolute paths.

  • Disallow prefix matching for command line arguments (#5164)
    The --z3 flag was removed from CodeChecker analyze, but --z3-refutation remains valid. Because argparse allowed prefix matching, --z3 was silently falling back to --z3-refutation. Prefix matching is now disabled to prevent such ambiguities.

Database / Backend

  • Pin SQLAlchemy to version 2.0
    SQLAlchemy 2.1 defaults to psycopg3, which CodeChecker does not yet support. SQLAlchemy is now pinned to 2.0.x to maintain psycopg2 compatibility. PostgreSQL in CI is also pinned to version 18 for deterministic test results.

  • Fix declarative_base import for SQLAlchemy 2.0 compatibility
    run_db_model.py was importing declarative_base from the deprecated sqlalchemy.ext.declarative path. It now imports from sqlalchemy.orm, matching config_db_model.py and eliminating MovedIn20Warning on module load. Fixes #5116.

  • Disable PostgreSQL timeouts during schema migration and garbage collection
    Long-running queries during garbage collection and schema migration could be aborted by server-side statement_timeout or idle_in_transaction_session_timeout settings. These timeouts are now disabled for the duration of those operations.

  • Remove redundant code and set database connection timeout

    • Connection timeout limits are now specified in create_engine().
    • A redundant psql-based connectivity check in PostgreSQLServer.connect() was removed; the equivalent check already exists in check_schema().
    • Dead code cleaned up: unused check_env and interactive parameters removed throughout.
    • Exception logging improved — only the relevant exception and connection string are printed instead of full internal SQLAlchemy stack traces.
    • The Docker image no longer installs postgresql-client (it was only needed for the removed psql call).

Web / Docker

  • Support TLS in the web container health check
    The Docker container health check now works correctly when TLS is enabled.

GUI Improvements

  • Rework error display
    Errors are now displayed in a modern snackbar-style notification instead of the previous UI.

  • Make report step messages selectable (#5141)

    • A copy button has been added to report step messages for quick clipboard access.
    • Text selection is now enabled inside report step message boxes.
  • Fix git blame not showing on the first line
    The blame gutter used !line?.from to skip empty lines. Because the first line's offset is 0, !0 evaluated to true and its blame marker was dropped. The check is now line?.from == null, so offset 0 is treated as a valid line.

  • Fix reports file tree view filtering for relative paths
    Filtering in the reports view failed for paths stored as relative paths. Both the file path filter and the file tree view mode now handle relative paths correctly.

Don't miss a new codechecker release

NewReleases is sending notifications on new releases.