NFC Rename renderType to convertType #450
Test report - 3.10 ❌
❌ test-results.xml
153 tests were completed in 36s with 103 passed, 48 failed and 2 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 103✔️ | 48❌ | 2✖️ | 36s |
❌ pytest
tests.test_build_js.test_build_js.Tests
✔️ test_autofunction_minimal
✔️ test_autofunction_explicit
✔️ test_autofunction_short
✔️ test_autofunction_long
✔️ test_autofunction_typedef
✔️ test_autofunction_callback
✔️ test_autofunction_example
✔️ test_autofunction_destructured_params
✔️ test_autofunction_defaults_in_doclet
✔️ test_autofunction_defaults_in_code
✔️ test_autofunction_variadic
✔️ test_autofunction_deprecated
✔️ test_autofunction_see
✔️ test_autofunction_static
✔️ test_autoclass
✔️ test_autoclass_members
✔️ test_autoclass_members_list
✔️ test_autoclass_members_list_star
✔️ test_autoclass_alphabetical
✔️ test_autoclass_private_members
✔️ test_autoclass_exclude_members
✔️ test_autoclass_example
✔️ test_autoclass_deprecated
✔️ test_autoclass_see
✔️ test_autoattribute
✔️ test_autoattribute_example
✔️ test_autoattribute_deprecated
✔️ test_autoattribute_see
✔️ test_getter_setter
✔️ test_no_shadowing
✔️ test_restructuredtext_injection
✔️ test_union_types
✔️ test_field_list_unwrapping
tests.test_build_ts.test_build_ts.TestTextBuilder
✔️ test_autoclass_constructor
✔️ test_autoclass_order
✔️ test_autoclass_star_order
✔️ test_abstract_extends_and_implements
✔️ test_exported_from
✔️ test_constructorless_class
✔️ test_optional_members
✔️ test_deprecated
✔️ test_example
✔️ test_async
✔️ test_symbol
✔️ test_predicate
✔️ test_get_set
✔️ test_inherited_docs
✔️ test_automodule
tests.test_build_ts.test_build_ts.TestHtmlBuilder
✔️ test_extends_links
✔️ test_implements_links
✔️ test_xrefs
✔️ test_sphinx_link_in_description
✔️ test_sphinx_js_type_class
✔️ test_autosummary
tests.test_common_mark.test_common_mark.Tests
✔️ test_build_success
tests.test_dot_dot_paths.test_dot_dot_paths.Tests
✔️ test_dot_dot
tests.test_incremental
✔️ test_incremental_js
✖️ test_incremental_ts
tests.test_init
✔️ test_relative_path_root
tests.test_ir
✔️ test_default
✔️ test_missing_default
✔️ test_ir_serialization[x0]
✔️ test_ir_serialization[x1]
✔️ test_ir_serialization[x2]
✔️ test_ir_serialization[x3]
✔️ test_ir_serialization[x4]
✔️ test_ir_serialization[x5]
✔️ test_ir_serialization[x6]
✔️ test_ir_serialization[x7]
✔️ test_ir_serialization[x8]
tests.test_jsdoc_analysis.test_jsdoc
✔️ test_doclet_full_path
tests.test_jsdoc_analysis.test_jsdoc.TestFunction
✔️ test_top_level_and_function
tests.test_jsdoc_analysis.test_jsdoc.TestClass
✔️ test_class
tests.test_parsers
✔️ test_escapes
✔️ test_relative_dirs
tests.test_paths
✔️ test_global
✔️ test_node_modules1
✔️ test_node_modules2
✔️ test_env1
✔️ test_env2
✔️ test_err
✔️ test_global_install
tests.test_renderers
✔️ test_render_description
✔️ test_func_render_simple
✔️ test_func_render_shortnames
✔️ test_func_render_flags
✔️ test_func_render_description
✔️ test_func_render_params
✔️ test_func_render_returns
✔️ test_func_render_type_params
✔️ test_render_xref
✔️ test_func_render_param_type
✔️ test_func_render_param_options
✔️ test_func_render_param_exceptions
✔️ test_func_render_callouts
✔️ test_all
✔️ test_examples
tests.test_suffix_tree
✔️ test_things
✔️ test_full_path
✔️ test_terminal_insertion
✔️ test_ambiguous_even_if_full_path
✔️ test_ambiguous_paths_reported
✔️ test_value_ambiguity
tests.test_testing
✔️ test_dict_where
tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments
❌ test_class
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_instance_property
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_static_property
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_interface_property
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_weird_name
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_getter
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_setter
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_method
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_static_method
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_constructor
cls = <class 'test_typedoc_analysis.TestPathSegments'>
❌ test_function
cls = <class 'test_typedoc_analysis.TestPathSegments'>
✖️ test_relative_paths
❌ test_namespaced_var
cls = <class 'test_typedoc_analysis.TestPathSegments'>
tests.test_typedoc_analysis.test_typedoc_analysis.TestConvertNode
❌ test_class1
cls = <class 'test_typedoc_analysis.TestConvertNode'>
❌ test_interface
cls = <class 'test_typedoc_analysis.TestConvertNode'>
❌ test_interface_function_member
cls = <class 'test_typedoc_analysis.TestConvertNode'>
❌ test_variable
cls = <class 'test_typedoc_analysis.TestConvertNode'>
❌ test_function
cls = <class 'test_typedoc_analysis.TestConvertNode'>
❌ test_constructor
cls = <class 'test_typedoc_analysis.TestConvertNode'>
❌ test_properties
cls = <class 'test_typedoc_analysis.TestConvertNode'>
❌ test_getter
cls = <class 'test_typedoc_analysis.TestConvertNode'>
❌ test_setter
cls = <class 'test_typedoc_analysis.TestConvertNode'>
tests.test_typedoc_analysis.test_typedoc_analysis.TestTypeName
❌ test_basic
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_named_interface
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_interface_readonly_member
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_array
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_literal_types
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_unions
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_intersection
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_generic_function
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_generic_member
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_constrained_by_interface
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_constrained_by_key
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_class_constrained
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_constrained_by_constructor
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_utility_types
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_internal_symbol_reference
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_constrained_by_property
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_optional_property
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_code_in_description
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_destructured
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_funcarg
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_namedtuplearg
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_query
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_type_operator
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_private_type_alias1
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_private_type_alias2
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_hidden_type_top_level
cls = <class 'test_typedoc_analysis.TestTypeName'>
❌ test_hidden_type_member
cls = <class 'test_typedoc_analysis.TestTypeName'>
Annotations
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_class
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_instance_property
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_static_property
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_interface_property
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_weird_name
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_getter
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_setter
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_method
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_static_method
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_constructor
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError
Check failure on line 0 in test-results.xml
github-actions / Test report - 3.10
pytest ► tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments ► test_function
Failed test found in:
test-results.xml
Error:
cls = <class 'test_typedoc_analysis.TestPathSegments'>
Raw output
cls = <class 'test_typedoc_analysis.TestPathSegments'>
@classmethod
def setup_class(cls):
"""Run the TS analyzer over the TypeDoc output."""
cls._source_dir = join(cls.this_dir(), "source")
from pathlib import Path
config_file = Path(__file__).parent / "sphinxJsConfig.ts"
> [cls.json, cls.extra_data] = typedoc_output(
abs_source_paths=[join(cls._source_dir, file) for file in cls.files],
base_dir=cls._source_dir,
ts_sphinx_js_config=str(config_file),
typedoc_config_path=None,
tsconfig_path="tsconfig.json",
sphinx_conf_dir=cls._source_dir,
)
tests/testing.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sphinx_js/typedoc.py:93: in typedoc_output
subprocess.run(command.make(), check=True, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', ...],)
kwargs = {'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'ANDROID_HOME': '/usr/local/lib/android/sdk', ...}}
process = <Popen: returncode: 1 args: ['npx', 'tsx', '--import', '/home/runner/work/sp...>
stdout = None, stderr = None, retcode = 1
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 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
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 '['npx', 'tsx', '--import', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts', '--sphinxJsConfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/sphinxJsConfig.ts', '--entryPointStrategy', 'expand', '--tsconfig', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/tsconfig.json', '--basePath', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source', '--json', '/tmp/tmpqoyfauu6', '/home/runner/work/sphinx-js-fork/sphinx-js-fork/tests/test_typedoc_analysis/source/subdir/pathSegments.ts']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/subprocess.py:526: CalledProcessError