atex 1.2__tar.gz → 1.3__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.
- {atex-1.2 → atex-1.3}/PKG-INFO +1 -1
- {atex-1.2 → atex-1.3}/atex/executor/fmf/testcontrol.py +4 -1
- {atex-1.2 → atex-1.3}/atex/orchestrator/adhoc/mixins.py +12 -8
- {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/api.py +17 -8
- {atex-1.2 → atex-1.3}/atex/util/subprocess.py +5 -1
- {atex-1.2 → atex-1.3}/pyproject.toml +1 -1
- {atex-1.2 → atex-1.3}/.claude/CLAUDE.md +0 -0
- {atex-1.2 → atex-1.3}/.editorconfig +0 -0
- {atex-1.2 → atex-1.3}/.github/scripts/pdoc/patch_pdoc.sh +0 -0
- {atex-1.2 → atex-1.3}/.github/scripts/pdoc/post_process_repo.sh +0 -0
- {atex-1.2 → atex-1.3}/.github/scripts/pdoc/prepare_templates.sh +0 -0
- {atex-1.2 → atex-1.3}/.github/workflows/pages.yaml +0 -0
- {atex-1.2 → atex-1.3}/.github/workflows/self-tests.yaml +0 -0
- {atex-1.2 → atex-1.3}/.github/workflows/style.yaml +0 -0
- {atex-1.2 → atex-1.3}/.gitignore +0 -0
- {atex-1.2 → atex-1.3}/API_RULES.md +0 -0
- {atex-1.2 → atex-1.3}/COPYING.txt +0 -0
- {atex-1.2 → atex-1.3}/DEVEL.md +0 -0
- {atex-1.2 → atex-1.3}/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/jsonl/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/jsonl/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/jsonl/jsonl.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/multi/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/multi/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/multi/multi.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/reportportal/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/reportportal/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/reportportal/api.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/reportportal/reportportal.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/yamld/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/yamld/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/aggregator/yamld/yamld.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/fmf.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/reportportal.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/shvirt/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/shvirt/common.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/shvirt/install.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/shvirt/reserve.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/testingfarm.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/virt/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/virt/install.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/virt/kickstart.py +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/virt/ks.cfg +0 -0
- {atex-1.2 → atex-1.3}/atex/cli/virt/reserve.py +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/local/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/local/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/local/local.py +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/podman/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/podman/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/podman/podman.py +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/ssh/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/ssh/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/connection/ssh/ssh.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/beakerlib/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/beakerlib/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/beakerlib/beakerlib.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/command/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/command/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/command/command.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/RESULTS.md +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/TEST_CONTROL.md +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/discover.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/duration.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/fmf.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/metadata.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/reporter.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/scripts.py +0 -0
- {atex-1.2 → atex-1.3}/atex/executor/fmf/test-wrapper +0 -0
- {atex-1.2 → atex-1.3}/atex/orchestrator/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/orchestrator/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/orchestrator/adhoc/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/orchestrator/adhoc/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/orchestrator/adhoc/adhoc.py +0 -0
- {atex-1.2 → atex-1.3}/atex/orchestrator/simple/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/orchestrator/simple/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/orchestrator/simple/simple.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/anyconn/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/anyconn/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/anyconn/anyconn.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/local/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/local/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/local/local.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/podman/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/podman/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/podman/podman.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/podman/systemd.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/podman/utils.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/PROTOCOL.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/SERVER.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/atex-virt-helper +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/shvirt.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/tempvirt/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/tempvirt/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/tempvirt/tempvirt.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/tempvirt/utils.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/cleaning.sh +0 -0
- {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/testingfarm.py +0 -0
- {atex-1.2 → atex-1.3}/atex/util/README.md +0 -0
- {atex-1.2 → atex-1.3}/atex/util/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/atex/util/dedent.py +0 -0
- {atex-1.2 → atex-1.3}/atex/util/loggers.py +0 -0
- {atex-1.2 → atex-1.3}/atex/util/named_mapping.py +0 -0
- {atex-1.2 → atex-1.3}/atex/util/nonblock_line_reader.py +0 -0
- {atex-1.2 → atex-1.3}/atex/util/path.py +0 -0
- {atex-1.2 → atex-1.3}/atex/util/ssh.py +0 -0
- {atex-1.2 → atex-1.3}/atex/util/threads.py +0 -0
- {atex-1.2 → atex-1.3}/tests/aggregator/conftest.py +0 -0
- {atex-1.2 → atex-1.3}/tests/aggregator/shared.py +0 -0
- {atex-1.2 → atex-1.3}/tests/aggregator/test_jsonl.py +0 -0
- {atex-1.2 → atex-1.3}/tests/aggregator/test_jsonl_gzip.py +0 -0
- {atex-1.2 → atex-1.3}/tests/aggregator/test_jsonl_lzma.py +0 -0
- {atex-1.2 → atex-1.3}/tests/aggregator/test_multi.py +0 -0
- {atex-1.2 → atex-1.3}/tests/aggregator/test_yamld.py +0 -0
- {atex-1.2 → atex-1.3}/tests/conftest.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/conftest.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/libraries/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/libraries/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/libraries/rlimport.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/libraries/rlimport_all.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/reboot.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_fail.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_noend.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_rlrun.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/results/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/results/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/results/report_result.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/results/submit_log.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/sanity/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/sanity/fallback_status.sh +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/sanity/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/test_libraries.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/test_reboot.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/test_results.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/beakerlib/test_sanity.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/command/conftest.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/command/test_command.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/conftest.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/file_in_fmfdir +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/subdir/file_in_subdir +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/subdir/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/extlib/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/extlib/extfunc/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/extlib/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/mylib/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/subdir/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/env/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/env/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/adjusted.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/disabled.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/environment.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/filters.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/inherit/child/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/inherit/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/manual.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/nontest.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/plans/filtered.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/plans/with_env.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/simple/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/story.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/virtual.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/misc/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/misc/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/pkgs/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/pkgs/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/pty/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/pty/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/reboot/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/reboot/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/results/.fmf/version +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/results/functions +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/results/main.fmf +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/results/randfile +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_cwd.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_discover.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_env.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_metadata.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_misc.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_pkgs.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_pty.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_reboot.py +0 -0
- {atex-1.2 → atex-1.3}/tests/executor/fmf/test_results.py +0 -0
- {atex-1.2 → atex-1.3}/tests/orchestrator/conftest.py +0 -0
- {atex-1.2 → atex-1.3}/tests/orchestrator/test_adhoc.py +0 -0
- {atex-1.2 → atex-1.3}/tests/provisioner/shared.py +0 -0
- {atex-1.2 → atex-1.3}/tests/provisioner/test_anyconn.py +0 -0
- {atex-1.2 → atex-1.3}/tests/provisioner/test_local.py +0 -0
- {atex-1.2 → atex-1.3}/tests/provisioner/test_podman.py +0 -0
- {atex-1.2 → atex-1.3}/tests/provisioner/test_podman_systemd.py +0 -0
- {atex-1.2 → atex-1.3}/tests/provisioner/test_tempvirt.py +0 -0
- {atex-1.2 → atex-1.3}/tests/provisioner/test_testingfarm.py +0 -0
- {atex-1.2 → atex-1.3}/tests/testutil/__init__.py +0 -0
- {atex-1.2 → atex-1.3}/tests/testutil/timeout.py +0 -0
{atex-1.2 → atex-1.3}/PKG-INFO
RENAMED
|
@@ -188,7 +188,10 @@ class TestControl:
|
|
|
188
188
|
if written == 0:
|
|
189
189
|
raise BadControlError("EOF when reading data")
|
|
190
190
|
file_length -= written
|
|
191
|
-
yield
|
|
191
|
+
# yield only if there is still data left to be read next,
|
|
192
|
+
# fall through to .report() if we already read everything
|
|
193
|
+
if file_length > 0:
|
|
194
|
+
yield
|
|
192
195
|
|
|
193
196
|
self.logger.debug("file recv ended")
|
|
194
197
|
|
|
@@ -69,16 +69,20 @@ def FMFPriorityMixin(fmf_tests): # noqa: N802
|
|
|
69
69
|
def priority(name):
|
|
70
70
|
return fmf_tests.data[name].get("extra-priority", 0)
|
|
71
71
|
|
|
72
|
-
# this will be >0 if there are higher-than-0 priority tests,
|
|
73
|
-
# and <0 if there are no 0-priority tests left
|
|
74
|
-
# - in either case, we want the highest priority
|
|
75
72
|
best = max(to_run, key=priority)
|
|
76
|
-
|
|
77
|
-
return best
|
|
73
|
+
highest_prio = priority(best)
|
|
78
74
|
|
|
79
|
-
#
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
# tests with a positive prio run first; pick highest-prio one
|
|
76
|
+
if highest_prio > 0:
|
|
77
|
+
return best
|
|
78
|
+
# only zero or lower prio left, delegate any zero-prio in orig order
|
|
79
|
+
# - these must not contain non-zero-prio tests, those run after
|
|
80
|
+
elif highest_prio == 0:
|
|
81
|
+
zero_prio = [name for name in to_run if priority(name) == 0]
|
|
82
|
+
return super().next_test(zero_prio, previous)
|
|
83
|
+
# only negative priorities remain; pick highest-prio one
|
|
84
|
+
else:
|
|
85
|
+
return best
|
|
82
86
|
|
|
83
87
|
return FMFPriorityMixin
|
|
84
88
|
|
|
@@ -670,23 +670,32 @@ class Reserve:
|
|
|
670
670
|
# (it will be failing to login for a while, until the reserve test
|
|
671
671
|
# installs our ssh pubkey into authorized_keys)
|
|
672
672
|
ssh_cmd = (
|
|
673
|
-
"ssh", "-q", "-i", ssh_key.absolute(),
|
|
673
|
+
"ssh", "-q", "-i", ssh_key.absolute(),
|
|
674
674
|
"-oStrictHostKeyChecking=no", "-oUserKnownHostsFile=/dev/null",
|
|
675
|
-
"-oBatchMode=yes",
|
|
675
|
+
"-oBatchMode=yes",
|
|
676
|
+
f"{ssh_user}@{ssh_host}",
|
|
676
677
|
)
|
|
677
678
|
while True:
|
|
678
679
|
time.sleep(1)
|
|
679
680
|
self.request.assert_alive()
|
|
680
681
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
682
|
+
self.logger.info(f"request {self.request.id} trying ssh {ssh_user}@{ssh_host}")
|
|
683
|
+
try:
|
|
684
|
+
proc = subprocess.run(
|
|
685
|
+
(*ssh_cmd, "exit 123"),
|
|
686
|
+
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
|
|
687
|
+
# don't get stuck in KEX after TCP is already established
|
|
688
|
+
timeout=300,
|
|
689
|
+
)
|
|
690
|
+
except subprocess.TimeoutExpired:
|
|
691
|
+
pass
|
|
692
|
+
else:
|
|
693
|
+
if proc.returncode == 123:
|
|
694
|
+
break
|
|
687
695
|
|
|
688
696
|
# run OS cleaning script (if requested)
|
|
689
697
|
if self._os_cleaning:
|
|
698
|
+
self.logger.info(f"request {self.request.id} doing os_cleaning")
|
|
690
699
|
util.subprocess_log(
|
|
691
700
|
(*ssh_cmd, "bash"),
|
|
692
701
|
logger=self.logger,
|
|
@@ -42,7 +42,11 @@ def subprocess_stream(cmd, *, stream="stdout", check=False, input=None, **kwargs
|
|
|
42
42
|
proc.stdin.write(input)
|
|
43
43
|
except BrokenPipeError:
|
|
44
44
|
pass
|
|
45
|
-
|
|
45
|
+
# TextIOWrapper.close() may still try to write buffered data
|
|
46
|
+
try:
|
|
47
|
+
proc.stdin.close()
|
|
48
|
+
except BrokenPipeError:
|
|
49
|
+
pass
|
|
46
50
|
line_stream = getattr(proc, stream)
|
|
47
51
|
for line in line_stream:
|
|
48
52
|
yield line.rstrip("\n")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atex-1.2 → atex-1.3}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atex-1.2 → atex-1.3}/DEVEL.md
RENAMED
|
File without changes
|
{atex-1.2 → atex-1.3}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|