Skip to content

Fix doctests in matrix_cmr_sparse.pyx and Refactor child parent indices #2205

Fix doctests in matrix_cmr_sparse.pyx and Refactor child parent indices

Fix doctests in matrix_cmr_sparse.pyx and Refactor child parent indices #2205

Triggered via pull request March 18, 2024 15:11
@xuluzexuluze
synchronize #33
xuluze:cmr
Status Failure
Total duration 4h 6m 11s
Artifacts 1

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 4 warnings
Failed example:: src/sage/modules/free_module.py#L518
Failed example:: Got: Traceback (most recent call last): File "/sage/src/sage/doctest/forker.py", line 712, in _run self.compile_and_execute(example, compiler, test.globs) File "/sage/src/sage/doctest/forker.py", line 1147, in compile_and_execute exec(compiled, globs) File "<doctest sage.modules.free_module.?[39]>", line 1, in <module> FreeModule(ZZ, rank=Integer(3), basis_keys=['c','d']) File "/sage/src/sage/modules/free_module.py", line 554, in FreeModule raise ValueError(f'inconsistent basis_keys: should be of cardinality {rank}, ' ValueError: inconsistent basis_keys: should be of cardinality 3, got ['c', 'd']
Failed example:: src/sage/geometry/fan_morphism.py#L272
Failed example:: Got: Failure in _test_pickling: Traceback (most recent call last): File "/sage/src/sage/misc/sage_unittest.py", line 297, in run test_method(tester=tester) File "sage/structure/sage_object.pyx", line 680, in sage.structure.sage_object.SageObject._test_pickling tester.assertEqual(loads(dumps(self)), self) File "sage/misc/persist.pyx", line 333, in sage.misc.persist.dumps ans = obj.dumps(compress) File "sage/structure/sage_object.pyx", line 509, in sage.structure.sage_object.SageObject.dumps return _base_dumps(self, compress=compress) File "sage/misc/persist.pyx", line 304, in sage.misc.persist._base_dumps gherkin = SagePickler.dumps(obj) File "sage/misc/persist.pyx", line 829, in sage.misc.persist.SagePickler.dumps pickler.dump(obj) _pickle.PicklingError: Can't pickle <function Matrix_cmr_chr_sparse.is_cographic at 0x7129157abf60>: attribute lookup Matrix_cmr_chr_sparse.is_cographic on __main__ failed ------------------------------------------------------------ The following tests failed: _test_pickling
Failed example:: src/sage/modules/matrix_morphism.py#L117
Failed example:: Exception raised: Traceback (most recent call last): File "/sage/src/sage/doctest/forker.py", line 712, in _run self.compile_and_execute(example, compiler, test.globs) File "/sage/src/sage/doctest/forker.py", line 1147, in compile_and_execute exec(compiled, globs) File "<doctest sage.modules.matrix_morphism.MatrixMorphism_abstract._richcmp_[7]>", line 1, in <module> psi == Integer(5) * id ~~~~~~~~~~~^~~~ File "sage/rings/integer.pyx", line 1960, in sage.rings.integer.Integer.__mul__ return coercion_model.bin_op(left, right, operator.mul) File "sage/structure/coerce.pyx", line 1230, in sage.structure.coerce.CoercionModel.bin_op xy = self.canonical_coercion(x, y) File "sage/structure/coerce.pyx", line 1342, in sage.structure.coerce.CoercionModel.canonical_coercion x_elt = (<Map>x_map)._call_(x) File "sage/categories/morphism.pyx", line 609, in sage.categories.morphism.SetMorphism._call_ return self._function(x) File "/sage/src/sage/categories/unital_algebras.py", line 71, in from_base_ring return self.one()._lmul_(r) ^^^^^^^^^^^^^^^^^ File "sage/structure/element.pyx", line 489, in sage.structure.element.Element.__getattr__ return self.getattr_from_category(name) File "sage/structure/element.pyx", line 502, in sage.structure.element.Element.getattr_from_category return getattr_from_other_class(self, cls, name) File "sage/cpython/getattr.pyx", line 362, in sage.cpython.getattr.getattr_from_other_class raise AttributeError(dummy_error_message) AttributeError: 'FreeModuleMorphism' object has no attribute '_lmul_'
Failed example:: src/sage/modules/matrix_morphism.py#L119
Failed example:: Exception raised: Traceback (most recent call last): File "/sage/src/sage/doctest/forker.py", line 712, in _run self.compile_and_execute(example, compiler, test.globs) File "/sage/src/sage/doctest/forker.py", line 1147, in compile_and_execute exec(compiled, globs) File "<doctest sage.modules.matrix_morphism.MatrixMorphism_abstract._richcmp_[8]>", line 1, in <module> psi == Integer(5) # no coercion ^^^^^^^^^^^^^^^^^ File "sage/structure/element.pyx", line 1098, in sage.structure.element.Element.__richcmp__ return coercion_model.richcmp(self, other, op) File "sage/structure/coerce.pyx", line 2023, in sage.structure.coerce.CoercionModel.richcmp x, y = self.canonical_coercion(x, y) File "sage/structure/coerce.pyx", line 1346, in sage.structure.coerce.CoercionModel.canonical_coercion y_elt = (<Map>y_map)._call_(y) File "sage/categories/morphism.pyx", line 609, in sage.categories.morphism.SetMorphism._call_ return self._function(x) File "/sage/src/sage/categories/unital_algebras.py", line 71, in from_base_ring return self.one()._lmul_(r) ^^^^^^^^^^^^^^^^^ File "sage/structure/element.pyx", line 489, in sage.structure.element.Element.__getattr__ return self.getattr_from_category(name) File "sage/structure/element.pyx", line 502, in sage.structure.element.Element.getattr_from_category return getattr_from_other_class(self, cls, name) File "sage/cpython/getattr.pyx", line 362, in sage.cpython.getattr.getattr_from_other_class raise AttributeError(dummy_error_message) AttributeError: 'FreeModuleMorphism' object has no attribute '_lmul_'
Failed example:: src/sage/modules/matrix_morphism.py#L454
Failed example:: Exception raised: Traceback (most recent call last): File "/sage/src/sage/doctest/forker.py", line 712, in _run self.compile_and_execute(example, compiler, test.globs) File "/sage/src/sage/doctest/forker.py", line 1147, in compile_and_execute exec(compiled, globs) File "<doctest sage.modules.matrix_morphism.MatrixMorphism_abstract.__rmul__[1]>", line 1, in <module> Integer(2)*phi ~~~~~~~~~~^~~~ File "sage/rings/integer.pyx", line 1960, in sage.rings.integer.Integer.__mul__ return coercion_model.bin_op(left, right, operator.mul) File "sage/structure/coerce.pyx", line 1230, in sage.structure.coerce.CoercionModel.bin_op xy = self.canonical_coercion(x, y) File "sage/structure/coerce.pyx", line 1342, in sage.structure.coerce.CoercionModel.canonical_coercion x_elt = (<Map>x_map)._call_(x) File "sage/categories/morphism.pyx", line 609, in sage.categories.morphism.SetMorphism._call_ return self._function(x) File "/sage/src/sage/categories/unital_algebras.py", line 71, in from_base_ring return self.one()._lmul_(r) ^^^^^^^^^^^^^^^^^ File "sage/structure/element.pyx", line 489, in sage.structure.element.Element.__getattr__ return self.getattr_from_category(name) File "sage/structure/element.pyx", line 502, in sage.structure.element.Element.getattr_from_category return getattr_from_other_class(self, cls, name) File "sage/cpython/getattr.pyx", line 362, in sage.cpython.getattr.getattr_from_other_class raise AttributeError(dummy_error_message) AttributeError: 'FreeModuleMorphism' object has no attribute '_lmul_'
Failed example:: src/sage/modules/with_basis/morphism.py#L174
Failed example:: Got: Failure in _test_pickling: Traceback (most recent call last): File "/sage/src/sage/misc/sage_unittest.py", line 297, in run test_method(tester=tester) File "sage/structure/sage_object.pyx", line 680, in sage.structure.sage_object.SageObject._test_pickling tester.assertEqual(loads(dumps(self)), self) File "sage/misc/persist.pyx", line 333, in sage.misc.persist.dumps ans = obj.dumps(compress) File "sage/structure/sage_object.pyx", line 509, in sage.structure.sage_object.SageObject.dumps return _base_dumps(self, compress=compress) File "sage/misc/persist.pyx", line 304, in sage.misc.persist._base_dumps gherkin = SagePickler.dumps(obj) File "sage/misc/persist.pyx", line 829, in sage.misc.persist.SagePickler.dumps pickler.dump(obj) _pickle.PicklingError: Can't pickle <function Matrix_cmr_chr_sparse.is_cographic at 0x712915ccf7e0>: attribute lookup Matrix_cmr_chr_sparse.is_cographic on __main__ failed ------------------------------------------------------------ The following tests failed: _test_pickling
Failed example:: src/sage/modules/with_basis/morphism.py#L261
Failed example:: Got: Failure in _test_pickling: Traceback (most recent call last): File "/sage/src/sage/misc/sage_unittest.py", line 297, in run test_method(tester=tester) File "sage/structure/sage_object.pyx", line 680, in sage.structure.sage_object.SageObject._test_pickling tester.assertEqual(loads(dumps(self)), self) File "sage/misc/persist.pyx", line 333, in sage.misc.persist.dumps ans = obj.dumps(compress) File "sage/structure/sage_object.pyx", line 509, in sage.structure.sage_object.SageObject.dumps return _base_dumps(self, compress=compress) File "sage/misc/persist.pyx", line 304, in sage.misc.persist._base_dumps gherkin = SagePickler.dumps(obj) File "sage/misc/persist.pyx", line 829, in sage.misc.persist.SagePickler.dumps pickler.dump(obj) _pickle.PicklingError: Can't pickle <function Matrix_cmr_chr_sparse.is_cographic at 0x712915d1aa20>: attribute lookup Matrix_cmr_chr_sparse.is_cographic on __main__ failed ------------------------------------------------------------ The following tests failed: _test_pickling
Failed example:: src/sage/modules/with_basis/morphism.py#L307
Failed example:: Got: Failure in _test_pickling: Traceback (most recent call last): File "/sage/src/sage/misc/sage_unittest.py", line 297, in run test_method(tester=tester) File "sage/structure/sage_object.pyx", line 680, in sage.structure.sage_object.SageObject._test_pickling tester.assertEqual(loads(dumps(self)), self) File "sage/misc/persist.pyx", line 333, in sage.misc.persist.dumps ans = obj.dumps(compress) File "sage/structure/sage_object.pyx", line 509, in sage.structure.sage_object.SageObject.dumps return _base_dumps(self, compress=compress) File "sage/misc/persist.pyx", line 304, in sage.misc.persist._base_dumps gherkin = SagePickler.dumps(obj) File "sage/misc/persist.pyx", line 829, in sage.misc.persist.SagePickler.dumps pickler.dump(obj) _pickle.PicklingError: Can't pickle <function Matrix_cmr_chr_sparse.is_cographic at 0x712915d1a840>: attribute lookup Matrix_cmr_chr_sparse.is_cographic on __main__ failed ------------------------------------------------------------ The following tests failed: _test_pickling
Failed example:: src/sage/modules/with_basis/morphism.py#L647
Failed example:: Got: Failure in _test_pickling: Traceback (most recent call last): File "/sage/src/sage/misc/sage_unittest.py", line 297, in run test_method(tester=tester) File "sage/structure/sage_object.pyx", line 680, in sage.structure.sage_object.SageObject._test_pickling tester.assertEqual(loads(dumps(self)), self) File "sage/misc/persist.pyx", line 333, in sage.misc.persist.dumps ans = obj.dumps(compress) File "sage/structure/sage_object.pyx", line 509, in sage.structure.sage_object.SageObject.dumps return _base_dumps(self, compress=compress) File "sage/misc/persist.pyx", line 304, in sage.misc.persist._base_dumps gherkin = SagePickler.dumps(obj) File "sage/misc/persist.pyx", line 829, in sage.misc.persist.SagePickler.dumps pickler.dump(obj) _pickle.PicklingError: Can't pickle <function Matrix_cmr_chr_sparse.is_cographic at 0x712915ccec00>: attribute lookup Matrix_cmr_chr_sparse.is_cographic on __main__ failed ------------------------------------------------------------ The following tests failed: _test_pickling
Failed example:: src/sage/modules/with_basis/morphism.py#L1234
Failed example:: Got: Failure in _test_pickling: Traceback (most recent call last): File "/sage/src/sage/misc/sage_unittest.py", line 297, in run test_method(tester=tester) File "sage/structure/sage_object.pyx", line 680, in sage.structure.sage_object.SageObject._test_pickling tester.assertEqual(loads(dumps(self)), self) File "sage/misc/persist.pyx", line 333, in sage.misc.persist.dumps ans = obj.dumps(compress) File "sage/structure/sage_object.pyx", line 509, in sage.structure.sage_object.SageObject.dumps return _base_dumps(self, compress=compress) File "sage/misc/persist.pyx", line 304, in sage.misc.persist._base_dumps gherkin = SagePickler.dumps(obj) File "sage/misc/persist.pyx", line 829, in sage.misc.persist.SagePickler.dumps pickler.dump(obj) _pickle.PicklingError: Can't pickle <function Matrix_cmr_chr_sparse.is_cographic at 0x712915a02840>: attribute lookup Matrix_cmr_chr_sparse.is_cographic on __main__ failed ------------------------------------------------------------ The following tests failed: _test_pickling
build
Process completed with exit code 1.
get_ci_fixes
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/download-artifact@v3, jakebailey/pyright-action@v1, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Warning: Variable 'b' referenced here was set only in doctest marked '# needs numpy': src/sage/matrix/matrix1.pyx#L729
Variable 'b' referenced here was set only in doctest marked '# needs numpy'
Warning: Variable 'pi_def' referenced here was set only in doctest marked '# needs sage.libs.pari sage.symbolic': src/sage/interfaces/gp.py#L799
Variable 'pi_def' referenced here was set only in doctest marked '# needs sage.libs.pari sage.symbolic'

Artifacts

Produced during runtime
Name Size
upstream Expired
21 Bytes