flask3.0-python3.10: add helper scripts - #95
Open
shauryarane05 wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
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
zlibas a cloned dependency insetup.sh. - Introduce
scripts/build/*,scripts/run/*, andscripts/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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add helper scripts for flask