-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat(ops): check process running with posix.signal insteadof lsof #7006
Conversation
* remove shell command lsof dependency resolve apache#6977 * use signal SIGNONE(0) check process running or not Signed-off-by: kwanhur <huang_hua2012@163.com>
Signed-off-by: kwanhur <huang_hua2012@163.com>
This reverts commit 21b9bc3. Signed-off-by: kwanhur <huang_hua2012@163.com>
Signed-off-by: kwanhur <huang_hua2012@163.com>
Signed-off-by: kwanhur <huang_hua2012@163.com>
Signed-off-by: kwanhur <huang_hua2012@163.com>
This reverts commit c8ee3bb. Signed-off-by: kwanhur <huang_hua2012@163.com>
Signed-off-by: kwanhur <huang_hua2012@163.com>
Any test case need to cover |
Signed-off-by: kwanhur <huang_hua2012@163.com>
Please make the CI pass, thanks! |
Signed-off-by: kwanhur <huang_hua2012@163.com>
Signed-off-by: kwanhur <huang_hua2012@163.com>
CI action run failed on Plz trigger to rerun them :-) |
Let's merge master to make CI pass. |
Had merged. Plz rerun this action. |
@kwanhur Please make the CI pass, thanks! |
done |
Signed-off-by: kwanhur <huang_hua2012@163.com>
t/cli/test_main.sh
Outdated
@@ -706,6 +706,26 @@ fi | |||
./bin/apisix stop | |||
echo "pass: ignore stale nginx.pid" | |||
|
|||
# check operation not permitted | |||
sudo make run |
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.
Can we replace this test with a test that checks no such process
? It seems we don't have test to cover it.
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.
Added.
Signed-off-by: kwanhur <huang_hua2012@163.com>
These failed workflows take error on compilation, plz trigger to re-run them, thanks very much. @tzssangglass
|
…ache#7006) Signed-off-by: kwanhur <huang_hua2012@163.com> Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
* upsgrteam/master: (351 commits) fix(proxy-cache): bypass when method mismatch cache_method (apache#7111) chore(script): support to install dependencies under arm64 (apache#7091) chore(ci): use the latest build script for apisix-base (apache#7090) fix(batch-requests): ignore "unix:" in the configuration (apache#7106) fix: install dependencies issues (apache#7092) feat(ops): use lua libs to backup config file insteadof shell command (apache#7048) test: reduce CI failure caused by flaky tests (apache#7085) chore(ci): move set_dns.sh to ci dir (apache#7089) feat: release 2.14.0 (apache#7057) docs: update "Tracers" Plugins (apache#7086) docs: update "Traffic" Plugin docs 3 (apache#7064) docs: update "Serverless" Plugins (apache#7076) feat(ops): check process running with posix.signal insteadof lsof (apache#7006) docs: modify how-to-build filename (apache#7087) docs: fix link of hot-reload in docs (apache#7081) chore(ci): apt update before install (apache#7080) docs: add pubsub develop example for kafka (apache#7059) ci: enable rebase in some situation (apache#7074) fix: redirect http to https but port not change (apache#7065) ci: make it pass under OpenResty 1.21 (apache#7067) ...
Description
Partial OS no
lsof
tool, so if uselsof
to check APISIX running or not will fail.Now send signal none(0) to check via luaposix.
lsof
dependencyFixes #6977
Checklist