Skip to content

Conversation

@Deixx
Copy link

@Deixx Deixx commented Oct 1, 2024

On editing duts_config replace configured duts
instead of adding all duts from modified config.
This allows for both adding and removing duts.
Current behavior led to duplicates if config contained
old duts in addition to new ones.

@Deixx Deixx force-pushed the declarative-duts-config branch 2 times, most recently from 02c5e86 to 8a82252 Compare October 7, 2024 09:07
@Deixx Deixx marked this pull request as draft October 8, 2024 12:31
@Deixx Deixx force-pushed the declarative-duts-config branch from 412985d to eca1479 Compare October 8, 2024 13:12
@Deixx Deixx marked this pull request as ready for review October 8, 2024 13:12
@Deixx Deixx force-pushed the declarative-duts-config branch from eca1479 to df2cdf5 Compare October 8, 2024 13:28
@Deixx Deixx force-pushed the declarative-duts-config branch 7 times, most recently from 45988ce to 430ea00 Compare October 10, 2024 06:56
@Deixx Deixx changed the title Declarative duts_config Declarative duts_config and DUT collection refactor Oct 10, 2024
@Deixx Deixx force-pushed the declarative-duts-config branch from 7c219f0 to 0814d8c Compare October 11, 2024 08:21
@Open-CAS Open-CAS deleted a comment from pep8speaks Oct 15, 2024
Deixx added 11 commits October 16, 2024 15:01
On editing duts_config replace configured duts
instead of adding all duts from modified config.
This allows for both adding and removing duts.
Current behavior led to duplicates if config contained
old duts in addition to new ones.

Signed-off-by: Daniel Madej <[email protected]>
Signed-off-by: Daniel Madej <[email protected]>
Handle FileNotFoundError (when overwriting config file)
Look for DUT only if queue is not empty

Signed-off-by: Daniel Madej <[email protected]>
Removed redundant code, clarified lock, added logging for
missing DUT config file

Signed-off-by: Daniel Madej <[email protected]>
Check if DUT is in use before adding it to queue
Prevent duplicated entries in queue
Handle faulty config load

Signed-off-by: Daniel Madej <[email protected]>
Acquire test and then look for DUT to run it on

Signed-off-by: Daniel Madej <[email protected]>
With separate collection thread we can get rid of double loop.

Signed-off-by: Daniel Madej <[email protected]>
Daemonized and non-daemonized runner will now behave the same
after receiving a SIGTERM or SIGINT signal and close all
the processes in the process group. The behaviour was different
also for Ctrl+C (affected process group) and sending SIGINT
through kill command (affected only the main process).

Signed-off-by: Daniel Madej <[email protected]>
@Deixx Deixx force-pushed the declarative-duts-config branch from 0814d8c to c820db1 Compare October 16, 2024 13:03
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.

3 participants