Skip to content

Update console sample to use cratis_chronicle Hex package and add CI verification#5

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/modify-sample-to-use-latest-version
Closed

Update console sample to use cratis_chronicle Hex package and add CI verification#5
Copilot wants to merge 3 commits into
mainfrom
copilot/modify-sample-to-use-latest-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 12, 2026

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 run mix deps.get as documented in the README
  • .github/workflows/publish.yml — added a verify_sample CI job that runs after publish, installs dependencies and compiles the console sample against the freshly published Hex package, confirming the package compiles successfully when consumed as a Hex dependency

How this verifies PR #4

PR #4 fixed compilation failures (Module.__struct__/1 is undefined) that only manifested when cratis_chronicle was 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-halt

Requires a Chronicle kernel running on localhost:35000 (e.g. docker run -p 35000:35000 cratis/chronicle:latest).

@einari einari closed this May 13, 2026
@einari einari deleted the copilot/modify-sample-to-use-latest-version branch May 13, 2026 18:25
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