aloof-appointment-30987
12/21/2022, 10:31 PMpytest
or pants test
as well as inside docker using nektos/act
. It succeeds when run on Github CI (cloud) if via pytest
but it fails when run via pants test
on GitHub CI (cloud).
I'm trying to save the output of the function under test to a file so I can inspect what is being produced. The file is saved inside the sandbox but I can't seem to find documentation explaining how to make that available to the CI host for upload.enough-analyst-54434
12/21/2022, 10:47 PMdist/
when running ./pants test --report
?: https://www.pantsbuild.org/docs/reference-test#report
IIRC the junit xml capture includes full stdout and stderr of each test.aloof-appointment-30987
12/21/2022, 11:01 PMpants
in the cloud. It succeeds locally via pants
I'm trying to leave some breadcrumbs to determine whyenough-analyst-54434
12/22/2022, 12:01 AMpants.toml
use subprocess-environment to export an env var containing "%(build root)s"
, and then use that env var in the test to write out a file under the build root. https://www.pantsbuild.org/docs/reference-subprocess-environment#env_varsaloof-appointment-30987
12/22/2022, 12:08 AMenough-analyst-54434
12/22/2022, 12:15 AMaloof-appointment-30987
12/22/2022, 3:12 PM