-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rewrite Python version of supervisor-proc-exit-listener in Rust (supervisor-proc-exit-listener-rs) without integration #24508
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
Open
qiluo-msft
wants to merge
23
commits into
sonic-net:master
Choose a base branch
from
qiluo-msft:qiluo/sup-listener-rs-noint
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,344
−1
Open
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
8ed5801
Move supervisor-proc-exit-listener to a wheel folder, add unit test
qiluo-msft 502c564
Revert src/sonic-supervisord-utilities/scripts/supervisor-proc-exit-l…
qiluo-msft 72a8afa
Remove unused dependencies, move some to dev-dependencies
qiluo-msft 1407c37
Simplify childutils function signature
qiluo-msft f9b1e7b
Simplify main()
qiluo-msft fc49c2f
Use monotonic time function
qiluo-msft dfe18fc
Update injectorpp rev in dev-dependencies
qiluo-msft d93a8a1
Use log crate instead of tracing
qiluo-msft 3f2e7e7
Implement select on stdin
qiluo-msft 5e6876c
Add unit test for polling
qiluo-msft 23efe21
Rename filename
qiluo-msft 7cb822f
Use severity enum
qiluo-msft f18f9ac
Remove hardcode Token(0)
qiluo-msft 033eaa3
Revert back supervisord.conf files
qiluo-msft 398f43f
Revert back src/sonic-dhcp-utilities/tests/test_data/supervisor.conf
qiluo-msft 3b276fb
Fix build warnings: unused variables
qiluo-msft 3d1bcb1
Fix build error: cannot find value `LOG_WARNING` in crate `syslog`
qiluo-msft d89d64a
Fix build error on register function
qiluo-msft 93ff7da
Simplify HashMap usage
qiluo-msft f778248
Use scopeguard in unit test
qiluo-msft 6788f7f
Remove extra testcase
qiluo-msft f57f590
Add missing .dep file
qiluo-msft ab864ad
Refine debian/control Build-Depends
qiluo-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| SONIC_SUPERVISORD_UTILITIES_RS_VERSION = 1.0.0 | ||
| SONIC_SUPERVISORD_UTILITIES_RS_NAME = sonic-supervisord-utilities-rs | ||
|
|
||
| SONIC_SUPERVISORD_UTILITIES_RS = $(SONIC_SUPERVISORD_UTILITIES_RS_NAME)_$(SONIC_SUPERVISORD_UTILITIES_RS_VERSION)_$(CONFIGURED_ARCH).deb | ||
| $(SONIC_SUPERVISORD_UTILITIES_RS)_SRC_PATH = $(SRC_PATH)/sonic-supervisord-utilities-rs | ||
| $(SONIC_SUPERVISORD_UTILITIES_RS)_VERSION = $(SONIC_SUPERVISORD_UTILITIES_RS_VERSION) | ||
| $(SONIC_SUPERVISORD_UTILITIES_RS)_NAME = $(SONIC_SUPERVISORD_UTILITIES_RS_NAME) | ||
| $(SONIC_SUPERVISORD_UTILITIES_RS)_DEPENDS = $(LIBSWSSCOMMON_DEV) | ||
| $(SONIC_SUPERVISORD_UTILITIES_RS)_RDEPENDS = $(LIBSWSSCOMMON) | ||
|
|
||
| SONIC_DPKG_DEBS += $(SONIC_SUPERVISORD_UTILITIES_RS) | ||
|
|
||
| SONIC_SUPERVISORD_UTILITIES_RS_DBG = $(SONIC_SUPERVISORD_UTILITIES_RS_NAME)-dbgsym_$(SONIC_SUPERVISORD_UTILITIES_RS_VERSION)_$(CONFIGURED_ARCH).deb | ||
| $(eval $(call add_derived_package,$(SONIC_SUPERVISORD_UTILITIES_RS),$(SONIC_SUPERVISORD_UTILITIES_RS_DBG))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ events=PROCESS_STATE | |
| buffer_size=1024 | ||
|
|
||
| [eventlistener:supervisor-proc-exit-listener] | ||
| command=/usr/local/bin/supervisor-proc-exit-listener --container-name dhcp_relay | ||
| command=/usr/bin/supervisor-proc-exit-listener-rs --container-name dhcp_relay | ||
|
||
| events=PROCESS_STATE_EXITED,PROCESS_STATE_RUNNING | ||
| autostart=true | ||
| autorestart=unexpected | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create the .dep file for this as well. #Resolved