From 39751a7d96bea7e4a824fb0a4719f2e0673d39da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Sep 2025 18:15:51 +0000 Subject: [PATCH 1/6] Initial plan From 6418103917da02ed553047ad32c901d12e95b0b0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Sep 2025 18:19:52 +0000 Subject: [PATCH 2/6] Fix CI lint step to handle exit code 1 properly Co-authored-by: codeGlaze <11318451+codeGlaze@users.noreply.github.com> --- .github/workflows/continuous-integration.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 7e976a8e..db1e658a 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -27,7 +27,17 @@ jobs: boot: 2.8.3 # or use 'latest' to always provision latest version of boot - name: Get leiningen version run: lein -v - - name: Run linter - run: lein lint || test $? -eq 2 + - name: Lint + run: | + lein lint + EXIT_CODE=$? + echo "Linter exited with code: $EXIT_CODE" + if [ $EXIT_CODE -eq 0 ] || [ $EXIT_CODE -eq 2 ]; then + echo "Success or warnings only, passing build." + exit 0 + else + echo "Error detected (exit code $EXIT_CODE), failing build." + exit 1 + fi - name: Run tests run: lein test From b73071b4a0c0892ce0a33ef1bb830ed1cde778b2 Mon Sep 17 00:00:00 2001 From: codeGlaze Date: Thu, 11 Sep 2025 14:33:49 -0400 Subject: [PATCH 3/6] Update lint command to include LEIN_SNAPSHOTS_IN_RELEASE --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index db1e658a..3874ed25 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -29,7 +29,7 @@ jobs: run: lein -v - name: Lint run: | - lein lint + LEIN_SNAPSHOTS_IN_RELEASE=true lein do lint EXIT_CODE=$? echo "Linter exited with code: $EXIT_CODE" if [ $EXIT_CODE -eq 0 ] || [ $EXIT_CODE -eq 2 ]; then From a9691c4a991b0af1274a186439e8f44ffc0ba9a5 Mon Sep 17 00:00:00 2001 From: codeGlaze Date: Thu, 11 Sep 2025 14:46:20 -0400 Subject: [PATCH 4/6] Update CI workflow to use clj-kondo for linting --- .github/workflows/continuous-integration.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 3874ed25..8d014ec9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -29,9 +29,10 @@ jobs: run: lein -v - name: Lint run: | - LEIN_SNAPSHOTS_IN_RELEASE=true lein do lint + echo "Running clj-kondo directly to diagnose the issue..." + clj-kondo --lint src EXIT_CODE=$? - echo "Linter exited with code: $EXIT_CODE" + echo "clj-kondo exited with code: $EXIT_CODE" if [ $EXIT_CODE -eq 0 ] || [ $EXIT_CODE -eq 2 ]; then echo "Success or warnings only, passing build." exit 0 From 6d7660a86f9f780b6fe508a5bd3d6a873f21fa7d Mon Sep 17 00:00:00 2001 From: codeGlaze Date: Thu, 11 Sep 2025 15:16:49 -0400 Subject: [PATCH 5/6] Replace clj-kondo with lein lint in CI --- .github/workflows/continuous-integration.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 8d014ec9..db1e658a 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -29,10 +29,9 @@ jobs: run: lein -v - name: Lint run: | - echo "Running clj-kondo directly to diagnose the issue..." - clj-kondo --lint src + lein lint EXIT_CODE=$? - echo "clj-kondo exited with code: $EXIT_CODE" + echo "Linter exited with code: $EXIT_CODE" if [ $EXIT_CODE -eq 0 ] || [ $EXIT_CODE -eq 2 ]; then echo "Success or warnings only, passing build." exit 0 From 55fa228f5495e16fb3c6f2e4060efd9e09f46d5c Mon Sep 17 00:00:00 2001 From: codeGlaze Date: Thu, 11 Sep 2025 15:20:57 -0400 Subject: [PATCH 6/6] Enhance linting process with clj-kondo --- .github/workflows/continuous-integration.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index db1e658a..bc6b1da1 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -29,9 +29,18 @@ jobs: run: lein -v - name: Lint run: | - lein lint + # Force lein to download the clj-kondo dependency + lein with-profile lint deps :tree + + # Find the exact path to the clj-kondo uberjar + CLJ_KONDO_PATH=$(find ~/.m2/repository/clj-kondo -name "*standalone.jar") + echo "Found clj-kondo at: $CLJ_KONDO_PATH" + + # Run clj-kondo directly using the uberjar + java -jar $CLJ_KONDO_PATH --lint src EXIT_CODE=$? echo "Linter exited with code: $EXIT_CODE" + if [ $EXIT_CODE -eq 0 ] || [ $EXIT_CODE -eq 2 ]; then echo "Success or warnings only, passing build." exit 0