eca icon indicating copy to clipboard operation
eca copied to clipboard

# Bug Report: ECA Build Failure - Test Suite Error

Open madorian opened this issue 1 year ago • 2 comments

Summary

Build failure when installing ECA via Nix flake at commit 5517c81a99f5d0e482c16f902b2792f270994866. The build fails during the test phase with a Clojure/Kaocha test runner error.

Environment

  • System: NixOS x86_64-linux
  • Package: inputs.eca.packages.x86_64-linux.default
  • Commit: 5517c81a99f5d0e482c16f902b2792f270994866
  • Build tool: Nix flake

Flake Configuration

{
  inputs = {
    nixpkgs = { url = "github:nixos/nixpkgs/nixos-25.05"; };
    eca.url = "github:editor-code-assistant/eca/5517c81a99f5d0e482c16f902b2792f270994866";
  };
}

Error Details

The build fails during the checkPhase = "bb test"; step in the ECA flake's mkCljBin derivation.

Error Location: /build/s3rvr78qgh9fyaidh2g69ncg9rpjjv49-source/scripts/make.clj:29:7

Error Type: babashka.process/error - Process check failure

Command that failed:

"clojure.main" "-m" "kaocha.runner"

The error occurs when the p/check function tries to validate the exit status of the Kaocha test runner, suggesting tests are failing or exiting with non-zero status.

Stack Trace

babashka.process/check                    - <built-in>
make/clj!                                 - /build/s3rvr78qgh9fyaidh2g69ncg9rpjjv49-source/scripts/make.clj:29:7
make/clj!                                 - /build/s3rvr78qgh9fyaidh2g69ncg9rpjjv49-source/scripts/make.clj:27:1

Expected Behavior

The build should complete successfully and produce the ECA binary.

Workarounds Attempted

  • Using specific commit hash instead of latest
  • Build logs show extensive classpath with all dependencies properly resolved

Additional Context

The flake.nix shows doCheck = true; is explicitly set, and the failure happens specifically during test execution. The build environment appears to have all necessary dependencies (Jetty, Jackson, Clojure libraries, etc.) properly available in the classpath.

Suggested Investigation

  1. Check if tests pass in the development environment outside of Nix
  2. Verify if this specific commit has known test failures
  3. Consider if tests require network access or other resources not available in Nix sandbox
  4. Evaluate if doCheck = false should be the default for releases

madorian avatar Nov 02 '25 01:11 madorian

Yeah, I don't know why it's failing if all tests are green in CI.

ericdallo avatar Nov 02 '25 02:11 ericdallo

Fixed in #202

ericdallo avatar Nov 09 '25 00:11 ericdallo