mailweb.openeuler.org
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
List overview
Download
Compass-ci
April 2021
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
compass-ci@openeuler.org
18 participants
382 discussions
Start a n
N
ew thread
[PATCH v3 lkp-tests] stat: optimize to obtain error for build DockerFile
by Liu Shaofei
01 Apr '21
01 Apr '21
[output] catch errors will be like this: { "openeuler_docker.wordpress_1.build.fail": [ 1 ], "openeuler_docker.yum.error.Unable-to-find-a-match.php-mysql": [ 1 ], "openeuler_docker.yum.error.Unable-to-find-a-match.php-mysql.message": [ "Error: Unable to find a match php-mysql" ], "openeuler_docker.tools_2.build.fail": [ 1 ], "openeuler_docker.yum.error.Unable-to-find-a-match.netsniff-ng": [ 1 ], "openeuler_docker.yum.error.Unable-to-find-a-match.netsniff-ng.message": [ "Error: Unable to find a match netsniff-ng" ], "openeuler_docker.yum.error.Unable-to-find-a-match.rpm-ostree": [ 1 ], } Signed-off-by: Liu Shaofei <370072077(a)qq.com> --- stats/openeuler_docker.rb | 103 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100755 stats/openeuler_docker.rb diff --git a/stats/openeuler_docker.rb b/stats/openeuler_docker.rb new file mode 100755 index 000000000..5a9365938 --- /dev/null +++ b/stats/openeuler_docker.rb @@ -0,0 +1,103 @@ +#!/usr/bin/env ruby + +def pre_handel(result, file_path) + status = false + repo_set = Set[] + sys_set = Set[] + + File.readlines(file_path).each do |line| + case line.chomp! + + # Error: Unable to find a match: docker-registry mock xx + when /Error: Unable to find a match: (.+)/ + $1.split.each do |repo| + repo_set << repo + end + + # RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs + # yum swap: error: unrecognized arguments: install systemd systemd-libs + when /yum swap: error: .*: install (.+)/ + $1.split.each do |sys| + sys_set << sys + end + + # curl: (22) The requested URL returned error: 404 Not Found + # error: skipping
https://dl.fedoraproject.org/pub/epel/bash-latest-7.noarch.rpm
- transfer failed + when /.*error: .* (https.*)/ + result['requested-URL-returned.error'] = [1] + result['requested-URL-returned.error.message'] = [line.to_s] + status = true + + # Error: Unknown repo: 'powertools' + when /Error: Unknown repo: (.+)/ + repo = $1.delete!("'") + result["unknown-repo.#{repo}"] = [1] + result["unknown-repo.#{repo}.message"] = [line.to_s] + status = true + + # Error: Module or Group 'convert' does not exist. + when /Error: Module or Group ('[^\s]+')/ + repo = $1.delete!("'") + result["error.not-exist-module-or-group.#{repo}"] = [1] + result["error.not-exist-module-or-group.#{repo}.message"] = [line.to_s] + status = true + + # /bin/sh: passwd: command not found + when /\/bin\/sh: (.+): command not found/ + result["sh.command-not-found.#{$1}"] = [1] + result["sh.command-not-found.#{$1}.message"] = [line.to_s] + status = true + end + + repo_set.each do |repo| + result["yum.error.Unable-to-find-a-match.#{repo}"] = [1] + result["yum.error.Unable-to-find-a-match.#{repo}.message"] = ["Error: Unable to find a match #{repo}"] + status = true + end + + sys_set.each do |sys| + result["yum.swap.error.unrecognized-arguments-install.#{sys}"] = [1] + result["yum.swap.error.unrecognized-arguments.#{sys}.message"] = + ["yum swap: error: unrecognized arguments install #{sys}"] + status = true + end + end + status +end + +def handle_unknown_error(_result, file_path) + line_num = %x(cat #{file_path} | grep -n 'Step ' | tail -1 | awk -F: '{print $1}') + + index = 1 + message = '' + File.readlines(file_path).each do |line| + if index == Integer(line_num) + message += line + else + index += 1 + end + end + + message = $1 if message =~ %r(\u001b\[91m(.+)) + message +end + +def openeuler_docker(log_lines) + result = Hash.new { |hash, key| hash[key] = [] } + + log_lines.each do |line| + next unless line =~ %r(([^\s]+).(build|run)\.fail) + + key, value = line.split(':') + key.chomp! + result[key] << value.to_i + + file_path = "#{RESULT_ROOT}/#{$1}" # $1 named by docker-image name + next unless File.exist?(file_path) + next if pre_handel(result, file_path) + + result["#{key}.message"] << handle_unknown_error(result, file_path) + end + + result +end -- 2.23.0
1
1
0
0
[PATCH compass-ci] doc: README: replace invalid url
by Liu Yinsi
01 Apr '21
01 Apr '21
Signed-off-by: Liu Yinsi <liuyinsi(a)163.com> --- README.en.md | 8 ++++---- README.zh.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.en.md b/README.en.md index fa88305..7449696 100644 --- a/README.en.md +++ b/README.en.md @@ -12,7 +12,7 @@ Compass-CI monitors git repos of a large amount of open source software. Once Co **Login to the Test Environment** -The SSH is used to [log in to the test environment for
commissioning](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/ma…
. +The SSH is used to [log in to the test environment for
commissioning](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/ma…
. **Test Result Analysis** @@ -38,15 +38,15 @@ If a new error ID is generated, the bisect is automatically triggered to locate **Manually Submitting a Test Task** -1. [Install the Compass-CI
client](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/%E…
. +1. [Install the Compass-CI
client](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/in…
. 2. [Compile test cases and manually submit test
tasks](https://gitee.com/wu_fengguang/lkp-tests/blob/master/doc/add-testcas…
. 3. You can [
view](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/brow…
and [
compare](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/c…
test results on the web page:
https://compass-ci.openeuler.org/jobs
**Logging in to the Test Environment** 1. Send an email to the compass-ci-robot(a)qq.com to [apply for an
account](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/a…
. -2. [Complete the environment
configuration](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/ma…
as instructed by the email. -3. Add the **sshd** field to the test task, submit the task, and [log in to the test
environment](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manu…
. +2. Complete the environment configuration. +3. Add the **sshd** field to the test task, submit the task, and [log in to the test
environment](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manu…
. ## Contributing to Compass-CI diff --git a/README.zh.md b/README.zh.md index 0e6cfb6..f897ae0 100644 --- a/README.zh.md +++ b/README.zh.md @@ -14,7 +14,7 @@ Compass-CI 监控很多开源软件 git repos,一旦检测到代码更新, **调测环境登录** -使用 SSH [
登录测试环境进行调测](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manua…
+使用 SSH [
登录测试环境进行调测](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manua…
**测试结果分析** @@ -41,15 +41,15 @@ Compass-CI 监控很多开源软件 git repos,一旦检测到代码更新, **手动提交测试任务** -1. [安装 Compass-CI
客户端](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/%E6%9…
+1. [安装 Compass-CI
客户端](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/insta…
2. [
编写测试用例](https://gitee.com/wu_fengguang/lkp-tests/blob/master/doc/add-testca…
, [
手动提交测试任务](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/…
3.
在网页中[查看](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual/b…
web:
https://compass-ci.openeuler.org/jobs
**登录测试环境** 1. 向 compass-ci-robot(a)qq.com
发送邮件[申请账号](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/manual…
-2.
根据邮件反馈内容[完成环境配置](https://gitee.com/wu_fengguang/compass-ci/blob/master/doc/…
-3. 在测试任务中添加 sshd
字段,提交相应的任务,[登录测试环境](https://gitee.com/wu_fengguang/compass-ci/blob/master/d…
+2. 根据邮件反馈内容完成环境配置。 +3. 在测试任务中添加 sshd
字段,提交相应的任务,[登录测试环境](https://gitee.com/wu_fengguang/compass-ci/blob/master/d…
## Contributing to Compass-CI -- 2.23.0
1
0
0
0
← Newer
1
...
36
37
38
39
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Results per page:
10
25
50
100
200