Skip to content

[MicroVM] Add rich PPTX e2e test#271

Merged
huzaifa-d merged 3 commits into
mainfrom
feat/microvm-pptx-e2e
May 12, 2026
Merged

[MicroVM] Add rich PPTX e2e test#271
huzaifa-d merged 3 commits into
mainfrom
feat/microvm-pptx-e2e

Conversation

@huzaifa-d

@huzaifa-d huzaifa-d commented May 8, 2026

Copy link
Copy Markdown
Contributor
  • I have signed the Contributor License Agreement.
  • This pull request is related to an issue.
  • If this PR changes build commands, project architecture, or key conventions, I have updated [.github/copilot-instructions.md](.github/copilot-instructions.md).

Summary

Adds a new MicroVM e2e test that generates a dark-themed, 3-slide PPTX presentation about MXC × NanVix integration using the real python-pptx 1.0.2 library running inside a NanVix VM.

Changes

  • Bump NanVix from \7b756ef\ to \�e6cfe1\ — the newer rootfs includes python-pptx (added in nanvix/nanvix-python#138)
  • Update checksum for
    anvix_rootfs.img\ (only file that changed in the new build)
  • New test: \should generate a dark-themed 3-slide PPTX about MXC and NanVix using python-pptx\
    • Uses \ rom pptx import Presentation\ with proper python-pptx API
    • 3 widescreen slides: Title (🚀), Architecture (🔧), What's Next (✨)
    • Dark background (#1B1B2F), VS Code color palette, emoji content
    • Validates: exit code, file existence, size > 10KB, PK zip header
  • Restored cleanup in the original PPTX test's \ inally\ block

Note

\site-packages\ is not on \sys.path\ by default in the current NanVix build — the test prepends it explicitly.

Microsoft Reviewers: Open in CodeFlow

huzaifa-msft and others added 3 commits May 8, 2026 15:36
- Bump NanVix from 7b756ef to ee6cfe1 (includes python-pptx 1.0.2)
- Update nanvix_rootfs.img checksum for new build
- Add e2e test generating a 3-slide dark-themed PPTX inside NanVix VM
  using real python-pptx API (Presentation, Inches, Pt, RGBColor)
- Restore cleanup in original PPTX test's finally block

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The prereq check used stale filenames (python.elf, cpython-ramfs.img)
causing all Rust microvm e2e tests to silently skip. Updated to match
the current nanvix_runner.rs constants (python3.12, nanvix_rootfs.img).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@ppenna ppenna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@huzaifa-d huzaifa-d changed the title feat: add dark-themed python-pptx e2e test for microvm backend [MicroVM] Add rich PPTX e2e test May 12, 2026
@huzaifa-d huzaifa-d merged commit 2c671cd into main May 12, 2026
8 checks passed
@huzaifa-d huzaifa-d deleted the feat/microvm-pptx-e2e branch May 12, 2026 23:27
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.

3 participants