Repository navigation
ci: fix the broken build matrix (setup-java distribution, missing lein, reflection gate) - #662
Merged
Merged
Conversation
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.
This was referenced Jun 21, 2026
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
setup-java@v5had nodistribution. v2+ requires it, so every cell failed immediately at the Setup java step withInput required and not supplied: distribution. Setdistribution: zulu(covers the whole 14/17/21/25 matrix).leinwas assumed pre-installed. Currentubuntu-latestno longer ships Leiningen, so everyleinstep failed with exit code 127 (command not found). Added asetup-clojurestep that installs a pinned Leiningen.The reflection-warning gate matched dependency warnings. It greps the full output of
lein check, which includes warnings from compiling deps. The optional dev depcroutonemits one (crouton/html.clj), so the gate failed even though clj-http's own source is clean. Scoped the grep toclj_http/.Also added a
workflow_dispatchtrigger 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