Skip to content

feature(emulator): bump emulator (v0.21.0), rootfs (v0.18.0), linux (6.5.13-ctsi-2-v0.21.0) - #791

Open
mpolitzer wants to merge 2 commits into
next/2.0from
feature/bump-emulator-v0.21.0
Open

feature(emulator): bump emulator (v0.21.0), rootfs (v0.18.0), linux (6.5.13-ctsi-2-v0.21.0)#791
mpolitzer wants to merge 2 commits into
next/2.0from
feature/bump-emulator-v0.21.0

Conversation

@mpolitzer

@mpolitzer mpolitzer commented Jul 20, 2026

Copy link
Copy Markdown

Changes:

  • header files got renamed
  • defines renamed: CM_CMIO_* -> CM_HTIF_*; UARCH_HALT_FLAG -> UARCH_HALT
  • SendCmioResponse got a new parameter: revertRootHash. Checkpoint is now done "automatically" from it.
  • Need final versions of dependencies: emulator, rootfs and linux.

bumps:

  • machine-emulator: 0.21.0
  • machine-guest-tools: 0.18.0
  • linux: 6.5.13-ctsi-2-v0.21.0

@mpolitzer mpolitzer self-assigned this Jul 20, 2026
@mpolitzer
mpolitzer force-pushed the feature/bump-emulator-v0.21.0 branch 8 times, most recently from 6f9e2f3 to 3e8ec67 Compare July 22, 2026 13:03
@mpolitzer mpolitzer changed the title (WIP) feature(emulator): bump emulator (v0.21.0) and rootfs (v0.18.0) feature(emulator): bump emulator (v0.21.0), rootfs (v0.18.0), linux (6.5.13-ctsi-2-uio-test1-v0.21.0) Jul 23, 2026
@mpolitzer
mpolitzer marked this pull request as ready for review July 23, 2026 17:40
@mpolitzer
mpolitzer requested a review from vfusco July 23, 2026 17:40
@vfusco
vfusco requested a review from Copilot July 24, 2026 10:34

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

This PR updates the rollups-node integration to newer Cartesi machine components (emulator/rootfs/linux) and adapts the Go/Lua tooling and machine abstractions to upstream API changes (renamed headers/defines, new CMIO response contract, and updated hash-collection entrypoints).

Changes:

  • Bump emulator/rootfs/linux dependency pins (Dockerfile + test download helpers + packaging constraints).
  • Update emulator CGo bindings and machine backend interfaces for renamed HTIF/CMIO constants and the new SendCmioResponse(revertRootHash, ...) API.
  • Remove explicit checkpoint-hash writing and adjust replay/proof tooling for renamed flags and base64/hex hash formats.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
test/dependencies.sha256 Updates SHA256s for test kernel/rootfs downloads.
test/dependencies Updates test dependency download URLs (kernel/rootfs).
pkg/machine/machine.go Removes WriteCheckpointHash from the Machine interface.
pkg/machine/machine_test.go Updates mock machine to reflect interface removal.
pkg/machine/libcartesi.go Adapts libcartesi backend for new CMIO response signature and adds new root-hash collection path.
pkg/machine/libcartesi_test.go Updates mocks/tests for new libcartesi interface methods and signatures.
pkg/machine/implementation.go Uses GetRootHash and passes revertRootHash into SendCmioResponse; removes checkpoint write method.
pkg/machine/implementation_test.go Updates tests to mock GetRootHash + new SendCmioResponse signature; removes checkpoint-hash tests.
pkg/machine/backend.go Updates Backend interface SendCmioResponse signature.
pkg/machine/backend_test.go Updates backend mock helpers to include GetRootHash + new SendCmioResponse signature.
pkg/emulator/types.go Switches to new headers and renames CMIO constants to HTIF equivalents.
pkg/emulator/remote.go Switches JSON-RPC header include to new name.
pkg/emulator/machine.go Switches core emulator header include, updates C bindings for new APIs and CMIO response signature.
pkg/emulator/emulator.go Switches JSON-RPC header include to new name.
Makefile Updates test dependency download target to include rootfs and new kernel artifact name.
internal/manager/instance.go Removes pre-processing checkpoint write before advance.
internal/manager/instance_test.go Removes checkpoint-write error path tests and mock fields.
Dockerfile Bumps emulator version used in build image and updates SHA256s.
control.template Updates required emulator version range for the Debian package.
cmd/cartesi-rollups-machine-tool/replay_dave.lua Updates Dave replay script to new CMIO API and HTIF constants.
cmd/cartesi-rollups-machine-tool/main.go Renames flags and converts proof hashes from base64 to hex.

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

Comment thread pkg/machine/libcartesi.go
Comment thread pkg/machine/libcartesi.go
Comment thread pkg/machine/libcartesi.go
Comment thread pkg/machine/libcartesi.go Outdated
Comment thread cmd/cartesi-rollups-machine-tool/main.go
Comment thread Dockerfile Outdated
# syntax=docker.io/docker/dockerfile:1

ARG EMULATOR_VERSION=0.20.0
ARG EMULATOR_VERSION=0.21.0-test6

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

PR is tracking release

Comment thread test/dependencies Outdated
Comment on lines +1 to +2
https://github.com/cartesi/image-kernel/releases/download/v0.21.0-test1/linux-6.5.13-ctsi-2-uio-test1-v0.21.0.bin
https://github.com/cartesi/machine-guest-tools/releases/download/v0.18.0-test7/rootfs-tools.ext2

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

PR is tracking release

Comment thread Makefile Outdated
@shasum -ca 256 test/dependencies.sha256
@cd $(DOWNLOADS_DIR) && ln -s rootfs-tools.ext2 rootfs.ext2
@cd $(DOWNLOADS_DIR) && ln -s linux-6.5.13-ctsi-1-v0.20.0.bin linux.bin
@cd $(DOWNLOADS_DIR) && ln -s linux-6.5.13-ctsi-2-uio-test1-v0.21.0.bin linux.bin

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

PR is tracking release

Comment thread pkg/emulator/machine.go Outdated
@mpolitzer
mpolitzer force-pushed the feature/bump-emulator-v0.21.0 branch from 927f913 to 69822b4 Compare July 24, 2026 14:54
@mpolitzer
mpolitzer force-pushed the feature/bump-emulator-v0.21.0 branch 7 times, most recently from 72f7f3a to 1297713 Compare August 3, 2026 13:32
@mpolitzer
mpolitzer force-pushed the feature/bump-emulator-v0.21.0 branch 4 times, most recently from 4bc3805 to 30b3e88 Compare August 4, 2026 18:00
@mpolitzer
mpolitzer force-pushed the feature/bump-emulator-v0.21.0 branch from 30b3e88 to 85e4ac7 Compare August 4, 2026 18:17
@mpolitzer mpolitzer changed the title feature(emulator): bump emulator (v0.21.0), rootfs (v0.18.0), linux (6.5.13-ctsi-2-uio-test1-v0.21.0) feature(emulator): bump emulator (v0.21.0), rootfs (v0.18.0), linux (6.5.13-ctsi-2-v0.21.0) Aug 4, 2026
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