text
stringclasses
371 values
ParserElement.enablePackrat()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ::test_frozen_input_hash_and_agent_visible_identity_boundary
PASSED ::test_zero_count_prefix_reference_is_finite
FAILED ::test_every_public_trajectory_prefix_matches_independent_posterior - ...
FAILED ::test_checkpoint_densities_match_trajectories_and_independent_posteriors
FAILED ::test_summary_design_and_metadata_crosscheck_to_artifacts - Assertion...
FAILED ::test_machine_readable_convergence_and_phi_bound_sensitivity - Assert...
FAILED ::test_report_and_figure_are_quantitative_and_nonblank - AssertionErro...
FAILED ::test_reusable_script_solves_multiple_unpredictable_hidden_inputs - A...
FAILED ::test_adversarial_regressions_reject_shortcuts - AssertionError: 0.10...
=================== 7 failed, 2 passed, 14 warnings in 7.04s ===================
============================= test session starts ==============================
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3
rootdir: /app
configfile: ../dev/null
plugins: json-ctrf-0.3.5
collecting ... collected 9 items
::test_frozen_input_hash_and_agent_visible_identity_boundary FAILED [ 11%]
::test_every_public_trajectory_prefix_matches_independent_posterior FAILED [ 22%]
::test_checkpoint_densities_match_trajectories_and_independent_posteriors FAILED [ 33%]
::test_summary_design_and_metadata_crosscheck_to_artifacts FAILED [ 44%]
::test_machine_readable_convergence_and_phi_bound_sensitivity FAILED [ 55%]
::test_report_and_figure_are_quantitative_and_nonblank FAILED [ 66%]
::test_zero_count_prefix_reference_is_finite PASSED [ 77%]
::test_reusable_script_solves_multiple_unpredictable_hidden_inputs ERROR [ 88%]
::test_adversarial_regressions_reject_shortcuts ERROR [100%]
==================================== ERRORS ====================================
_ ERROR at setup of test_reusable_script_solves_multiple_unpredictable_hidden_inputs _
tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7286c7d643b0>, _basetemp=PosixPath('/tmp/pytest-of-root/pytest-0'), _retention_count=3, _retention_policy='all')
@pytest.fixture(scope="module")
def hidden_outputs(tmp_path_factory: pytest.TempPathFactory) -> list[tuple[dict[str, Any], Path, Path]]:
root = tmp_path_factory.mktemp("hidden-cases")
outputs = []
for case_index in range(2):
seed = secrets.randbits(64)
payload = synthetic_hidden_payload(seed, case_index)
hidden_input = root / f"hidden_input_{case_index}.json"
hidden_output = root / f"hidden_output_{case_index}"
hidden_input.write_text(json.dumps(payload), encoding="utf-8")
environment = dict(os.environ)
environment["MPLCONFIGDIR"] = str(root / f"mpl_{case_index}")
> subprocess.run(
[sys.executable, str(SOLUTION / "analyze.py"), "--input", str(hidden_input), "--output", str(hidden_output)],
check=True,
timeout=300,
env=environment,
)
/verifier/test_outputs.py:655:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = 300, check = True
popenargs = (['/usr/local/bin/python3', '/root/solution/analyze.py', '--input', '/tmp/pytest-of-root/pytest-0/hidden-cases0/hidden_input_0.json', '--output', '/tmp/pytest-of-root/pytest-0/hidden-cases0/hidden_output_0'],)
kwargs = {'env': {'CELERY_CONFIG_MODULE': '', 'COVERAGE_PROCESS_START': '', 'DAYTONA_ORGANIZATION_ID': 'dce9c185-8dc7-4346-8a6f-0a37c99db49c', 'DAYTONA_OTEL_ENDPOINT': 'https://otel-collector.app.daytona.io', ...}}
process = <Popen: returncode: 2 args: ['/usr/local/bin/python3', '/root/solution/analy...>
stdout = None, stderr = None, retcode = 2
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE