Test disk-only profiles on a linked clone

Open Beginner friendly
#106 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
77/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
electron, typescript
Domain
testing

Research direction

Read the linked clones page in the wiki and tests/integration/clones.test.ts. The issue describes the scenario: take and launch a disk-only profile of a linked clone. Add a sentence explaining that the profile covers the overlay and relies on its read-only base staying unchanged, and add the integration test; done when the test passes and the wiki describes this limitation.

Written by the indexing model from the issue text.

Description

documentation tests

Profiles of a powered-off VM (#96, #98) are made with qemu-img snapshot -c, and take() checks existsSync(cfg.diskPath) first. A linked clone's disk is a small overlay on a read-only base. Snapshotting the overlay works, but that profile only covers the overlay. If the base ever changes (it shouldn't, but #70 and #71 are about the base file's life cycle), launching the profile boots on a different base.

Not a bug today, the base is never written to. Worth a sentence in the wiki's Linked clones page, and a test in tests/integration/clones.test.ts that takes and launches a disk-only profile of a linked clone, so nothing changes this without noticing.

Dominant language
TypeScript
Stars
3
Forks
0
Avg merge
2m
Merged PRs (30d)
59

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from A21-devs/Virtual-Machine-Manager

All issues in A21-devs/Virtual-Machine-Manager

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.