Skip to content

chore: migrate motoko/canister_logs to icp-cli#1369

Draft
marc0olo wants to merge 10 commits into
masterfrom
chore/migrate-canister-logs-to-icp-cli
Draft

chore: migrate motoko/canister_logs to icp-cli#1369
marc0olo wants to merge 10 commits into
masterfrom
chore/migrate-canister-logs-to-icp-cli

Conversation

@marc0olo

@marc0olo marc0olo commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Migrates motoko/canister_logs from dfx to icp-cli.

  • Replace dfx.json with icp.yaml (@dfinity/motoko@v5.0.0)
  • Move src/Main.mobackend/app.mo; rename actor to CanisterLogs
  • Replace inline actor("aaaaa-aa") with import { ic } "mo:ic" for ic.raw_rand()
  • Update mops.toml: moc 1.9.0, core 2.5.0, ic 4.0.0; apply mops check --fix
  • Add Makefile with 11 tests covering Debug.print (update + replicated query), explicit traps with pre-trap messages, memory OOB, timer trap, raw_rand; replace @- with 2>/dev/null || true for clean CI output
  • Update poll_logs.sh to use icp canister logs backend
  • CI workflow (icp-dev-env-motoko:0.3.2)
  • README: drop ## Overview / GitHub link; add log entry format section; document poll_logs.sh; fix dapp→app

Test plan

  • motoko-canister_logs CI passes

🤖 Generated with Claude Code

marc0olo and others added 10 commits June 10, 2026 17:17
Replace dfx tooling with icp-cli: add icp.yaml, update mops.toml to
moc 1.9.0 and core 2.5.0, move src/Main.mo to backend/app.mo, replace
inline actor("aaaaa-aa") raw_rand with mo:ic ic.raw_rand(), rewrite
Makefile tests for icp canister call/logs, add CI workflow, and update README.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tandardize test labels

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rmat to README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant