Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

runtime/1.3.0-2018-10-13T172459

Compare
Choose a tag to compare
@pie-pipeline pie-pipeline released this 14 Oct 00:28
· 49 commits to master since this release

Asynchronous Hibike (#633)

  • Use profiling and event loop libs

  • [HIBIKE] C extension (#622)

  • Add hibike_packet as submodule

  • Enable use of hibike_packet

Detects whether the extension is installed by trying to import it.

  • Update hibike_packet

  • Remove process_buffer

  • [HIBIKE] fixing Disconnect and register_sensor syntax errors

  • Final preparation for asyncio merge (#631)

  • Do not crash on invalid COBS data

  • Rename hibike_process_async to hibike_process

Remove old hibike_process and replace it with async version. API
compatibility is maintained, so Runtime will not be changed.

  • Prevent hibike_tester hang after termination

hibike_tester would hang after terminating hibike_process,
because one of its threads was still running.
We tell the thread to shut down after the process is done
instead of running forever.

  • Remove stub file

  • Remove send_transport

This function is identical to send, so it doesn't make sense
to keep it around.

  • Replace virtual device with async version

The asynchronous version uses less CPU and has saner defaults.

  • Remove virtual device dependency on hibike_process

Some parts of the virtual device perform similar functions
to parts of hibike_process, but it is better that the two
implementations be allowed to evolve independently.

  • Update tests for async; add read/write tests

Async tests need to deal with the event loop. In addition,
we test that hibike is actually reading and writing to devices
using virtual devices.

  • Remove outdated portions of README, update others

  • Add explanation for read/write retries

  • Add test for nonexistent device errors

As it turns out, we were not sending error messages when a
nonexistent device was accessed; a test should ensure this behavior
stays in.

  • Update developer documentation

  • Fix lint errors

  • [RUNTIME] changed kill process timeout from one second to three seconds

  • Start async hibike rewrite

  • [HIBIKE] Full implementation of async smart sensor protocol (#523)

Now, SmartSensorProtocol automagically registers itself with
Hibike when it connects.

  • Fix bugs related to virtual devices

Essentially, we exclude existing serial ports from our
scan for new ones, but this didn't extend to virtual
devices, leading them to be added multiple times.

The other bug was that "connection_lost()" could
get called before a device was identified, triggering
a key error when we tried to take it out of the
devices map. This is now checked for.

Add function to create heartbeat requests

  • Add async virtual devices

In addition, async virtual devices send heartbeat requests too, although
they don't do anything with the responses.

  • Don't block event loop

  • Don't block event loop on state queue

  • Port process tests to async

  • Use aiofiles for nonblocking IO

  • Allow profiling measurements

  • Use an external cobs library

  • Memoize a few hot functions

  • [HIBIKE] Pause reading of hibike messages when max size exceeded

  • [HIBIKE] implemented backpressure on device side

  • Exclude new name of hibike_packet from linting

  • Unify runtime and hibike pipfiles

  • Bump required python version to 3.7

  • Bump runtime version