Skip to content

refactor(vm): extract Hyper.Vm.Id with firecracker-safe ids#33

Merged
markovejnovic merged 2 commits into
mainfrom
refactor/vm-id
Jun 28, 2026
Merged

refactor(vm): extract Hyper.Vm.Id with firecracker-safe ids#33
markovejnovic merged 2 commits into
mainfrom
refactor/vm-id

Conversation

@markovejnovic

@markovejnovic markovejnovic commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Move VM-id generation out of Hyper.gen_vm_id/0 into a dedicated Hyper.Vm.Id
module (type t() + generate/0), and migrate the Hyper.Vm.id() type to
Hyper.Vm.Id.t() across the tree.

generate/0 also switches the encoding from url-safe base64 to lowercase
base32: the old encoding emitted '-' and '_', which firecracker rejects in an
instance id (InvalidInstanceId / 'Invalid char (_)') and which collide with
dm/jailer name rules. base32 ([a-z2-7]) is alphanumeric and safe on all three.
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
lib/hyper.ex 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Jun 27, 2026

Copy link
Copy Markdown

Test Results

297 tests  +1   296 ✅ +1   8s ⏱️ +5s
 56 suites +1     1 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit c2bf12e. ± Comparison against base commit 9ee5de4.

♻️ This comment has been updated with latest results.

The Hyper.Vm.id() -> Hyper.Vm.Id.t() rename pushed the with_image_lease/3
@SPEC past the line limit; reflow it so mix format --check-formatted (the
first CI gate) passes.
@markovejnovic markovejnovic merged commit c456749 into main Jun 28, 2026
6 checks passed
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