tests failing with nixos 22.11 (Python 3.10?) #207

Closed
opened 2022-12-01 13:12:42 +08:00 by sb10q · 3 comments
Owner

======================================================================
FAIL: test_tuple (artiq.test.coredevice.test_embedding.AlignmentTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/test/coredevice/test_embedding.py", line 556, in test_tuple
    self.create(_Alignment).run()
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/language/core.py", line 54, in run_on_core
    return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/core.py", line 140, in run
    self._run_compiled(kernel_library, embedding_map, symbolizer, demangler)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/core.py", line 130, in _run_compiled
    self.comm.serve(embedding_map, symbolizer, demangler)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/comm_kernel.py", line 716, in serve
    self._serve_exception(embedding_map, symbolizer, demangler)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/comm_kernel.py", line 698, in _serve_exception
    raise python_exn
AssertionError: AssertionError

======================================================================
FAIL: test_list_mixed_tuple (artiq.test.coredevice.test_embedding.RoundtripTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/test/coredevice/test_embedding.py", line 84, in test_list_mixed_tuple
    self.assertRoundtrip([(0, 1.0, 0), (1, 1.5, 2), (2, 1.9, 4)])
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/test/coredevice/test_embedding.py", line 24, in assertRoundtrip
    exp.roundtrip(obj, callback)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/language/core.py", line 54, in run_on_core
    return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/core.py", line 140, in run
    self._run_compiled(kernel_library, embedding_map, symbolizer, demangler)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/core.py", line 130, in _run_compiled
    self.comm.serve(embedding_map, symbolizer, demangler)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/comm_kernel.py", line 716, in serve
    self._serve_exception(embedding_map, symbolizer, demangler)
  File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/comm_kernel.py", line 698, in _serve_exception
    raise python_exn
AssertionError: Lists differ: [(0, 1.0, 0), (1, 1.5, 2), (2, 1.9, 4)] != [(0, 1.0, 0), (3, 4.66839074017e-313, 0), (1073217536, 1.0609978956e-313, 2)]

First differing element 1:
(1, 1.5, 2)
(3, 4.66839074017e-313, 0)

- [(0, 1.0, 0), (1, 1.5, 2), (2, 1.9, 4)]
+ [(0, 1.0, 0), (3, 4.66839074017e-313, 0), (1073217536, 1.0609978956e-313, 2)]
``` ====================================================================== FAIL: test_tuple (artiq.test.coredevice.test_embedding.AlignmentTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/test/coredevice/test_embedding.py", line 556, in test_tuple self.create(_Alignment).run() File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/language/core.py", line 54, in run_on_core return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/core.py", line 140, in run self._run_compiled(kernel_library, embedding_map, symbolizer, demangler) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/core.py", line 130, in _run_compiled self.comm.serve(embedding_map, symbolizer, demangler) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/comm_kernel.py", line 716, in serve self._serve_exception(embedding_map, symbolizer, demangler) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/comm_kernel.py", line 698, in _serve_exception raise python_exn AssertionError: AssertionError ====================================================================== FAIL: test_list_mixed_tuple (artiq.test.coredevice.test_embedding.RoundtripTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/test/coredevice/test_embedding.py", line 84, in test_list_mixed_tuple self.assertRoundtrip([(0, 1.0, 0), (1, 1.5, 2), (2, 1.9, 4)]) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/test/coredevice/test_embedding.py", line 24, in assertRoundtrip exp.roundtrip(obj, callback) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/language/core.py", line 54, in run_on_core return getattr(self, arg).run(run_on_core, ((self,) + k_args), k_kwargs) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/core.py", line 140, in run self._run_compiled(kernel_library, embedding_map, symbolizer, demangler) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/core.py", line 130, in _run_compiled self.comm.serve(embedding_map, symbolizer, demangler) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/comm_kernel.py", line 716, in serve self._serve_exception(embedding_map, symbolizer, demangler) File "/nix/store/r0s5frmjm46nkj21jykk136m1qv20c8i-python3.10-artiq-8.8227.3735b7e.beta/lib/python3.10/site-packages/artiq/coredevice/comm_kernel.py", line 698, in _serve_exception raise python_exn AssertionError: Lists differ: [(0, 1.0, 0), (1, 1.5, 2), (2, 1.9, 4)] != [(0, 1.0, 0), (3, 4.66839074017e-313, 0), (1073217536, 1.0609978956e-313, 2)] First differing element 1: (1, 1.5, 2) (3, 4.66839074017e-313, 0) - [(0, 1.0, 0), (1, 1.5, 2), (2, 1.9, 4)] + [(0, 1.0, 0), (3, 4.66839074017e-313, 0), (1073217536, 1.0609978956e-313, 2)] ```
dpn was assigned by sb10q 2022-12-01 13:12:42 +08:00
Collaborator

Likely not related to 22.11 at all; this is the same bug that's fixed in the upstream commit that added the tests (which still needs to be ported to the artiq-zynq copy of the firmware).

Likely not related to 22.11 at all; this is the same bug that's fixed in the upstream commit that added the tests (which still needs to be ported to the artiq-zynq copy of the firmware).
Collaborator

(I can/will look into porting the alignment fixes across.)

(I can/will look into porting the alignment fixes across.)
Collaborator

df4988c774 (for the RPC alignment issues at least).

df4988c774b7095c6cc71dcccace2f079a1ff805 (for the RPC alignment issues at least).
dpn closed this issue 2023-01-29 00:21:08 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#207
No description provided.