sparse-intern-71089
11/15/2022, 1:36 PMbrave-zoo-30030
11/15/2022, 1:37 PMbillowy-army-68599
brave-zoo-30030
11/15/2022, 3:38 PMdef test_auth0():
> with TestInfrastructure(
test_id=test_run_id, pulumi_program=pulumi_program, delete_on_exit=***
) as stack:
tests_end_to_end/test_auth0.py:49:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests_end_to_end/pulumi_context.py:54: in __init__
self.stack = auto.create_or_select_stack(
/home/runner/.cache/pypoetry/virtualenvs/data-engineering-pulumi-components-toMpBVEW-py3.8/lib/python3.8/site-packages/pulumi/automation/_local_workspace.py:550: in create_or_select_stack
return _inline_source_stack_helper(stack_name, program, project_name, Stack.create_or_select, opts) # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/data-engineering-pulumi-components-toMpBVEW-py3.8/lib/python3.8/site-packages/pulumi/automation/_local_workspace.py:577: in _inline_source_stack_helper
return init_fn(stack_name, ws)
/home/runner/.cache/pypoetry/virtualenvs/data-engineering-pulumi-components-toMpBVEW-py3.8/lib/python3.8/site-packages/pulumi/automation/_stack.py:163: in create_or_select
return Stack(stack_name, workspace, StackInitMode.CREATE_OR_SELECT)
/home/runner/.cache/pypoetry/virtualenvs/data-engineering-pulumi-components-toMpBVEW-py3.8/lib/python3.8/site-packages/pulumi/automation/_stack.py:189: in __init__
workspace.create_stack(name)
/home/runner/.cache/pypoetry/virtualenvs/data-engineering-pulumi-components-toMpBVEW-py3.8/lib/python3.8/site-packages/pulumi/automation/_local_workspace.py:272: in create_stack
self._run_pulumi_cmd_sync(args)
/home/runner/.cache/pypoetry/virtualenvs/data-engineering-pulumi-components-toMpBVEW-py3.8/lib/python3.8/site-packages/pulumi/automation/_local_workspace.py:383: in _run_pulumi_cmd_sync
return _run_pulumi_cmd(args, self.work_dir, envs, on_output)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = ['stack', 'init', 'data-eng-uploader-dev-int-test', '--non-interactive']
cwd = '/tmp/automation-bfp5qcme', additional_env = {}, on_output = None
def _run_pulumi_cmd(
args: List[str],
cwd: str,
additional_env: Mapping[str, str],
on_output: Optional[OnOutput] = None,
) -> CommandResult:
# All commands should be run in non-interactive mode.
# This causes commands to fail rather than prompting for input (and thus hanging indefinitely).
if "--non-interactive" not in args:
args.append("--non-interactive")
env = {**os.environ, **additional_env}
cmd = ["pulumi"]
cmd.extend(args)
stdout_chunks: List[str] = []
with tempfile.TemporaryFile() as stderr_file:
with subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=stderr_file, cwd=cwd, env=env
) as process:
assert process.stdout is not None
while ***:
output = process.stdout.readline().decode(encoding="utf-8")
if output == "" and process.poll() is not None:
break
if output:
text = output.rstrip()
if on_output:
on_output(text)
stdout_chunks.append(text)
code = process.returncode
stderr_file.seek(0)
stderr_contents = stderr_file.read().decode("utf-8")
result = CommandResult(
stderr=stderr_contents, stdout="\n".join(stdout_chunks), code=code
)
if code != 0:
> raise create_command_error(result)
E pulumi.automation.errors.CommandError:
E code: 255
E stdout:
E stderr: warning: A new version of Pulumi is available. To upgrade from version '3.40.2' to '3.46.1', visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
E error: could not get cloud url: could not load current project: 3 errors occurred:
E * #/runtime: oneOf failed
E * #/runtime: expected string, but got object
E * #/runtime/options: expected object, but got null
/home/runner/.cache/pypoetry/virtualenvs/data-engineering-pulumi-components-toMpBVEW-py3.8/lib/python3.8/site-packages/pulumi/automation/_cmd.py:78: CommandError
=========================== short test summary info ============================
FAILED tests_end_to_end/test_auth0.py::test_auth0 - pulumi.automation.errors....
========================= 1 failed, 1 warning in 0.86s =========================