exec-sandbox 0.21.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- exec_sandbox-1.0.1/.claude/settings.json +12 -0
- exec_sandbox-1.0.1/.codex/config.toml +8 -0
- exec_sandbox-1.0.1/.github/runs-on.yml +59 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/workflows/release.yml +2 -2
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/workflows/test.yml +3 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.gitignore +1 -1
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/CLAUDE.md +13 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/Makefile +15 -6
- exec_sandbox-1.0.1/PKG-INFO +949 -0
- exec_sandbox-1.0.1/README.md +889 -0
- exec_sandbox-1.0.1/SECURITY.md +21 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/cicd/version.sh +8 -1
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/Cargo.lock +129 -197
- exec_sandbox-1.0.1/guest-agent/src/clock.rs +66 -0
- exec_sandbox-1.0.1/guest-agent/src/connection.rs +1046 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/constants.rs +60 -44
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/error.rs +318 -193
- exec_sandbox-1.0.1/guest-agent/src/file_io.rs +1013 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/init.rs +669 -239
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/main.rs +49 -55
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/oom_guard.rs +69 -29
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/packages.rs +150 -25
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/execute.rs +590 -154
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/mod.rs +0 -2
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/scripts/js_repl.mjs +127 -57
- exec_sandbox-1.0.1/guest-agent/src/repl/scripts/python_repl.py +364 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/scripts/shell_repl.sh +2 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/spawn.rs +30 -28
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/repl/wrappers.rs +3 -1
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/types.rs +35 -79
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/src/validation.rs +76 -77
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/Makefile +1 -1
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/main.go +42 -29
- exec_sandbox-1.0.1/gvproxy-wrapper/main_test.go +89 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/images/kernel/alpine-virt-aarch64.config +11 -4
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/images/kernel/alpine-virt-x86_64.config +12 -5
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/images/kernel/exec-sandbox.config +109 -22
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/pyproject.toml +19 -8
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/benchmark_density.py +116 -170
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/benchmark_latency.py +99 -118
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/benchmark_optimizer.py +82 -146
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-guest-agent.sh +0 -12
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-images.sh +10 -13
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-initramfs.sh +4 -13
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-kernel.sh +18 -13
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-qcow2.sh +35 -52
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-qemu.sh +6 -2
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/build-tiny-init.sh +0 -12
- exec_sandbox-1.0.1/scripts/build_package_catalogs.py +73 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/ci-resource-monitor.sh +15 -4
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/ci_diagnose.py +16 -8
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/extract-kernel.sh +13 -11
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/extract-vmlinux.sh +5 -2
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/scripts/upgrade-versions.sh +7 -3
- exec_sandbox-1.0.1/src/exec_sandbox/__init__.py +140 -0
- exec_sandbox-1.0.1/src/exec_sandbox/_imports.py +151 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/_logging.py +29 -18
- exec_sandbox-1.0.1/src/exec_sandbox/_version.py +12 -0
- exec_sandbox-1.0.1/src/exec_sandbox/admission.py +1738 -0
- exec_sandbox-1.0.1/src/exec_sandbox/aio_utils.py +136 -0
- exec_sandbox-1.0.1/src/exec_sandbox/asset_downloader.py +500 -0
- exec_sandbox-1.0.1/src/exec_sandbox/assets.py +518 -0
- exec_sandbox-1.0.1/src/exec_sandbox/base_cache_manager.py +287 -0
- exec_sandbox-1.0.1/src/exec_sandbox/cgroup.py +932 -0
- exec_sandbox-1.0.1/src/exec_sandbox/cli.py +1548 -0
- exec_sandbox-1.0.1/src/exec_sandbox/cli_keyring.py +180 -0
- exec_sandbox-1.0.1/src/exec_sandbox/config.py +220 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/constants.py +187 -181
- exec_sandbox-1.0.1/src/exec_sandbox/disk_snapshot_manager.py +1251 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/dns_filter.py +46 -36
- exec_sandbox-1.0.1/src/exec_sandbox/exceptions.py +525 -0
- exec_sandbox-1.0.1/src/exec_sandbox/files/__init__.py +2 -0
- exec_sandbox-1.0.1/src/exec_sandbox/files/disk.py +341 -0
- exec_sandbox-1.0.1/src/exec_sandbox/files/locks.py +439 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/guest_agent_protocol.py +79 -62
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/guest_channel.py +354 -578
- exec_sandbox-1.0.1/src/exec_sandbox/gvproxy.py +394 -0
- exec_sandbox-1.0.1/src/exec_sandbox/hash_utils.py +91 -0
- exec_sandbox-1.0.1/src/exec_sandbox/images.py +242 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/__init__.py +7 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/codec.py +109 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/commit.py +189 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/head.py +121 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/ids.py +51 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/keyring.py +136 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/local_store.py +746 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/manager.py +1069 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/models.py +152 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/pack.py +300 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/s3_store.py +475 -0
- exec_sandbox-1.0.1/src/exec_sandbox/instance/store.py +286 -0
- exec_sandbox-1.0.1/src/exec_sandbox/memory_snapshot_files.py +150 -0
- exec_sandbox-1.0.1/src/exec_sandbox/memory_snapshot_manager.py +751 -0
- exec_sandbox-1.0.1/src/exec_sandbox/migration_client.py +500 -0
- exec_sandbox-1.0.1/src/exec_sandbox/models.py +153 -0
- exec_sandbox-1.0.1/src/exec_sandbox/overlay_pool.py +386 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/package_validator.py +41 -55
- exec_sandbox-1.0.1/src/exec_sandbox/permission_utils.py +1169 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/platform_utils.py +148 -167
- exec_sandbox-1.0.1/src/exec_sandbox/port_forward.py +127 -0
- exec_sandbox-1.0.1/src/exec_sandbox/private_run_dir.py +539 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/process_registry.py +5 -4
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/qemu_cmd.py +441 -213
- exec_sandbox-1.0.1/src/exec_sandbox/qemu_storage_daemon.py +837 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/qemu_vm.py +711 -615
- exec_sandbox-1.0.1/src/exec_sandbox/qmp_client.py +199 -0
- exec_sandbox-1.0.1/src/exec_sandbox/qmp_events.py +253 -0
- exec_sandbox-1.0.1/src/exec_sandbox/resource_cleanup.py +136 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/resources/pypi_top_10k.json +9730 -9730
- exec_sandbox-1.0.1/src/exec_sandbox/s3_parts.py +170 -0
- exec_sandbox-1.0.1/src/exec_sandbox/scheduler.py +980 -0
- exec_sandbox-1.0.1/src/exec_sandbox/session.py +757 -0
- exec_sandbox-1.0.1/src/exec_sandbox/settings.py +104 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/socket_auth.py +14 -30
- exec_sandbox-1.0.1/src/exec_sandbox/subprocess_utils.py +618 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/system_probes.py +416 -249
- exec_sandbox-1.0.1/src/exec_sandbox/validation.py +65 -0
- exec_sandbox-1.0.1/src/exec_sandbox/vm_manager.py +2410 -0
- exec_sandbox-1.0.1/src/exec_sandbox/vm_spec.py +105 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/vm_timing.py +10 -32
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/vm_types.py +0 -5
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/vm_working_directory.py +65 -77
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/warm_vm_pool.py +221 -408
- exec_sandbox-1.0.1/stubs/backports/zstd.pyi +16 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/benchmarks/test_bench_core.py +10 -15
- exec_sandbox-1.0.1/tests/conftest.py +836 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/cpu_helpers.py +16 -35
- exec_sandbox-1.0.1/tests/fixtures/instance/vectors.json +87 -0
- exec_sandbox-1.0.1/tests/instance_fixtures.py +691 -0
- exec_sandbox-1.0.1/tests/instance_support.py +689 -0
- exec_sandbox-1.0.1/tests/keyring_support.py +76 -0
- exec_sandbox-1.0.1/tests/s3_faults.py +547 -0
- exec_sandbox-1.0.1/tests/test_admission.py +4111 -0
- exec_sandbox-1.0.1/tests/test_aio_utils.py +308 -0
- exec_sandbox-1.0.1/tests/test_asset_downloader.py +1169 -0
- exec_sandbox-1.0.1/tests/test_assets.py +732 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_bun_ffi_security.py +29 -35
- exec_sandbox-1.0.1/tests/test_cgroup.py +1285 -0
- exec_sandbox-1.0.1/tests/test_cli.py +3250 -0
- exec_sandbox-1.0.1/tests/test_cli_entry.py +89 -0
- exec_sandbox-1.0.1/tests/test_cli_instances_e2e.py +112 -0
- exec_sandbox-1.0.1/tests/test_cli_keyring.py +436 -0
- exec_sandbox-1.0.1/tests/test_config.py +161 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_consume_stream.py +56 -137
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_dask_compatibility.py +20 -95
- exec_sandbox-1.0.1/tests/test_deadline_diagnostics.py +352 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_device_security.py +439 -1001
- exec_sandbox-1.0.1/tests/test_disk_snapshot_manager.py +2145 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_dns_filter.py +91 -55
- exec_sandbox-1.0.1/tests/test_dns_filtering.py +572 -0
- exec_sandbox-1.0.1/tests/test_dns_resolv_hijack.py +122 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_ech_proxy_behavior.py +64 -85
- exec_sandbox-1.0.1/tests/test_env_var_security.py +149 -0
- exec_sandbox-1.0.1/tests/test_etc_hardening.py +314 -0
- exec_sandbox-1.0.1/tests/test_exceptions.py +275 -0
- exec_sandbox-1.0.1/tests/test_execution_edge_cases.py +1207 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_file_io_buffers.py +32 -123
- exec_sandbox-1.0.1/tests/test_file_io_edge_cases.py +526 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_file_io_integrity.py +23 -98
- exec_sandbox-1.0.1/tests/test_file_io_security.py +195 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_file_io_streaming.py +130 -297
- exec_sandbox-1.0.1/tests/test_files_disk.py +409 -0
- exec_sandbox-1.0.1/tests/test_files_locks.py +774 -0
- exec_sandbox-1.0.1/tests/test_fork_output.py +109 -0
- exec_sandbox-1.0.1/tests/test_fork_stdout.py +270 -0
- exec_sandbox-1.0.1/tests/test_guest_agent_protocol.py +688 -0
- exec_sandbox-1.0.1/tests/test_guest_channel.py +208 -0
- exec_sandbox-1.0.1/tests/test_guest_clock.py +85 -0
- exec_sandbox-1.0.1/tests/test_guest_transport_lossless.py +57 -0
- exec_sandbox-1.0.1/tests/test_gvproxy.py +622 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_image_tools.py +23 -33
- exec_sandbox-1.0.1/tests/test_images.py +258 -0
- exec_sandbox-1.0.1/tests/test_instance_admin.py +306 -0
- exec_sandbox-1.0.1/tests/test_instance_chain.py +1315 -0
- exec_sandbox-1.0.1/tests/test_instance_commit.py +383 -0
- exec_sandbox-1.0.1/tests/test_instance_concurrency.py +275 -0
- exec_sandbox-1.0.1/tests/test_instance_e2e.py +667 -0
- exec_sandbox-1.0.1/tests/test_instance_format.py +455 -0
- exec_sandbox-1.0.1/tests/test_instance_generations.py +70 -0
- exec_sandbox-1.0.1/tests/test_instance_host_facts.py +143 -0
- exec_sandbox-1.0.1/tests/test_instance_lifecycle.py +1238 -0
- exec_sandbox-1.0.1/tests/test_instance_load_shutdown.py +89 -0
- exec_sandbox-1.0.1/tests/test_instance_local_store.py +931 -0
- exec_sandbox-1.0.1/tests/test_instance_matrix.py +144 -0
- exec_sandbox-1.0.1/tests/test_instance_pack.py +361 -0
- exec_sandbox-1.0.1/tests/test_instance_s3_store.py +803 -0
- exec_sandbox-1.0.1/tests/test_instance_settings.py +605 -0
- exec_sandbox-1.0.1/tests/test_instance_store_contract.py +274 -0
- exec_sandbox-1.0.1/tests/test_int_str_digits.py +53 -0
- exec_sandbox-1.0.1/tests/test_js_repl.py +163 -0
- exec_sandbox-1.0.1/tests/test_js_repl_script.py +76 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_kernel_attack_surface.py +177 -328
- exec_sandbox-1.0.1/tests/test_kernel_boot_time.py +35 -0
- exec_sandbox-1.0.1/tests/test_kernel_config.py +60 -0
- exec_sandbox-1.0.1/tests/test_l1_damaged_entry.py +56 -0
- exec_sandbox-1.0.1/tests/test_logging.py +33 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_loopback.py +54 -101
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_memory_leaks.py +192 -211
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_memory_optimization.py +91 -163
- exec_sandbox-1.0.1/tests/test_memory_snapshot_manager.py +2634 -0
- exec_sandbox-1.0.1/tests/test_migration_client.py +1229 -0
- exec_sandbox-1.0.1/tests/test_multiprocessing.py +75 -0
- exec_sandbox-1.0.1/tests/test_nonroot_repl.py +191 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_orphan_vm_cpu.py +72 -93
- exec_sandbox-1.0.1/tests/test_overlay_pool.py +884 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_package_validator.py +155 -180
- exec_sandbox-1.0.1/tests/test_patch_targets.py +437 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_payload_integrity.py +57 -176
- exec_sandbox-1.0.1/tests/test_permission_utils.py +2054 -0
- exec_sandbox-1.0.1/tests/test_pid1_zombie_reaping.py +130 -0
- exec_sandbox-1.0.1/tests/test_platform_gate.py +35 -0
- exec_sandbox-1.0.1/tests/test_platform_utils.py +502 -0
- exec_sandbox-1.0.1/tests/test_port_forward.py +645 -0
- exec_sandbox-1.0.1/tests/test_private_run_dir.py +1170 -0
- exec_sandbox-1.0.1/tests/test_process_registry.py +116 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_psutil_compatibility.py +147 -438
- exec_sandbox-1.0.1/tests/test_python_bytecode.py +29 -0
- exec_sandbox-1.0.1/tests/test_python_repl_script.py +285 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_qemu_attack_surface.py +71 -125
- exec_sandbox-1.0.1/tests/test_qemu_cmd.py +252 -0
- exec_sandbox-1.0.1/tests/test_qemu_sandbox_probe.py +156 -0
- exec_sandbox-1.0.1/tests/test_qemu_storage_daemon.py +1285 -0
- exec_sandbox-1.0.1/tests/test_qemu_vm_guest_wait.py +75 -0
- exec_sandbox-1.0.1/tests/test_qemu_vm_host_disk_full.py +708 -0
- exec_sandbox-1.0.1/tests/test_qemu_vm_identity.py +190 -0
- exec_sandbox-1.0.1/tests/test_qemu_vm_socket_access.py +84 -0
- exec_sandbox-1.0.1/tests/test_qmp_client.py +160 -0
- exec_sandbox-1.0.1/tests/test_qmp_events.py +298 -0
- exec_sandbox-1.0.1/tests/test_repl_namespace.py +49 -0
- exec_sandbox-1.0.1/tests/test_resource_cleanup.py +306 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_rng_l1_snapshot.py +51 -44
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_rng_quality.py +46 -50
- exec_sandbox-1.0.1/tests/test_scheduler.py +2550 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_session.py +228 -413
- exec_sandbox-1.0.1/tests/test_session_guard_and_io.py +2950 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_signal_isolation.py +104 -266
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_socket_auth.py +155 -313
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_speculative_execution.py +53 -105
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_streaming.py +133 -278
- exec_sandbox-1.0.1/tests/test_subprocess_utils.py +966 -0
- exec_sandbox-1.0.1/tests/test_system_probes.py +384 -0
- exec_sandbox-1.0.1/tests/test_validation.py +36 -0
- exec_sandbox-1.0.1/tests/test_vm_capacity.py +334 -0
- exec_sandbox-1.0.1/tests/test_vm_cleanup_ownership.py +344 -0
- exec_sandbox-1.0.1/tests/test_vm_manager.py +7517 -0
- exec_sandbox-1.0.1/tests/test_vm_spec.py +118 -0
- exec_sandbox-1.0.1/tests/test_vm_working_directory.py +458 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_warm_vm_pool.py +830 -733
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/test_wasm_compatibility.py +65 -115
- exec_sandbox-1.0.1/tests/test_write_worker.py +302 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/Cargo.lock +193 -365
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/src/device.rs +5 -5
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/src/main.rs +167 -119
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/src/sys.rs +1 -9
- exec_sandbox-1.0.1/uv.lock +3058 -0
- exec_sandbox-1.0.1/versions.lock +26 -0
- exec_sandbox-0.21.0/.github/runs-on.yml +0 -54
- exec_sandbox-0.21.0/PKG-INFO +0 -942
- exec_sandbox-0.21.0/README.md +0 -886
- exec_sandbox-0.21.0/SECURITY.md +0 -21
- exec_sandbox-0.21.0/guest-agent/src/connection.rs +0 -722
- exec_sandbox-0.21.0/guest-agent/src/file_io.rs +0 -606
- exec_sandbox-0.21.0/guest-agent/src/repl/scripts/python_repl.py +0 -197
- exec_sandbox-0.21.0/scripts/build_package_catalogs.py +0 -133
- exec_sandbox-0.21.0/src/exec_sandbox/__init__.py +0 -181
- exec_sandbox-0.21.0/src/exec_sandbox/_imports.py +0 -22
- exec_sandbox-0.21.0/src/exec_sandbox/admission.py +0 -728
- exec_sandbox-0.21.0/src/exec_sandbox/aio_utils.py +0 -64
- exec_sandbox-0.21.0/src/exec_sandbox/asset_downloader.py +0 -495
- exec_sandbox-0.21.0/src/exec_sandbox/assets.py +0 -603
- exec_sandbox-0.21.0/src/exec_sandbox/balloon_client.py +0 -421
- exec_sandbox-0.21.0/src/exec_sandbox/base_cache_manager.py +0 -168
- exec_sandbox-0.21.0/src/exec_sandbox/cgroup.py +0 -786
- exec_sandbox-0.21.0/src/exec_sandbox/cli.py +0 -1199
- exec_sandbox-0.21.0/src/exec_sandbox/config.py +0 -166
- exec_sandbox-0.21.0/src/exec_sandbox/disk_snapshot_manager.py +0 -867
- exec_sandbox-0.21.0/src/exec_sandbox/exceptions.py +0 -420
- exec_sandbox-0.21.0/src/exec_sandbox/gvproxy.py +0 -272
- exec_sandbox-0.21.0/src/exec_sandbox/hash_utils.py +0 -174
- exec_sandbox-0.21.0/src/exec_sandbox/lock_utils.py +0 -83
- exec_sandbox-0.21.0/src/exec_sandbox/memory_snapshot_manager.py +0 -579
- exec_sandbox-0.21.0/src/exec_sandbox/migration_client.py +0 -364
- exec_sandbox-0.21.0/src/exec_sandbox/models.py +0 -173
- exec_sandbox-0.21.0/src/exec_sandbox/overlay_pool.py +0 -530
- exec_sandbox-0.21.0/src/exec_sandbox/permission_utils.py +0 -657
- exec_sandbox-0.21.0/src/exec_sandbox/port_forward.py +0 -123
- exec_sandbox-0.21.0/src/exec_sandbox/qemu_storage_daemon.py +0 -746
- exec_sandbox-0.21.0/src/exec_sandbox/qmp_exchange.py +0 -92
- exec_sandbox-0.21.0/src/exec_sandbox/resource_cleanup.py +0 -322
- exec_sandbox-0.21.0/src/exec_sandbox/scheduler.py +0 -870
- exec_sandbox-0.21.0/src/exec_sandbox/session.py +0 -504
- exec_sandbox-0.21.0/src/exec_sandbox/settings.py +0 -74
- exec_sandbox-0.21.0/src/exec_sandbox/subprocess_utils.py +0 -340
- exec_sandbox-0.21.0/src/exec_sandbox/validation.py +0 -55
- exec_sandbox-0.21.0/src/exec_sandbox/vm_manager.py +0 -1982
- exec_sandbox-0.21.0/stubs/backports/zstd.pyi +0 -8
- exec_sandbox-0.21.0/tests/conftest.py +0 -602
- exec_sandbox-0.21.0/tests/test_admission.py +0 -1319
- exec_sandbox-0.21.0/tests/test_aio_utils.py +0 -124
- exec_sandbox-0.21.0/tests/test_asset_downloader.py +0 -953
- exec_sandbox-0.21.0/tests/test_assets.py +0 -1322
- exec_sandbox-0.21.0/tests/test_asyncio_cleanup.py +0 -382
- exec_sandbox-0.21.0/tests/test_balloon_client.py +0 -226
- exec_sandbox-0.21.0/tests/test_balloon_integration.py +0 -633
- exec_sandbox-0.21.0/tests/test_cgroup.py +0 -1378
- exec_sandbox-0.21.0/tests/test_cli.py +0 -2095
- exec_sandbox-0.21.0/tests/test_config.py +0 -152
- exec_sandbox-0.21.0/tests/test_disk_snapshot_manager.py +0 -1257
- exec_sandbox-0.21.0/tests/test_dns_filtering.py +0 -920
- exec_sandbox-0.21.0/tests/test_dns_resolv_hijack.py +0 -161
- exec_sandbox-0.21.0/tests/test_env_var_security.py +0 -308
- exec_sandbox-0.21.0/tests/test_etc_hardening.py +0 -520
- exec_sandbox-0.21.0/tests/test_execution_edge_cases.py +0 -1838
- exec_sandbox-0.21.0/tests/test_file_io_edge_cases.py +0 -677
- exec_sandbox-0.21.0/tests/test_file_io_security.py +0 -136
- exec_sandbox-0.21.0/tests/test_fork_output.py +0 -353
- exec_sandbox-0.21.0/tests/test_fork_stdout.py +0 -445
- exec_sandbox-0.21.0/tests/test_guest_agent_integration.py +0 -219
- exec_sandbox-0.21.0/tests/test_guest_agent_protocol.py +0 -1619
- exec_sandbox-0.21.0/tests/test_int_str_digits.py +0 -282
- exec_sandbox-0.21.0/tests/test_memory_snapshot_manager.py +0 -1541
- exec_sandbox-0.21.0/tests/test_migration_client.py +0 -778
- exec_sandbox-0.21.0/tests/test_multiprocessing.py +0 -70
- exec_sandbox-0.21.0/tests/test_nonroot_repl.py +0 -317
- exec_sandbox-0.21.0/tests/test_overlay_pool.py +0 -986
- exec_sandbox-0.21.0/tests/test_permission_utils.py +0 -842
- exec_sandbox-0.21.0/tests/test_pid1_zombie_reaping.py +0 -291
- exec_sandbox-0.21.0/tests/test_platform_utils.py +0 -572
- exec_sandbox-0.21.0/tests/test_port_forward.py +0 -800
- exec_sandbox-0.21.0/tests/test_process_registry.py +0 -128
- exec_sandbox-0.21.0/tests/test_qemu_storage_daemon.py +0 -889
- exec_sandbox-0.21.0/tests/test_resource_cleanup.py +0 -510
- exec_sandbox-0.21.0/tests/test_scheduler.py +0 -2226
- exec_sandbox-0.21.0/tests/test_session_guard_and_io.py +0 -2635
- exec_sandbox-0.21.0/tests/test_subprocess_utils.py +0 -580
- exec_sandbox-0.21.0/tests/test_vm_capacity.py +0 -234
- exec_sandbox-0.21.0/tests/test_vm_manager.py +0 -5883
- exec_sandbox-0.21.0/tests/test_vm_working_directory.py +0 -395
- exec_sandbox-0.21.0/tests/test_write_worker.py +0 -324
- exec_sandbox-0.21.0/uv.lock +0 -2522
- exec_sandbox-0.21.0/versions.lock +0 -26
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.editorconfig +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/build-guest-agent/action.yml +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/build-gvproxy-wrapper/action.yml +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/build-tiny-init/action.yml +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/build-vm-images/action.yml +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/.github/actions/setup-vm-infra/action.yml +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/LICENSE +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/.gitignore +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/Cargo.toml +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/guest-agent/Makefile +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/.gitignore +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/go.mod +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/gvproxy-wrapper/go.sum +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/py.typed +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/src/exec_sandbox/resources/npm_top_10k.json +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/stubs/backports/__init__.pyi +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/__init__.py +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tests/benchmarks/__init__.py +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/.gitignore +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/Cargo.toml +0 -0
- {exec_sandbox-0.21.0 → exec_sandbox-1.0.1}/tiny-init/Makefile +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#:schema https://developers.openai.com/codex/config-schema.json
|
|
2
|
+
|
|
3
|
+
approval_policy = "on-request"
|
|
4
|
+
approvals_reviewer = "auto_review"
|
|
5
|
+
model_reasoning_effort = "max"
|
|
6
|
+
plan_mode_reasoning_effort = "max"
|
|
7
|
+
project_doc_fallback_filenames = ["CLAUDE.md"]
|
|
8
|
+
sandbox_mode = "danger-full-access"
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# RunsOn runner profiles — diversify eligible EC2 capacity.
|
|
2
|
+
# Docs: https://runs-on.com/docs/runners/labels/
|
|
3
|
+
# https://runs-on.com/docs/runners/custom/
|
|
4
|
+
#
|
|
5
|
+
# Family entries are prefixes: c9 admits c9g, c9gd, and other matching variants.
|
|
6
|
+
# The image selects the architecture; CPU, RAM, regional offerings, and capacity
|
|
7
|
+
# further constrain selection. Listing a generation does not force its use.
|
|
8
|
+
#
|
|
9
|
+
# The 2–4 GiB per vCPU band avoids tiny burstable instances and excludes R-series
|
|
10
|
+
# shapes at these CPU counts. Job labels can override profile defaults.
|
|
11
|
+
# Family-list order does not prioritize newer generations.
|
|
12
|
+
|
|
13
|
+
runners:
|
|
14
|
+
# ARM64 (Graviton) — compute + general-purpose + burstable
|
|
15
|
+
1cpu-linux-arm64: &arm64
|
|
16
|
+
cpu: 1
|
|
17
|
+
ram: [2, 4]
|
|
18
|
+
image: ubuntu24-full-arm64
|
|
19
|
+
family: ["c7", "m7", "r7", "c8", "m8", "t4g", "c9", "m9", "r9"]
|
|
20
|
+
|
|
21
|
+
2cpu-linux-arm64:
|
|
22
|
+
<<: *arm64
|
|
23
|
+
cpu: 2
|
|
24
|
+
ram: [4, 8]
|
|
25
|
+
|
|
26
|
+
4cpu-linux-arm64:
|
|
27
|
+
<<: *arm64
|
|
28
|
+
cpu: 4
|
|
29
|
+
ram: [8, 16]
|
|
30
|
+
|
|
31
|
+
8cpu-linux-arm64:
|
|
32
|
+
<<: *arm64
|
|
33
|
+
cpu: 8
|
|
34
|
+
ram: [16, 32]
|
|
35
|
+
|
|
36
|
+
# x64 — Intel + AMD
|
|
37
|
+
# /nested-virt further restricts selection to supported x64 instance types;
|
|
38
|
+
# the profile's CPU/RAM filters still apply.
|
|
39
|
+
# https://runs-on.com/docs/runners/capabilities/nested-virtualization/
|
|
40
|
+
1cpu-linux-x64: &x64
|
|
41
|
+
cpu: 1
|
|
42
|
+
ram: [2, 4]
|
|
43
|
+
image: ubuntu24-full-x64
|
|
44
|
+
family: ["c7", "m7", "r7", "c8", "m8", "r8", "c9", "m9", "r9"]
|
|
45
|
+
|
|
46
|
+
2cpu-linux-x64:
|
|
47
|
+
<<: *x64
|
|
48
|
+
cpu: 2
|
|
49
|
+
ram: [4, 8]
|
|
50
|
+
|
|
51
|
+
4cpu-linux-x64:
|
|
52
|
+
<<: *x64
|
|
53
|
+
cpu: 4
|
|
54
|
+
ram: [8, 16]
|
|
55
|
+
|
|
56
|
+
8cpu-linux-x64:
|
|
57
|
+
<<: *x64
|
|
58
|
+
cpu: 8
|
|
59
|
+
ram: [16, 32]
|
|
@@ -136,7 +136,7 @@ jobs:
|
|
|
136
136
|
path: dist/
|
|
137
137
|
|
|
138
138
|
- name: Publish to TestPyPI
|
|
139
|
-
uses: pypa/gh-action-pypi-publish@
|
|
139
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
140
140
|
with:
|
|
141
141
|
repository-url: https://test.pypi.org/legacy/
|
|
142
142
|
attestations: true
|
|
@@ -160,7 +160,7 @@ jobs:
|
|
|
160
160
|
path: dist/
|
|
161
161
|
|
|
162
162
|
- name: Publish to PyPI
|
|
163
|
-
uses: pypa/gh-action-pypi-publish@
|
|
163
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
164
164
|
with:
|
|
165
165
|
attestations: true
|
|
166
166
|
print-hash: true
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
See @README for project overview and @Makefile for available commands for this project.
|
|
4
4
|
|
|
5
|
+
Always use ASD-STE100 Simplified Technical English in responses to the user.
|
|
6
|
+
|
|
7
|
+
## Writing — Orwell’s six rules
|
|
8
|
+
|
|
9
|
+
For prose—not code, identifiers, commands, exact quotations, or error text—follow George Orwell’s rules from “Politics and the English Language”:
|
|
10
|
+
|
|
11
|
+
1. Avoid stock metaphors, similes, and other figures of speech.
|
|
12
|
+
2. Prefer a short, familiar word when it is equally precise.
|
|
13
|
+
3. Cut every word that adds no meaning.
|
|
14
|
+
4. Prefer active voice when it is clearer.
|
|
15
|
+
5. Prefer everyday English to foreign phrases, needless scientific terms, or jargon; keep exact technical terms when precision requires them.
|
|
16
|
+
6. Break any rule before making the prose unclear, inaccurate, unsafe, or unnatural.
|
|
17
|
+
|
|
5
18
|
## Code search — use `seek`
|
|
6
19
|
|
|
7
20
|
Prefer `seek` over grep/ripgrep for code search. It returns BM25-ranked results with context and symbol tags.
|
|
@@ -58,7 +58,7 @@ install-seek:
|
|
|
58
58
|
@curl -sSfL https://raw.githubusercontent.com/dualeai/seek/main/install.sh | sh
|
|
59
59
|
|
|
60
60
|
install-deps:
|
|
61
|
-
uv sync --extra dev --extra s3
|
|
61
|
+
uv sync --extra dev --extra s3 --extra cli
|
|
62
62
|
|
|
63
63
|
# Build QEMU from source (Linux CI only — Ubuntu 24.04 ships 8.2.2 with ARM64 TCG bugs)
|
|
64
64
|
# Usage: make build-qemu [QEMU_PREFIX=~/qemu-build]
|
|
@@ -100,7 +100,7 @@ build:
|
|
|
100
100
|
@echo "🔨 Building QEMU images (arch=$(IMAGE_ARCH), variant=$(IMAGE_VARIANT))..."
|
|
101
101
|
./scripts/build-images.sh $$(echo "$(IMAGE_ARCH)" | sed 's/arm64/aarch64/') $(IMAGE_VARIANT)
|
|
102
102
|
|
|
103
|
-
#
|
|
103
|
+
# Alias of build.
|
|
104
104
|
build-images: build
|
|
105
105
|
|
|
106
106
|
# ============================================================================
|
|
@@ -118,13 +118,14 @@ test-static:
|
|
|
118
118
|
uv run -m vulture src/ scripts/ --min-confidence 80
|
|
119
119
|
shellcheck scripts/*.sh cicd/*.sh
|
|
120
120
|
$(MAKE) test-kernel-hash-sync
|
|
121
|
+
$(MAKE) test-package
|
|
121
122
|
$(MAKE) --directory guest-agent test-static
|
|
122
123
|
$(MAKE) --directory tiny-init test-static
|
|
123
124
|
$(MAKE) --directory gvproxy-wrapper test-static
|
|
124
125
|
|
|
125
126
|
# Kernel hash functions must stay byte-identical between the two scripts:
|
|
126
127
|
# extract-kernel.sh writes the .hash sidecar that build-kernel.sh reads —
|
|
127
|
-
# divergence makes extract-kernel serve a stale vmlinux
|
|
128
|
+
# divergence makes extract-kernel.sh serve a stale vmlinuz/vmlinux silently.
|
|
128
129
|
test-kernel-hash-sync:
|
|
129
130
|
@a=$$(mktemp) && b=$$(mktemp) && \
|
|
130
131
|
sed -n '/^compute_hash() {/,/^}/p' scripts/build-kernel.sh | tail -n +2 > "$$a" && \
|
|
@@ -132,6 +133,13 @@ test-kernel-hash-sync:
|
|
|
132
133
|
{ diff "$$a" "$$b" || { echo "ERROR: compute_hash (build-kernel.sh) and compute_kernel_hash (extract-kernel.sh) diverged"; rm -f "$$a" "$$b"; exit 1; }; } && \
|
|
133
134
|
rm -f "$$a" "$$b"
|
|
134
135
|
|
|
136
|
+
# Build the sdist and wheel into a temporary folder, then run the twine check of
|
|
137
|
+
# release.yml (Verify build artifacts): a build-backend or metadata-version change
|
|
138
|
+
# fails here, before the merge, not at release time.
|
|
139
|
+
test-package:
|
|
140
|
+
@out=$$(mktemp -d) && \
|
|
141
|
+
{ uv build --out-dir "$$out" && uv run twine check "$$out"/*; rc=$$?; rm -rf "$$out"; exit $$rc; }
|
|
142
|
+
|
|
135
143
|
# CI resource monitor — wraps a command with background metrics collection.
|
|
136
144
|
# Runs in a single shell: start monitor, run command, kill monitor, propagate exit code.
|
|
137
145
|
# Usage: $(call ci-monitor-run,<command>)
|
|
@@ -200,8 +208,9 @@ bench-pool:
|
|
|
200
208
|
uv run python scripts/benchmark_latency.py -n 10 --pool $(BENCH_POOL)
|
|
201
209
|
|
|
202
210
|
# 2D overcommit optimizer — finds Pareto-optimal (CPU_OC, MEM_OC) configs.
|
|
203
|
-
# Fires N VMs per combo across a 4x4 grid, ranks by
|
|
204
|
-
# (
|
|
211
|
+
# Fires N VMs per combo across a 4x4 grid, ranks by latency efficiency
|
|
212
|
+
# (10^6 / geometric mean of the admission, setup and exec p95), and reports
|
|
213
|
+
# the efficient frontier.
|
|
205
214
|
# Run on a KVM-capable host for production-representative results.
|
|
206
215
|
# Usage: make bench-optimizer [N_VMS=200]
|
|
207
216
|
bench-optimizer:
|
|
@@ -210,7 +219,7 @@ bench-optimizer:
|
|
|
210
219
|
# VM density benchmark — measures host memory cost per VM.
|
|
211
220
|
# Boots N VMs, holds them alive, samples host memory to compute marginal cost.
|
|
212
221
|
# Usage: make bench-density [N_VMS=10]
|
|
213
|
-
# make bench-density-sweep # sweep N=5,10
|
|
222
|
+
# make bench-density-sweep # sweep N=3,5,10 VMs
|
|
214
223
|
bench-density:
|
|
215
224
|
uv run --script scripts/benchmark_density.py $(if $(N_VMS),-n $(N_VMS),) --workload
|
|
216
225
|
|