Skip to content

ci: fix the broken build matrix (setup-java distribution, missing lein, reflection gate) - #662

Merged
dakrone merged 3 commits into
dakrone:3.xfrom
jsavyasachi:fix/ci-reflection-gate
Jun 22, 2026
Merged

dakrone merged 3 commits into
dakrone:3.xfrom
jsavyasachi:fix/ci-reflection-gate

Conversation

@jsavyasachi

@jsavyasachi jsavyasachi commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

The CI badge has been red for months. The cause is workflow rot, not the code (the test suite passes locally and on a fixed matrix). Three independent breakages:

  1. setup-java@v5 had no distribution. v2+ requires it, so every cell failed immediately at the Setup java step with Input required and not supplied: distribution. Set distribution: zulu (covers the whole 14/17/21/25 matrix).

  2. lein was assumed pre-installed. Current ubuntu-latest no longer ships Leiningen, so every lein step failed with exit code 127 (command not found). Added a setup-clojure step that installs a pinned Leiningen.

  3. The reflection-warning gate matched dependency warnings. It greps the full output of lein check, which includes warnings from compiling deps. The optional dev dep crouton emits one (crouton/html.clj), so the gate failed even though clj-http's own source is clean. Scoped the grep to clj_http/.

Also added a workflow_dispatch trigger so the matrix can be re-run manually.

Full 4×5 matrix green on my fork after these fixes - https://github.com/jsavyasachi/clj-http/actions/runs/27911790757

The reflection-warning check greps the full output of `lein check`, which
includes warnings emitted while compiling dependencies. The optional dev
dependency crouton emits one reflection warning (crouton/html.clj), so the
gate failed on every matrix cell even though clj-http's own source is clean.
Scope the grep to clj_http/ so only first-party warnings fail the build.

Also add a workflow_dispatch trigger so the matrix can be re-run manually.
actions/setup-java v2+ requires a distribution; the workflow set only
java-version, so every matrix cell failed at the Setup java step with
'Input required and not supplied: distribution'. Use the zulu distribution,
which provides builds for the full Java version matrix (14/17/21/25).
The workflow assumed lein was pre-installed on the runner image, but
current ubuntu-latest no longer ships Leiningen, so every step that shells
out to lein failed with exit code 127 (command not found). Add a
setup-clojure step that installs a pinned Leiningen.
@dakrone

dakrone commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants