• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

noironetworks / opflex / 2424
79%
master: 68%

Build:
Build:
LAST BUILD BRANCH: coveralls
DEFAULT BRANCH: master
Ran 09 Nov 2022 07:04PM UTC
Jobs 1
Files 276
Run time 18s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2424

push

travis-ci-com

Madhu Challa
Async Json Parser for Opflex and Ovs

Allow parsing partial json messages. Invokes comms callback on parse complete
and continues with the parse. Currently supports only one reader and writer
per comms object. On error the callback disconnects and reconnects with the
client there by preserving the sanity of the json stream.

Controlled via 2 env variables OPFLEX_USE_ASYNC_JSON for leaf <> opflex comms
and OVS_USE_ASYNC_JSON for ovsdb <> opflex comms. The usage will be
OPFLEX_USE_ASYNC_JSON= OVS_USE_ASYNC_JSON= <opflex command>, the same can
be provided via docker env variables when running under docker. If neither
env variable is present the code reverts to the old sync way of parsing that
would fail if the json comes in partial chunks.

The env variables can be set via config as
    "opflex": {
        "asyncjson" : { "enabled" : "true" }
    },
    "ovs": {
        "asyncjson" : { "enabled" : "true" }
    },

Signed-off-by: Madhu Challa <challa@gmail.com>

148 of 148 new or added lines in 4 files covered. (100.0%)

25356 of 31926 relevant lines covered (79.42%)

2668.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2424.1 (TEST_SUITE=travis-build.sh) 09 Nov 2022 07:04PM UTC 0
79.42
Travis Job 2424.1
Source Files on build 2424
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #2424
  • 8f8775e7 on github
  • Prev Build on asyncjson (#2417)
  • Next Build on asyncjson (#2426)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc