Skip to content

engine-rest unit tests do not run in CI #3992

Open

Description

@javahippie

The distro profile in engine-rest/engine-rest/pom.xml sets skipTests=true for surefire (inherited from Camunda, 2015). Every regular build activates distro:

  • build.yml and pr-build.yml via .devenv/scripts/build/build.sh, all build profiles (fast, normal, max)

So the ~3600 engine-rest tests are skipped on every PR and main build ("Tests are skipped." in the build log).

Until #3990 they only ran by accident in "Unit Tests with Databases". build-and-run-unit-tests.sh ran the full reactor without distro, not just the engine. That workflow only runs on manual dispatch, so the tests ran rarely. Two problems stayed hidden as a result: a test hang caused by a leaked ClockUtil (fixed in #3991) and a timezone-dependent assertion in HistoryCleanupRestServiceInteractionTest (fix pending). #3990 limited the DB workflow to the DB-dependent modules, so engine-rest tests now run nowhere.

The tests use mocks only and need no database. Locally the module takes about 3 minutes.

Proposal:

  • Run engine-rest tests in the PR and main build. Either drop skipTests from the distro profile, or add a separate step or job.
  • Decide whether the resteasy and jersey3 profile variants need to run too.

The other modules that skip tests under distro are QA and integration test modules. They have their own runs and are out of scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions