From dbcba15856464cfe7a565f73fc64e160805894bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 16:50:21 +0000 Subject: [PATCH 1/2] Initial plan From 4f7a76180e1a9ccb3913dc116b6772ad725a8f31 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 16:52:53 +0000 Subject: [PATCH 2/2] Fix CI: replace {homedir}/tmp with {envtmpdir} and {toxworkdir} in tox.ini Agent-Logs-Url: https://github.com/mitre/atomic/sessions/31ec9e8d-352a-4354-ba16-118f3c6f26d5 Co-authored-by: deacon-mp <61169193+deacon-mp@users.noreply.github.com> --- tox.ini | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/tox.ini b/tox.ini index ce5c3be..49d2a6d 100644 --- a/tox.ini +++ b/tox.ini @@ -26,17 +26,19 @@ deps = pytest-aiohttp coverage codecov -changedir = {homedir}/tmp +setenv = + COVERAGE_FILE = {toxworkdir}/.coverage +changedir = {envtmpdir} commands = - /usr/bin/git clone https://github.com/mitre/caldera.git --recursive {homedir}/tmp - /bin/rm -rf {homedir}/tmp/plugins/atomic - python -m pip install -r {homedir}/tmp/requirements.txt - /usr/bin/cp -R {toxinidir} {homedir}/tmp/plugins/atomic - coverage run -p -m pytest --tb=short --rootdir={homedir}/tmp -Werror plugins/atomic/tests + git clone https://github.com/mitre/caldera.git --recursive {envtmpdir} + rm -rf {envtmpdir}/plugins/atomic + python -m pip install -r {envtmpdir}/requirements.txt + cp -R {toxinidir} {envtmpdir}/plugins/atomic + coverage run -p -m pytest --tb=short --rootdir={envtmpdir} -Werror plugins/atomic/tests allowlist_externals = - /usr/bin/sudo * - /usr/bin/git * - /usr/bin/cp * + git + rm + cp [testenv:py38] description = run tests @@ -47,23 +49,25 @@ deps = pytest-aiohttp coverage codecov -changedir = {homedir}/tmp +setenv = + COVERAGE_FILE = {toxworkdir}/.coverage +changedir = {envtmpdir} commands = - /usr/bin/git clone https://github.com/mitre/caldera.git --recursive {homedir}/tmp - /bin/rm -rf {homedir}/tmp/plugins/atomic - python -m pip install -r {homedir}/tmp/requirements.txt - /usr/bin/cp -R {toxinidir} {homedir}/tmp/plugins/atomic - coverage run -p -m pytest --tb=short --rootdir={homedir}/tmp {homedir}/tmp/plugins/atomic/tests + git clone https://github.com/mitre/caldera.git --recursive {envtmpdir} + rm -rf {envtmpdir}/plugins/atomic + python -m pip install -r {envtmpdir}/requirements.txt + cp -R {toxinidir} {envtmpdir}/plugins/atomic + coverage run -p -m pytest --tb=short --rootdir={envtmpdir} {envtmpdir}/plugins/atomic/tests allowlist_externals = - /usr/bin/sudo * - /usr/bin/git * - /usr/bin/cp * + git + rm + cp [testenv:coverage] deps = coverage skip_install = true -changedir = {homedir}/tmp +changedir = {toxworkdir} commands = coverage combine coverage html @@ -74,7 +78,7 @@ deps = coveralls coverage skip_install = true -changedir = {homedir}/tmp +changedir = {toxworkdir} commands = coverage combine coverage xml