Skip to content

flask3.0-python3.10: add helper scripts - #95

Open
shauryarane05 wants to merge 1 commit into
unikraft:mainfrom
shauryarane05:flask3-scripts-fresh
Open

flask3.0-python3.10: add helper scripts#95
shauryarane05 wants to merge 1 commit into
unikraft:mainfrom
shauryarane05:flask3-scripts-fresh

Conversation

@shauryarane05

Copy link
Copy Markdown

add helper scripts for flask

@razvand
razvand requested review from george17c and a lite review from Copilot August 21, 2026 20:07
@razvand razvand self-assigned this Aug 21, 2026
@razvand razvand added the enhancement New feature or request label Aug 21, 2026

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 adds a set of helper scripts to build, run, and smoke-test the flask3.0-python3.10 Unikraft application across multiple platforms/architectures, and updates repo setup to include a required dependency.

Changes:

  • Add zlib as a cloned dependency in setup.sh.
  • Introduce scripts/build/*, scripts/run/*, and scripts/defconfig/* helpers for qemu/firecracker/xen on x86_64/arm64.
  • Add a basic scripted test harness (scripts/test/*) plus companion documentation.

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
setup.sh Clone lib-zlib dependency during repo setup.
flask3.0-python3.10/scripts/test/wrapper.sh Wrapper to run local/remote smoke tests around scripted runs.
flask3.0-python3.10/scripts/test/single.sh Single HTTP endpoint check via curl/grep.
flask3.0-python3.10/scripts/test/README.md Documentation for using the test scripts.
flask3.0-python3.10/scripts/test/common.sh Shared helpers for cleanup, launching instances, and curl checks.
flask3.0-python3.10/scripts/test/all.sh Orchestrates build/run/test across supported targets.
flask3.0-python3.10/scripts/test/.gitignore Ignore generated test logs.
flask3.0-python3.10/scripts/run/xen.x86_64 Xen x86_64 run helper (rootfs build + initrd + xl create).
flask3.0-python3.10/scripts/run/xen.arm64 Xen arm64 run helper (rootfs build + initrd + xl create).
flask3.0-python3.10/scripts/run/qemu.x86_64 QEMU x86_64 run helper with port forwarding and kernel cmdline.
flask3.0-python3.10/scripts/run/qemu.arm64 QEMU arm64 run helper with port forwarding and kernel cmdline.
flask3.0-python3.10/scripts/run/fc.x86_64 Firecracker x86_64 run helper (rootfs + initrd + FC config).
flask3.0-python3.10/scripts/run/fc.arm64 Firecracker arm64 run helper (rootfs + initrd + FC config).
flask3.0-python3.10/scripts/README.md Documentation for build/run helper scripts.
flask3.0-python3.10/scripts/defconfig/xen.x86_64 Unikraft defconfig for Xen x86_64 (Python + zlib + fs bits).
flask3.0-python3.10/scripts/defconfig/xen.arm64 Unikraft defconfig for Xen arm64 (Python + zlib + fs bits).
flask3.0-python3.10/scripts/defconfig/qemu.x86_64 Unikraft defconfig for QEMU x86_64 (Python + zlib + fs bits).
flask3.0-python3.10/scripts/defconfig/qemu.arm64 Unikraft defconfig for QEMU arm64 (Python + zlib + fs bits).
flask3.0-python3.10/scripts/defconfig/fc.x86_64 Unikraft defconfig for Firecracker x86_64 (Python + zlib + fs bits).
flask3.0-python3.10/scripts/defconfig/fc.arm64 Unikraft defconfig for Firecracker arm64 (Python + zlib + fs bits).
flask3.0-python3.10/scripts/build/xen.x86_64 Build helper for Xen x86_64 using the provided defconfig.
flask3.0-python3.10/scripts/build/xen.arm64 Build helper for Xen arm64 (supports cross compile defaults).
flask3.0-python3.10/scripts/build/qemu.x86_64 Build helper for QEMU x86_64 using the provided defconfig.
flask3.0-python3.10/scripts/build/qemu.arm64 Build helper for QEMU arm64 (supports cross compile defaults).
flask3.0-python3.10/scripts/build/fc.x86_64 Build helper for Firecracker x86_64 using the provided defconfig.
flask3.0-python3.10/scripts/build/fc.arm64 Build helper for Firecracker arm64 (supports cross compile defaults).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +6 to +8
clean_up
start_instance_timeout 2>&1 | grep "Running on all addresses" 1>&2
if test $? -ne 0; then
Comment on lines +24 to +27
./scripts/test/single.sh "$host" "$port"
if test $? -ne 0; then
exit 1
fi
Comment on lines +10 to +20
sudo pkill -9 qemu-system
sudo pkill -9 firecracker
kraft stop --all
kraft rm --all
sudo kraft stop --all
sudo kraft rm --all

sudo ip link set dev tap0 down
sudo ip link del dev tap0
sudo ip link set dev virbr0 down
sudo ip link del dev virbr0
./scripts/test/all.sh
```

The command prints out a summary of the passed or failed tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants