Update console sample to use cratis_chronicle Hex package and add CI verification#5
Closed
Copilot wants to merge 3 commits into
Closed
Update console sample to use cratis_chronicle Hex package and add CI verification#5Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
…dd CI verification Agent-Logs-Url: https://github.com/Cratis/Chronicle.Elixir/sessions/e9022371-acb8-4fc8-bf1a-ed9c80299062 Co-authored-by: einari <134365+einari@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Cratis/Chronicle.Elixir/sessions/e9022371-acb8-4fc8-bf1a-ed9c80299062 Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
einari
May 12, 2026 05:11
View session
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.
Summary
Verifies that PR #4's compilation fix works end-to-end by updating the console sample to depend on the officially published Hex package instead of the local source path.
Changes
Samples/console/mix.exs— switched the dependency from{:chronicle, path: "../../Source/chronicle"}to{:cratis_chronicle, "~> 0.0.1"}(the latest version published to Hex)Samples/console/mix.lock— deleted the stale lockfile; it will be regenerated from Hex when users runmix deps.getas documented in the README.github/workflows/publish.yml— added averify_sampleCI job that runs afterpublish, installs dependencies and compiles the console sample against the freshly published Hex package, confirming the package compiles successfully when consumed as a Hex dependencyHow this verifies PR #4
PR #4 fixed compilation failures (
Module.__struct__/1 is undefined) that only manifested whencratis_chroniclewas fetched as a Hex dependency (not a path dep). By switching the sample to the Hex package and adding a post-publish compile check, the CI now exercises exactly the code path PR #4 repaired.Running the sample locally
cd Samples/console mix deps.get mix run --no-haltRequires a Chronicle kernel running on
localhost:35000(e.g.docker run -p 35000:35000 cratis/chronicle:latest).