# Bug Report: ECA Build Failure - Test Suite Error
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
- Check if tests pass in the development environment outside of Nix
- Verify if this specific commit has known test failures
- Consider if tests require network access or other resources not available in Nix sandbox
- Evaluate if
doCheck = falseshould be the default for releases
Yeah, I don't know why it's failing if all tests are green in CI.
Fixed in #202