MetPX / MetPX/sr3_tools

`sr3d command` doesn't ignore include files

Open
#22 1 comment 1 reaction 0 assignees View on GitHub
bug work-around
Dominant language
Shell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

If I try running `sr3 command component/*something*` locally it works fine.

```
sr3 status sender/*translation*
status:
Component/Config Processes Connection Lag Rates
State Run Retry msg data Que LagMax LagAvg Last %rej pubsub messages RxData TxData
----- --- ----- --- ---- --- ------ ------ ---- ---- ------ -------- ------ ------
sender/to_translation_dev stop 0/0 0 0% 0% 0 0.00s 0.00s 0 0.0% 0B/s 0m/s 0B/s 0B/s
```

If I try with `sr3d` remotely , it will register the include files in the logs and fail to run the command.

```
sr3d status sender/*translation*
node01: status:
node01: 2024-12-04 16:44:55,443 2286528 [ERROR] root status ['sender/regional_to_translation.inc', 'sender/translation.inc'] configuration not found
```

I also tried with `start`, `stop`, `remove` and `restart` with similar results.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the sr3d implementations of status, start, stop, remove, and restart, then compare how wildcard arguments and .inc include files are handled locally versus remotely. Reproduce the reported sr3d status sender/*translation* case and verify that include files are ignored while matching configurations still run.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.