Skip to content
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

Function test can not support control commands #1077

Closed
hycdong opened this issue Jul 25, 2022 · 1 comment
Closed

Function test can not support control commands #1077

hycdong opened this issue Jul 25, 2022 · 1 comment
Assignees
Labels
type/bug This issue reports a bug.

Comments

@hycdong
Copy link
Contributor

hycdong commented Jul 25, 2022

I build pegasus through command ./run.sh build -c --test, and try to run pegasus function test through command ./run.sh test -m pegasus_function_test. When the test run not-on-travis tests, I found that function test can not support control commands, such as clear_onebox etc, the error is just like:

Note: Google Test filter = recovery_test.*
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from recovery_test
[ RUN      ] recovery_test.recovery
============
start global_env()
meta1 pid: 0
meta1 dir: 
project root: .
working dir: = true, partitioned = false, ...
D2022-07-25 14:58:11.605 (1658732291605899729 9335) unknown.io-thrd.09335: get ip address from network interface(enp0s31f6), addr(10.231.57.161), input interface("")
get ip: 
Error: unknow option "clear_onebox"
cp: 无法获取'src/server/config.min.ini' 的文件状态(stat): 没有那个文件或目录
sed: 无法读取 config-server-test-recovery.ini: 没有那个文件或目录
sed: 无法读取 config-server-test-recovery.ini: 没有那个文件或目录
sed: 无法读取 config-server-test-recovery.ini: 没有那个文件或目录
sed: 无法读取 config-server-test-recovery.ini: 没有那个文件或目录
Error: unknow option "start_onebox"
......

It seems that there are something wrong with global_env initialization, I revert master for an old version and rerun the test, global_env is just like:

start global_env()
meta1 pid: 3296
meta1 dir: /home/heyuchen/work/pegasus_github/pegasus/onebox/meta1
project root: /home/heyuchen/work/pegasus_github/pegasus
working dir: /home/heyuchen/work/pegasus_github/pegasus/src/builder/src/test/function_test

I compare the master and old version, guess it may be caused by #1062, hoping it to be fixed.

@hycdong hycdong added the type/bug This issue reports a bug. label Jul 25, 2022
@acelyc111 acelyc111 self-assigned this Jul 26, 2022
@acelyc111
Copy link
Member

acelyc111 commented Jul 26, 2022

@hycdong Thank you to reproduce it, I will fix it.

@acelyc111 acelyc111 pinned this issue Jul 27, 2022
@acelyc111 acelyc111 unpinned this issue Jul 27, 2022
ZhongChaoqiang pushed a commit to ZhongChaoqiang/incubator-pegasus that referenced this issue Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug This issue reports a bug.
Projects
None yet
Development

No branches or pull requests

2 participants