text
stringclasses
371 values
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/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']' returned non-zero exit status 2.
/usr/local/lib/python3.12/subprocess.py:571: CalledProcessError
=================================== FAILURES ===================================
__________ test_frozen_input_hash_and_agent_visible_identity_boundary __________
def test_frozen_input_hash_and_agent_visible_identity_boundary() -> None:
> assert (SOLUTION / "analyze.py").is_file(), "missing reusable analyze.py"
E AssertionError: missing reusable analyze.py
E assert False
E + where False = is_file()
E + where is_file = (PosixPath('/root/solution') / 'analyze.py').is_file
/verifier/test_outputs.py:515: AssertionError
______ test_every_public_trajectory_prefix_matches_independent_posterior _______
def test_every_public_trajectory_prefix_matches_independent_posterior() -> None:
> validate_trajectory(load_payload(), SOLUTION)
/verifier/test_outputs.py:530:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/verifier/test_outputs.py:189: in validate_trajectory
raw_rows = load_trajectory(solution)
^^^^^^^^^^^^^^^^^^^^^^^^^
/verifier/test_outputs.py:97: in load_trajectory
return load_csv(solution / "posterior_trajectories.csv", TRAJECTORY_COLUMNS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
path = PosixPath('/root/solution/posterior_trajectories.csv')
columns = ['run_id', 'strategy', 'shot', 'frequency_mhz', 'zeta', 'theta_mean', ...]
def load_csv(path: Path, columns: list[str]) -> list[dict[str, str]]:
> assert path.is_file(), f"missing {path.name}"
E AssertionError: missing posterior_trajectories.csv
E assert False
E + where False = is_file()
E + where is_file = PosixPath('/root/solution/posterior_trajectories.csv').is_file
/verifier/test_outputs.py:89: AssertionError
___ test_checkpoint_densities_match_trajectories_and_independent_posteriors ____
def test_checkpoint_densities_match_trajectories_and_independent_posteriors() -> None:
payload = load_payload()
> rows = [numeric_trajectory_row(row) for row in load_trajectory()]
^^^^^^^^^^^^^^^^^
/verifier/test_outputs.py:535:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/verifier/test_outputs.py:97: in load_trajectory
return load_csv(solution / "posterior_trajectories.csv", TRAJECTORY_COLUMNS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
path = PosixPath('/root/solution/posterior_trajectories.csv')
columns = ['run_id', 'strategy', 'shot', 'frequency_mhz', 'zeta', 'theta_mean', ...]
def load_csv(path: Path, columns: list[str]) -> list[dict[str, str]]:
> assert path.is_file(), f"missing {path.name}"
E AssertionError: missing posterior_trajectories.csv
E assert False
E + where False = is_file()
E + where is_file = PosixPath('/root/solution/posterior_trajectories.csv').is_file