Skip to content

Move example code to dev/ and clean up config for library consumers - #3

Merged
tooooolong merged 4 commits into
mainfrom
claude/fix-ci-pipeline-p7Xt4
Apr 3, 2026
Merged

tooooolong merged 4 commits into
mainfrom
claude/fix-ci-pipeline-p7Xt4

Conversation

@tooooolong

Copy link
Copy Markdown
Owner

Summary

  • Move src/example/dev/example/ so example code is not packaged in the published JAR, avoiding namespace collisions for downstream users
  • Replace hardcoded example.core-test inline runner with cognitect test-runner that discovers tests automatically
  • Remove --fail-threshold 0 from coverage aliases — consumers should set their own threshold
  • Remove --test-ns-regex hardcoded example pattern from coverage aliases
  • Add dev/ to :test-paths (lein) and :extra-paths (clj aliases) so CI still finds the example namespaces

Test plan

  • CI passes: lein test finds example tests via :test-paths ["dev" "test"]
  • CI passes: clj -M:test discovers tests automatically via cognitect test-runner
  • CI passes: lein cloverage and clj -M:coverage generate valid cobertura.xml
  • Verify example.core is NOT included in the published JAR (lein jar and check contents)

https://claude.ai/code/session_01WpM3eidMhXdmEvo9DRX1vH

…sumers

- Move src/example/ to dev/ so example code is not packaged in the
  published JAR (avoids namespace collisions for downstream users)
- Replace hardcoded example.core-test inline runner with cognitect
  test-runner that discovers tests automatically
- Remove --fail-threshold 0 from coverage aliases (consumers should
  set their own threshold)
- Remove --test-ns-regex hardcoded example pattern from coverage aliases
- Add dev/ to :test-paths (lein) and :extra-paths (clj aliases) so CI
  can still find the example namespaces for testing

https://claude.ai/code/session_01WpM3eidMhXdmEvo9DRX1vH

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a6b7ce9b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread deps.edn

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves the repository’s demo/example namespace out of src/ so it won’t be packaged into the published JAR, and updates test/coverage tooling so CI still discovers and runs the example code.

Changes:

  • Relocate example code to dev/example/ and update Leiningen :test-paths accordingly
  • Switch clj -M:test from an inline runner to cognitect-labs/test-runner test discovery
  • Simplify coverage aliases by removing hardcoded --test-ns-regex and --fail-threshold 0

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
project.clj Adds explicit :source-paths and updates :test-paths to include dev/ so Lein tests can still load the example namespace.
dev/example/core.clj Reintroduces the example/demo functions under dev/ (no longer shipped in the JAR).
deps.edn Updates :test to use cognitect test-runner and adjusts :coverage / :coverage-html aliases to include dev/ and remove hardcoded options.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

claude and others added 2 commits April 3, 2026 08:11
- Revert cognitect test-runner (git dep may cause resolution issues in
  CI) back to inline clojure.test runner
- Move dev/ from top-level :test-paths to :profiles {:dev {:source-paths}}
  in project.clj so cloverage can discover example namespaces as sources
- Add comments noting dev/ layout for downstream users

https://claude.ai/code/session_01WpM3eidMhXdmEvo9DRX1vH
Repository owner deleted a comment from coderabbitai Bot Apr 3, 2026
@tooooolong
tooooolong merged commit 39f3f70 into main Apr 3, 2026
18 checks passed
@tooooolong
tooooolong deleted the claude/fix-ci-pipeline-p7Xt4 branch April 3, 2026 09:55
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.

3 participants