Skip to content

ci: run test without optional deps #79

ci: run test without optional deps

ci: run test without optional deps #79

GitHub Actions / Test Results failed Sep 16, 2024 in 0s

2 fail, 1 172 skipped, 383 pass in 11m 51s

1 557 tests  +4     383 ✅ +2   11m 51s ⏱️ -1s
    1 suites ±0   1 172 💤 +4 
    1 files   ±0       2 ❌  - 2 

Results for commit 2a24252. ± Comparison against earlier commit d206755.

Annotations

Check warning on line 0 in test.test_ad9371

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9371_tx_data[0-adi.ad9371] (test.test_ad9371) failed

results.xml [took 0s]
Raw output
Exception: [Errno 2] No such file or directory
uri = 'ip:10.1.0.217', classname = 'adi.ad9371', channel = 0, use_tx2 = False

    def dma_tx(uri, classname, channel, use_tx2=False):
        """dma_tx: Construct TX buffers and verify no errors occur when pushed.
        Buffer is of size 2**15 and 10 buffers are pushed
    
        parameters:
            uri: type=string
                URI of IIO context of target board/system
            classname: type=string
                Name of pyadi interface class which contain attribute
            channel: type=list
                List of integers or list of list of integers of channels to
                enable through tx_enabled_channels
        """
        sdr = eval(classname + "(uri='" + uri + "')")
        TXFS = 1000
        N = 2 ** 15
        ts = 1 / float(TXFS)
        t = np.arange(0, N * ts, ts)
        fc = 10000
        d = np.cos(2 * np.pi * t * fc) * 2 ** 15 * 0.5
    
        if use_tx2:
            if not isinstance(channel, list):
                sdr.tx2_enabled_channels = [channel]
            else:
                sdr.tx2_enabled_channels = channel
                d = [d] * len(channel)
            sdr.tx2_buffer_size = N * len(sdr.tx2_enabled_channels)
        else:
            if not isinstance(channel, list):
                sdr.tx_enabled_channels = [channel]
            else:
                sdr.tx_enabled_channels = channel
                d = [d] * len(channel)
            sdr.tx_buffer_size = N * len(sdr.tx_enabled_channels)
    
        try:
            for _ in range(10):
>               sdr.tx2(d) if use_tx2 else sdr.tx(d)

test/dma_tests.py:125: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/rx_tx.py:445: in tx
    self._tx_init_channels()
adi/compat.py:186: in _tx_init_channels
    self._txbuf = iio.Buffer(
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/iio.py:1015: in __init__
    self._buffer = _create_buffer(device._device, samples_count, cyclic)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Buffer object at 0x7f1e7b62ccc0>
func = <_FuncPtr object at 0x7f1e97003f40>
arguments = (<iio.LP__Device object at 0x7f1e7b62c540>, 32768, False)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       FileNotFoundError: [Errno 2] No such file or directory

/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/iio.py:56: FileNotFoundError

During handling of the above exception, another exception occurred:

test_dma_tx = <function dma_tx at 0x7f1e94332b80>, iio_uri = 'ip:10.1.0.217'
classname = 'adi.ad9371', channel = 0

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", range(2))
    def test_ad9371_tx_data(test_dma_tx, iio_uri, classname, channel):
>       test_dma_tx(iio_uri, classname, channel)

test/test_ad9371.py:281: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

uri = 'ip:10.1.0.217', classname = 'adi.ad9371', channel = 0, use_tx2 = False

    def dma_tx(uri, classname, channel, use_tx2=False):
        """dma_tx: Construct TX buffers and verify no errors occur when pushed.
        Buffer is of size 2**15 and 10 buffers are pushed
    
        parameters:
            uri: type=string
                URI of IIO context of target board/system
            classname: type=string
                Name of pyadi interface class which contain attribute
            channel: type=list
                List of integers or list of list of integers of channels to
                enable through tx_enabled_channels
        """
        sdr = eval(classname + "(uri='" + uri + "')")
        TXFS = 1000
        N = 2 ** 15
        ts = 1 / float(TXFS)
        t = np.arange(0, N * ts, ts)
        fc = 10000
        d = np.cos(2 * np.pi * t * fc) * 2 ** 15 * 0.5
    
        if use_tx2:
            if not isinstance(channel, list):
                sdr.tx2_enabled_channels = [channel]
            else:
                sdr.tx2_enabled_channels = channel
                d = [d] * len(channel)
            sdr.tx2_buffer_size = N * len(sdr.tx2_enabled_channels)
        else:
            if not isinstance(channel, list):
                sdr.tx_enabled_channels = [channel]
            else:
                sdr.tx_enabled_channels = channel
                d = [d] * len(channel)
            sdr.tx_buffer_size = N * len(sdr.tx_enabled_channels)
    
        try:
            for _ in range(10):
                sdr.tx2(d) if use_tx2 else sdr.tx(d)
        except Exception as e:
            del sdr
>           raise Exception(e)
E           Exception: [Errno 2] No such file or directory

test/dma_tests.py:128: Exception

Check warning on line 0 in test.test_ad9371

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9371_tx_data[1-adi.ad9371] (test.test_ad9371) failed

results.xml [took 0s]
Raw output
Exception: [Errno 2] No such file or directory
uri = 'ip:10.1.0.217', classname = 'adi.ad9371', channel = 1, use_tx2 = False

    def dma_tx(uri, classname, channel, use_tx2=False):
        """dma_tx: Construct TX buffers and verify no errors occur when pushed.
        Buffer is of size 2**15 and 10 buffers are pushed
    
        parameters:
            uri: type=string
                URI of IIO context of target board/system
            classname: type=string
                Name of pyadi interface class which contain attribute
            channel: type=list
                List of integers or list of list of integers of channels to
                enable through tx_enabled_channels
        """
        sdr = eval(classname + "(uri='" + uri + "')")
        TXFS = 1000
        N = 2 ** 15
        ts = 1 / float(TXFS)
        t = np.arange(0, N * ts, ts)
        fc = 10000
        d = np.cos(2 * np.pi * t * fc) * 2 ** 15 * 0.5
    
        if use_tx2:
            if not isinstance(channel, list):
                sdr.tx2_enabled_channels = [channel]
            else:
                sdr.tx2_enabled_channels = channel
                d = [d] * len(channel)
            sdr.tx2_buffer_size = N * len(sdr.tx2_enabled_channels)
        else:
            if not isinstance(channel, list):
                sdr.tx_enabled_channels = [channel]
            else:
                sdr.tx_enabled_channels = channel
                d = [d] * len(channel)
            sdr.tx_buffer_size = N * len(sdr.tx_enabled_channels)
    
        try:
            for _ in range(10):
>               sdr.tx2(d) if use_tx2 else sdr.tx(d)

test/dma_tests.py:125: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/rx_tx.py:445: in tx
    self._tx_init_channels()
adi/compat.py:186: in _tx_init_channels
    self._txbuf = iio.Buffer(
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/iio.py:1015: in __init__
    self._buffer = _create_buffer(device._device, samples_count, cyclic)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Buffer object at 0x7f1e7b5046c0>
func = <_FuncPtr object at 0x7f1e97003f40>
arguments = (<iio.LP__Device object at 0x7f1e7b5047c0>, 32768, False)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       FileNotFoundError: [Errno 2] No such file or directory

/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/iio.py:56: FileNotFoundError

During handling of the above exception, another exception occurred:

test_dma_tx = <function dma_tx at 0x7f1e94332b80>, iio_uri = 'ip:10.1.0.217'
classname = 'adi.ad9371', channel = 1

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", range(2))
    def test_ad9371_tx_data(test_dma_tx, iio_uri, classname, channel):
>       test_dma_tx(iio_uri, classname, channel)

test/test_ad9371.py:281: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

uri = 'ip:10.1.0.217', classname = 'adi.ad9371', channel = 1, use_tx2 = False

    def dma_tx(uri, classname, channel, use_tx2=False):
        """dma_tx: Construct TX buffers and verify no errors occur when pushed.
        Buffer is of size 2**15 and 10 buffers are pushed
    
        parameters:
            uri: type=string
                URI of IIO context of target board/system
            classname: type=string
                Name of pyadi interface class which contain attribute
            channel: type=list
                List of integers or list of list of integers of channels to
                enable through tx_enabled_channels
        """
        sdr = eval(classname + "(uri='" + uri + "')")
        TXFS = 1000
        N = 2 ** 15
        ts = 1 / float(TXFS)
        t = np.arange(0, N * ts, ts)
        fc = 10000
        d = np.cos(2 * np.pi * t * fc) * 2 ** 15 * 0.5
    
        if use_tx2:
            if not isinstance(channel, list):
                sdr.tx2_enabled_channels = [channel]
            else:
                sdr.tx2_enabled_channels = channel
                d = [d] * len(channel)
            sdr.tx2_buffer_size = N * len(sdr.tx2_enabled_channels)
        else:
            if not isinstance(channel, list):
                sdr.tx_enabled_channels = [channel]
            else:
                sdr.tx_enabled_channels = channel
                d = [d] * len(channel)
            sdr.tx_buffer_size = N * len(sdr.tx_enabled_channels)
    
        try:
            for _ in range(10):
                sdr.tx2(d) if use_tx2 else sdr.tx(d)
        except Exception as e:
            del sdr
>           raise Exception(e)
E           Exception: [Errno 2] No such file or directory

test/dma_tests.py:128: Exception