Skip to content

Conversation

@jeremie6wind
Copy link
Contributor

Add support for the new major versions of libyang.so and libsysrepo.so.

Modify cffi/cdefs.h file according to sysrepo modifications:
- Remove sr_conn_flag_t enum values, sr_connect does not use the flags
  anymore. Add the context flag instead.
- Add sr_cache_running and sr_context_options.
Adapt SysrepoConnection init to use the new syrepo functions:
sr_cache_running and sr_context_options.
Allow only libsysrepo.so.8 only.

Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
Add the possibility to add the no_printed flag when creating the sysrepo
session to avoid loading the context from the shared memory. Apply it by
default to keep the behavior as before.
The printed context is valuable to get a the sysrepo config/state
faster but some operations on the context itself do not work.
For instance printing and parsing a yang model will fail.

Link: https://github.com/sysrepo/sysrepo/blob/v4.2.10/README.md#printed-context

Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.93%. Comparing base (956e214) to head (6772e31).
⚠️ Report is 19 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #92       +/-   ##
===========================================
+ Coverage   66.93%   82.93%   +16.00%     
===========================================
  Files           8        8               
  Lines        1113     1137       +24     
===========================================
+ Hits          745      943      +198     
+ Misses        368      194      -174     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@samuel-gauthier samuel-gauthier merged commit c5fbdaf into sysrepo:master Jan 6, 2026
20 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants