Skip to content

test: lockingSpec advisory-lock guards missing for CockroachDB (follow-up to #2665) #2743

Description

@bpamiri

Describe the bug

#2665 added engine/DB guards to lockingSpec for H2 and SQL Server, but four CockroachDB specs still throw "CockroachDB does not support advisory locks." on every engine (Lucee 6, Lucee 7, BoxLang).

Failing specs (all 4 on CockroachDB)

wheels.model.lockingSpec :: executes callback and returns result
wheels.model.lockingSpec :: releases lock even when callback throws an exception
wheels.model.lockingSpec :: accepts a custom timeout argument
wheels.model.lockingSpec :: safely handles lock names with single quotes

Error message (all four):

CockroachDB does not support advisory locks.

The spec is throwing this message intentionally (CockroachDB genuinely doesn't support advisory locks), but BDD records it as an Error rather than skipping. Need the same skip-guard treatment as H2/SQL Server.

Reproduction

tools/test-matrix.sh lucee7 cockroachdb
# or
curl 'http://localhost:60007/wheels/core/tests?db=cockroachdb&format=json&directory=tests.specs.model'

Evidence

Compat-matrix run 25978222394 (develop, 2026-05-17):

  • lucee6/cockroachdb: 4 errors (these specs)
  • lucee7/cockroachdb: 4 errors (these specs)
  • boxlang/cockroachdb: 4 errors (these specs)

Identical signature across all three engines confirms this is environmental (CockroachDB-specific), not engine-specific.

Expected behavior

The four advisory-lock specs skip cleanly on CockroachDB (as they already do on H2 and SQL Server per #2665), reporting as skipped rather than errored.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions