[error] root@taishan200-2280-2s64p-256g--a9 /c/compass-ci/container/es# docker exec -it auto-submit sh /c/lkp-tests/sbin $ ./submit iperf.yaml testbox=vm-2p8g submit /c/lkp-tests/jobs/iperf.yaml failed, got job_id=0, error: Missing required job key: 'my_email'.
[how] store auto submit info to ES to pass verification when submit jobs in container.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sbin/auto_submit | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/sbin/auto_submit b/sbin/auto_submit index 51ecc6a..c121ae0 100755 --- a/sbin/auto_submit +++ b/sbin/auto_submit @@ -6,6 +6,7 @@ require 'bunny' require 'json' require 'yaml' +require_relative '../lib/build_my_info_client'
# receive message and auto submit job class AutoSubmit @@ -82,5 +83,15 @@ class AutoSubmit end end
+option = { + my_name: 'Auto Submit Robot', + my_email: 'autosubmit@localhost', + lab: 'autosubmit' +} + +# fix verification problems when submit jobs by auto-submit service +build_my_info = BuildMyInfo.new(option[:my_email], option[:my_name], option[:lab]) +build_my_info.config_my_info + auto_submitter = AutoSubmit.new auto_submitter.listen
On Thu, Jan 14, 2021 at 11:25:21AM +0800, Liu Yinsi wrote:
[error] root@taishan200-2280-2s64p-256g--a9 /c/compass-ci/container/es# docker exec -it auto-submit sh /c/lkp-tests/sbin $ ./submit iperf.yaml testbox=vm-2p8g submit /c/lkp-tests/jobs/iperf.yaml failed, got job_id=0, error: Missing required job key: 'my_email'.
[how] store auto submit info to ES to pass verification when submit jobs in container.
Signed-off-by: Liu Yinsi liuyinsi@163.com
sbin/auto_submit | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/sbin/auto_submit b/sbin/auto_submit index 51ecc6a..c121ae0 100755 --- a/sbin/auto_submit +++ b/sbin/auto_submit @@ -6,6 +6,7 @@ require 'bunny' require 'json' require 'yaml' +require_relative '../lib/build_my_info_client'
# receive message and auto submit job class AutoSubmit @@ -82,5 +83,15 @@ class AutoSubmit end end
+option = {
- my_name: 'Auto Submit Robot',
- my_email: 'autosubmit@localhost',
- lab: 'autosubmit'
Why lab is special? How can that work?
Thanks, Fengguang