From ebfc1901fac56ca17e7b6ca1b47106383f8f47d2 Mon Sep 17 00:00:00 2001 From: Keith Valin Date: Fri, 30 Jan 2026 16:26:15 -0500 Subject: [PATCH 1/3] feat: add --no_pip_packages and --no_system_packages options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add two new command-line options to control package installation: - --no_pip_packages: Skip installation of pip packages - --no_system_packages: Skip installation of system packages (dnf/apt/etc) These options complement the existing --no_packages flag and provide more granular control over which package types are installed. Changes: - burden: Add global variables, argument parsing, and ansible vars output - test_generic ansible role: Pass flags to test execution script - Updated usage documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../roles/test_generic/tasks/main.yml | 2 ++ bin/burden | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/ansible_roles/roles/test_generic/tasks/main.yml b/ansible_roles/roles/test_generic/tasks/main.yml index eeea58cb..990e2d7c 100644 --- a/ansible_roles/roles/test_generic/tasks/main.yml +++ b/ansible_roles/roles/test_generic/tasks/main.yml @@ -80,6 +80,8 @@ --sysname "{{ config_info.host_or_cloud_inst }}" --sys_type {{ config_info.system_type }} {{ "--no_pkg_install" if config_info.do_not_install_packages else "" }} + {{ "--no_pip_packages" if config_info.do_not_install_pip_packages else "" }} + {{ "--no_system_packages" if config_info.do_not_install_system_packages else "" }} {{ config_info.use_pcp }} {{ test_data.test_specific }} diff --git a/bin/burden b/bin/burden index f3f4af2e..2db8e91e 100755 --- a/bin/burden +++ b/bin/burden @@ -223,6 +223,8 @@ gl_cloud_disk_type="" gl_zathras_specific_vals="config/zathras_specific_vals_def" gl_zathras_specific_vals_set=0 gl_no_packages=0 +gl_no_pip_packages=0 +gl_no_system_packages=0 gl_bootc_mode=0 gl_cpu_type_request="none" gl_run_file="" @@ -1851,6 +1853,8 @@ create_ansible_options() echo " "cloud_placement: $gl_cloud_placement >> ansible_vars_main.yml echo " "run_label: ${gl_run_prefix}_${gl_os_vendor} >> ansible_vars_main.yml echo " "do_not_install_packages: ${gl_no_packages} >> ansible_vars_main.yml + echo " "do_not_install_pip_packages: ${gl_no_pip_packages} >> ansible_vars_main.yml + echo " "do_not_install_system_packages: ${gl_no_system_packages} >> ansible_vars_main.yml echo " "bootc_mode: ${gl_bootc_mode} >> ansible_vars_main.yml echo " "error_repo_errors: ${gl_error_repo_errors} >> ansible_vars_main.yml spot_pricing=0 @@ -3323,6 +3327,8 @@ usage() echo " --mode : Operating mode. Use 'image' for bootc-based hosts (skips packages, uses safe upload paths)." echo " --no_clean_up: Do not cleanup at the end of the test" echo " --no_packages: Do not install any packages. The default is no." + echo " --no_pip_packages: Do not install pip packages. The default is no." + echo " --no_system_packages: Do not install system packages (via dnf/apt/etc). The default is no." echo " --no_spot_recover: Do not recover from a spot system going away." echo " --package_name : Use this set of packages to override the default in the test config." echo " file instead of the default. Default format package name _pkg, new name _pkg_." @@ -3531,6 +3537,16 @@ set_general_value() gl_no_packages=1 shift_by=1 ;; + --no_pip_packages) + echo "$1" >> $gl_cli_supplied_options + gl_no_pip_packages=1 + shift_by=1 + ;; + --no_system_packages) + echo "$1" >> $gl_cli_supplied_options + gl_no_system_packages=1 + shift_by=1 + ;; --mode) echo "$1 $2" >> $gl_cli_supplied_options if [[ "$2" == "image" ]]; then @@ -3840,6 +3856,8 @@ grab_cli_data() "ignore_repo_errors" "no_clean_up" "no_packages" + "no_pip_packages" + "no_system_packages" "no_spot_recover" "persistent_log" "preflight_check" From 3eec7f7595563aa3aa8f7e3af3326023e3094bdb Mon Sep 17 00:00:00 2001 From: Keith Valin Date: Mon, 2 Feb 2026 13:52:43 -0500 Subject: [PATCH 2/3] fix: Explicitly disable sys and pip packages with `--no_packages` --- bin/burden | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/burden b/bin/burden index 2db8e91e..f7e55d06 100755 --- a/bin/burden +++ b/bin/burden @@ -3535,6 +3535,8 @@ set_general_value() --no_packages) echo "$1" >> $gl_cli_supplied_options gl_no_packages=1 + gl_no_pip_packages=1 + gl_no_system_packages=1 shift_by=1 ;; --no_pip_packages) From 159eae6cdad566845237d0810c81ca0937efcca5 Mon Sep 17 00:00:00 2001 From: Keith Valin Date: Mon, 2 Feb 2026 14:28:09 -0500 Subject: [PATCH 3/3] doc: Add documentation on the --no_*_packages options --- docs/command_line_reference.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/command_line_reference.md b/docs/command_line_reference.md index 4fcb46f3..8520d911 100644 --- a/docs/command_line_reference.md +++ b/docs/command_line_reference.md @@ -52,6 +52,12 @@ Do not cleanup at the end of the test. ### --no_packages Do not install any packages, default is no. +### --no_pip_packages +Do not install python pip packages, default is no. + +### --no_system_packages +Do not install system packages via dnf/apt/zypper/etc, default is no. + ### --no_spot_recover Do not recover from a spot system going away.