Skip to content

Add test for hook pps_ts - #1053

Open
windrad6 wants to merge 85 commits into
masterfrom
hook-pps-ts-tests
Open

Add test for hook pps_ts#1053
windrad6 wants to merge 85 commits into
masterfrom
hook-pps-ts-tests

Conversation

@windrad6

@windrad6 windrad6 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Add a test for the pps_ts hook
Update the way timetags are caluclated in the hook
Add option to use the incoming sample time tag instead of CLOCK_REALTIME

Signed-off-by: Manuel <post@cl0.de>
Comment thread lib/hooks/pps_ts.cpp Outdated
@windrad6
windrad6 marked this pull request as ready for review September 6, 2026 10:50
@windrad6
windrad6 enabled auto-merge (rebase) September 6, 2026 10:50
@stv0g stv0g changed the title Hook pps ts tests Add test for hook pps_ts Sep 7, 2026
@stv0g

stv0g commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

After merging @pjungkamp changes of the config validation, this PR unfortunately has now conflicts.

Manuel and others added 10 commits September 13, 2026 12:20
…onfig selection

Signed-off-by: Manuel <post@cl0.de>
The LWS_CALLBACK_CLOSED handler set the connection state to CLOSED and
then compared the (now always CLOSED) state against CLOSING, making the
check dead code. Save the state before overwriting it so the intended
reconnect logic can actually trigger.

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
The details string contained 'in.epoch=' twice: once for the epoch mode
name and once for the numeric epoch value. Rename the second occurrence
to 'in.epoch_value'.

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
strcpy() into the fixed-size sun_path buffer could overflow for long
socket paths. Use strncpy() and force NUL termination.

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
strcpy() into the fixed-size ifr_name (IFNAMSIZ) buffer could overflow
for long interface names. Use strncpy() and force NUL termination.

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
Two 's: b s: b' pairs lacked the separating comma, causing jansson to
mis-parse the format and silently drop some path status fields from the
API/websocket status output.

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
Rename 'curentPos' to 'currentPos'.

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
The original code overwrote *dest with the result of realloc() without
checking for NULL, leaking the old buffer and then copying into a NULL
pointer. Also handle vasprintf() failure. On allocation failure the old
buffer is preserved and returned unchanged.

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
Rename requests/capabiltities.cpp to requests/capabilities.cpp and fix
the 'capabiltities'/'ressource' misspellings in its comment and API
description string (visible in the API index).

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
Three issues in the Python Node client:
- config={} was a mutable default argument; use None and create a dict.
- The api_url deduction read the 'config' parameter instead of
  self.config, ignoring a config loaded from config_filename.
- self.child was only created in start(), so is_running() before start()
  raised AttributeError; initialize it to None.

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
pjungkamp and others added 23 commits September 13, 2026 12:26
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
…ation

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Manuel <post@cl0.de>
Signed-off-by: Manuel <37443948+windrad6@users.noreply.github.com>
@windrad6

Copy link
Copy Markdown
Contributor Author

After merging @pjungkamp changes of the config validation, this PR unfortunately has now conflicts.

Fixed the conflicts.

@windrad6
windrad6 requested a review from pjungkamp September 13, 2026 17:41
@stv0g

stv0g commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@windrad6 Could you rebase this to the latest master? This PR contains 85 commits..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants