Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge Dev/1.0.0 into main #609

Merged
merged 202 commits into from
Aug 30, 2024
Merged

merge Dev/1.0.0 into main #609

merged 202 commits into from
Aug 30, 2024

Conversation

milyin
Copy link
Contributor

@milyin milyin commented Aug 28, 2024

No description provided.

jean-roland and others added 30 commits February 22, 2024 11:33
* refactor: rename make final interest function

* feat: add Interest config token

* fix: PA copy paste error

* feat: add session interest type

* feat: add intrest type

* feat: add session interest module

* feat: add interest primitives

* feat: add session mutex function

* feat: add interest message processing

* fix: modularize process declare interest function

* feat: implement trigger_interest function

* fix: clone entitiy lists before sending declarations

* fix: remove unused function

* fix: rename file

* fix: set interest_msg fields as public

* feat: process undeclares as well

* fix: remove unecessary enum value

* fix: remove dropper function

* feat: add write side filtering entity

* feat: implement filtering

* fix: remove interest by default (for now)

* fix: rework publisher put actions order

* fix: add missing const

* fix: add missing dummy functions

* fix: exclude dummy functions from config token

* fix: remove unused defines

* fix: give keyexpr ownership to declare

* feat: add refcount copy function

* fix: duplicate key for declare

* feat: add resource copy function

* fix: use keyexpr alias instead of duplicate

* fix: flip early return condition

* feat: send final interest

* refactor: rename ambiguous functions

* fix: fuse identical functions

* fix: trigger local subs after push message

* fix: add missing switch default label

* build: add Z_FEATURE_INTEREST to build system

* fix: remove unused function

* refactor: regroup static functions

* fix: add flag filtering on interest look-up
* feat: new declare interest packet format

* refactor: use flag macros

* fix: encode correct flag value

* fix: continue create infinite loop

* refactor: go through session_lock function

* feat: remove ke from unicast undeclares
* feat: new declare interest packet format

* refactor: use flag macros

* fix: encode correct flag value

* feat: update query messages

* fix: remove unitialized memory warning

* fix: remove codec test memory leak

* fix: set correct tag in codec test response

* feat: add sample kind and push body in replies

* feat: update error message format

* chore: code format
* Improved zint codec

* Fix zint codec cast

* Fix tests

* Fix +1 casting

* Remove forgotten prints
* Remove ACK message

* Cleanup pull and subscriber

* Remove Put/Del from ResponseBody

* Cleanup flags

* Comment unusued variables in pull examples

* Fix alignment test
* feat: store declare info for interests

* fix: remove subscriber mode arg

* refactor: missing session_unlock

* fix: clear interest data on session close
* add support for qos settings in sample

* - silence cpp compiler regading compound literals and type conversions,
- add missing dots in docs

* fix _z_qos_t definition and doc

* fix z_qos_t definition and doc

* - replace binary literals (non-core C) with hexadecimal ones
- replace _z_n_qos_unmake with _z_n_qos_unmake_public in subscription.c

* make _z_n_qos_unmake static inline to prevent linking errors

* fix format

* reduce qos size to 1 byte; use getters to extract individual qos settings

* fix _z_n_qos_make to no longer use compund literals to avoid warnings from zenoh-cpp

* fix z_qos_default() signature

* Add Flipper platform (#351)

* Add Flipper platform

* Fix warnings and other platform builds

* move z_n_qos_t related functions into .c (to hide designated initializers from c++)

* z_sample_t docs update to include qos

* move qos functions back to header and remove usage of designated initializers

* format

* fix: Bump sphinx doc build dep to `7.2.6` (#361)

* replac zp_ prefix for platform functions that are also available in zenoh-c

* fix format

* replace zp_ prefix with z_ for zp_random_u64

* put back previously removed zp_ functions as deprecated

* added missing new line at the end of the file

* typo fix

* move deprecated platform header to a separate folder

* Add config endpoint in raweth locator (#364)

* feat: add ethtype to reth endpoint config

* feat: type renaming

* fix: remove unused macro call

* feat: remove static raweth config

* feat: use defines for separators

* feat: add mapping function

* fix: add default raweth mapping

* feat: add debug traces on raweth config  parsing

* fix: ethtype validity test

* fix: strtok parsing calls

* chore: clang-format

* fix: include first mapping entry in lookup

* fix: appease the tyran codacy

* Fix bug reading from ws (#370)

* Expose timeout option in z_get_options_t (#375)

* Expose timeout option in z_get_options_t

* Add default get timeout

* Align examples and remove reading from stdin (#359)

* Remove reading from stdin, align example implementations

* Update examples tests

* Adjust z_sub_thr output

* Fix z_get single query examples

* Replace pthread uses with z_mutex and z_condvar

* Add multi-thread feature condition to z_get examples

* Update error message for features absence

* Update z_get expected output in modularity test

* Update sample count for freertos single-thread examples

* fix: remove unused variable warning (#379)

* Changing references to zenoh:master to zenoh:main. (#381)

* correct unsigned atomic in refcount.h (#382)

* Fix refcount cast (#384)

* Fix esp32 CI (#386)

* fix: const discard warning

* build: fix platformio dependency check

* Serial timeout (#383)

* correct unsigned atomic in refcount.h

* made espidf freertos compatible with timeout on read

---------

Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com>

* Run clang-format (#388)

* Fix misra violations (#390)

* chore: run clang format

* fix: misra issues

* ci: Allow building zenoh from arbitrary branch in build-check workflow (#389)

* ci: Allow building Zenoh from arbitrary branch in build-check workflow

* Update other jobs

---------

Co-authored-by: OlivierHecart <olivier.hecart@adlinktech.com>

* build: point ci to zenoh protocol_changes branch

* fix: check declare <I> flag at declare level

* fix: missing function prototype warning

* build: switch zenoh branch to interests

* fix: ignore unknown final interest

* fix: missing argument in tigger_local_subs

* fix: add wait join step in z_pub for raweth testing

* fix: raweth memory leaks

* feat: add message number option to z_sub

* fix: null malloc when cloning rc list

* doc: remove obsolete types

* fix: encoding option made fragment test fail

* fix: replace all deprecated system calls

* fix: improve raweth test stability

---------

Co-authored-by: Denis Biryukov <denis.biryukov@zettascale.tech>
Co-authored-by: Alexander <sashacmc@gmail.com>
Co-authored-by: Michael Ilyin <milyin@gmail.com>
Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com>
Co-authored-by: OlivierHecart <olivier@zettascale.tech>
Co-authored-by: Alexander <Alexander@Bushnev.pro>
Co-authored-by: oteffahi <70609372+oteffahi@users.noreply.github.com>
Co-authored-by: Geoff Martin <geoff.martin@zettascale.tech>
Co-authored-by: Lieven <lieven.merckx@gmail.com>
Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com>
Co-authored-by: OlivierHecart <olivier.hecart@adlinktech.com>
* Remove ACK message

* Cleanup pull and subscriber

* Remove Put/Del from ResponseBody

* Cleanup flags

* Comment unusued variables in pull examples

* Fix alignment test

* Add ring to collections

* Pull examples. Fake z_owned_sample_t

* Channels initial commit

* Added channel macros

* Rename sample_ring to sample_channel_ring

* Add fifo and lifo collections

* Moved utils to handlers. Added FIFO handlers. Add z_sub_channel.

* Improve pull example

* Fix return in void functions

* Fix prototype

* Fix newline at end of the file

* Fix windows examples target

* Remove unexisting windows z_sub_channel from CMAke

* Remove unexisting unix c99 z_sub_channel from CMAke

* Rework owned sample (#391)

* Owned sample draft

* Continue owned sample implementation

* [skip ci] Channel macro draft

* [skip ci] Fix element copy

* Add fifo channel

* Add channel clean up and some refactoring/fixes

* Syntax fix

* Refactoring, cleanup

* Rename elem copy to move

* Improve naming

* TODO resolving

* Add channel tests

* Apply review feedback

* Add encoding copy

---------

Co-authored-by: Alexander <Alexander@Bushnev.pro>
* Add try_recv closure to channels

* Add try_pull for ring_mt
* Add *_capacity *_len function usage

* Add tests for *_init, *_free, *_push_drop

* Fix compiler warning
* feat: update encoding wire change

* refactor: rename codec test gen_uint to gen_uint32

* test: update codec test for encoding

* fix: add encoding_len codec function

* fix: deactivating interests temporarily

* build: suppress msvc warning c4127

* fix: remove unused variable warning

* fix: rename encoding fields
* fix: add and call function to drop encoded attachments

* feat: add n arg for z_queryable example

* feat: add attachment to queries

* feat: add query attachment to examples

* feat: add attachment to query replies

* feat: add attachment to query reply examples

* fix: compile error when attachment deactivated

* test: add attachment support in modularity test

* build: add a ci stage for no attachment case

* feat: drop sample attachment with z_sample_drop

* fix: init dst in z_bytes_copy

* fix: allocate attachment z_bytes to avoid going out of scope

* chore: auto format python script

* fix: remove unused function

* feat: add query attachment accessor

* fix: free attachment when query is dropped

* fix: drop sample attachment automatically

* fix: set attachment_drop as a private function

* fix: replace private function _z_bytes_wrap

* fix: compilation error when attachment is off
* feat: implement interest protocol changes

* test: add interests to test msgcodec

* fix: bad struct name

* fix: bad interest generation and decode

* feat: add declare interest id

* feat: rework filter/interest with wire change

* fix: is final mask naming

* fix: remove stray char

* fix: wait for joins before starting publisher

* fix: encode declare_final header

* test: update raweth test

* fix: explicit decl_final_t members

* build: reactivate interests by default

* test: filter packets on raweth test

* doc: bad comment values
* refactor: move code to net/sample and net/reply files

* feat: make attachment a permanent sub function arg

* feat: make z_sample type an rc and add z_loaned_sample type

* feat: add z_sample accessors functions

* fix: update tests with new z_sample

* fix: update examples with new z_sample

* fix: undefined function call

* fix: example updates with new z_sample

* fix: bad dummy subscription function args

* fix: update tests with new z_sample

* fix: update remaining examples with new z_sample

* fix: missing brace initializer
sashacmc and others added 29 commits August 8, 2024 14:08
* Update z_pull examples with the channels

* Use Serial.write() for strings output
* made z_bytes_writer non-owned;
added z_bytes_writer_append(...) and z_bytes_writer append_bounded(...) (aka writer.serialize());
added z_bytes_reader_read_bounded(...);

* docs and format fix
* feat: change config values to be mcu friendly

* feat: remove buffers from config file

* doc: add troubleshooting section to README

* fix: uncomment buffer sizes

* feat: define buffer values in zenoh-pico.h

* fix: switch config values to config.h because of cross include

* doc: update readme

* fix: modulation test compile error

* feat: unify config exposure to cmake

* fix: wconversion errors

* build: update ci workflows

* fix: remove old tokens from freertos cmake

* feat: expose socket timeout option in cmake

* fix: add config.h in zenoh-pico.h

* build update workflows
* owned type added, test compile fail fix

* owned types added, compilation passed

* arduino example fix

* test build fix

* test build fixes

* test build fix

* examples buld fix

* examples build fix

* examble build fix

* example build fix

* test build fix

* moved struct in dummy macro

* take implemented, test for take added

* build errors fixed, take macro added

* compilation fix

* test fail fix

* z_view_xxx_check/null replaced by is_empty/empty to separate them from _check/_null for owned structs

* no z_check for view anymore

* compile fix

* query under feature
Using z_string_data + z_string_len
* feat: rework pub sub keyexpr functions

* feat: store ke suffix in publisher

* fix: avoid suffix duplication
* switch to ptr to z_xxx_moved_t

* clang format

* clang format

* restored default values
* _z_check/null renamed to z_internal

* macro fix

* test fix

* macros corrected

* test fix

* tests fix

* clang format
* added Z_FEATURE_UNSTABLE_API, reliability put under it

* test on unstable build moved to separate task to accelerate ci

* separate build with unstable api
* C++ update for move protection API

* clang format
* feat: add _z_string and _z_slice methods

* feat: remove null-terminated from _z_string

* feat: switch locators to _z_string

* feat: switch _z_keyexpr to _z_string

* fix: remove obsolete functions

* tests: update tests without null terminated strings

* feat: add _z_string_pbrk

* fix: use _z_keyexpr_has_suffix

* doc: remove functions from doc

* feat: remove keyexpr_set_owns mechanism

* feat: add z_string_from_substr

* feat: remove obsolete functions

* fix: canonizer

* fix: use z_string_alias
* feat: rename _z_string_from methods

* feat: add _z_keyexpr_from_substr

* feat: add missing methods and add canon check

* refactor: rename string and slice functions

* fix: remove null terminated from string function

* refactor: rename the custom_deleter functions

* feat: call from_substr in from_str functions
* fix: z_string_convert_bytes

* feat: add z_id_to_string

* fix update function name
* feat: add intmap copy/clone capability

* feat: add config_clone function
@Mallets Mallets merged commit d6b17bb into main Aug 30, 2024
101 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.

9 participants