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

Compass-ci

Threads by month
  • ----- 2025 -----
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 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
compass-ci@openeuler.org

August 2025

  • 1 participants
  • 2 discussions
[PATCH] lib/stats.rb: forcely show more stats if --no-hide-noises is set in sbin/compare
by Zheng Zengkai 06 Aug '25

06 Aug '25
Reuse the "--no-hide-noises" option and allow to bypass some checks for stats and show more stats comparisions if "--no-hide-noises" option is given when using lkp compare. It is useful when tester wants to see more stats comparisions between different runs, for example when the change ratio is less than 10%. Before the patch: [root@localhost /]# lkp compare -twa -d commit 5.10.0-4a4dbce046f7+ 5.10.0-47abaacd89b8+ info: "export LKP_GIT_WORK_TREE=/path/to/project/git/repo/" to enable parsing non-sha1 commit names. tests: 1 [root@localhost /]# lkp compare -twa --no-hide-noises -d commit 5.10.0-4a4dbce046f7+ 5.10.0-47abaacd89b8+ info: "export LKP_GIT_WORK_TREE=/path/to/project/git/repo/" to enable parsing non-sha1 commit names. tests: 1 [root@localhost /]# After the patch: [root@localhost /]# lkp compare -twa --no-hide-noises -d commit 5.10.0-4a4dbce046f7+ 5.10.0-47abaacd89b8+ info: "export LKP_GIT_WORK_TREE=/path/to/project/git/repo/" to enable parsing non-sha1 commit names. tests: 1 suite/path_params/tbox_group/run: unixbench/syscall/localhost 5.10.0-4a4dbce04 5.10.0-47abaacd89b8+ ---------------- -------------------------- %stddev change %stddev \ | \ 62340 -8% 57520 unixbench.System_Call_Overhead fail:runs %reproduction fail:runs | | | 2:2 0% 3:3 dmesg.tstage.last 2:2 0% 3:3 kmsg.eid.ACPI:IORT:[Firmware_Bug]:[map(____ptrval____)]conflicting_mapping_for_input_ID 2:2 0% 3:3 kmsg.eid.ACPI:IORT:[Firmware_Bug]:applying_workaround 2:2 0% 3:3 kmsg.eid.integrity:Unable_to_open_file:/etc/keys/x509_ima.der(-#) 2:2 0% 3:3 kmsg.eid.integrity:Unable_to_open_file:/etc/keys/x509_evm.der(-#) 2:2 0% 3:3 kmsg.eid.hisi_sas_v3_hw#:#:#:#hw_queues 2:2 0% 3:3 kmsg.eid.hisi_sas_v3_hw###:#hw_queues 158:2 0% 237:3 kmsg.msg.ACPI:IORT:[Firmware_Bug]:[map(____ptrval____)]conflicting_mapping_for_input_ID.message 100:2 0% 150:3 kmsg.msg.ACPI:IORT:[Firmware_Bug]:applying_workaround.message 114:2 0% 171:3 kmsg.msg.integrity:Unable_to_open_file:/etc/keys/x509_ima.der(-#).message 114:2 0% 171:3 kmsg.msg.integrity:Unable_to_open_file:/etc/keys/x509_evm.der(-#).message 84:2 0% 126:3 kmsg.msg.hisi_sas_v3_hw#:#:#:#hw_queues.message 84:2 0% 126:3 kmsg.msg.hisi_sas_v3_hw###:#hw_queues.message 0.72:2 0% 1.08:3 kmsg.ts.ACPI:IORT:[Firmware_Bug]:[map(____ptrval____)]conflicting_mapping_for_input_ID 0.72:2 0% 1.08:3 kmsg.ts.ACPI:IORT:[Firmware_Bug]:applying_workaround 83.19:2 -4% 124.69:3 kmsg.ts.last 28.85:2 -2% 43.22:3 kmsg.ts.integrity:Unable_to_open_file:/etc/keys/x509_evm.der(-#) 28.85:2 -2% 43.22:3 kmsg.ts.integrity:Unable_to_open_file:/etc/keys/x509_ima.der(-#) 33.27:2 -24% 49.18:3 kmsg.ts.hisi_sas_v3_hw#:#:#:#hw_queues 48.59:2 -171% 67.75:3 kmsg.ts.hisi_sas_v3_hw###:#hw_queues [root@localhost /]# Signed-off-by: Zheng Zengkai <zhengzengkai(a)huawei.com> --- lib/stats.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stats.rb b/lib/stats.rb index 3ef5c937a..be2331936 100755 --- a/lib/stats.rb +++ b/lib/stats.rb @@ -630,7 +630,7 @@ def __get_changed_stats(a, b, is_incomplete_run, options) b.each_key { |k| a[k] = [0] * cols_a unless a.include?(k) } # rubocop:disable Style/CombinableLoops a.each do |k, v| - is_force_stat = options["force_#{k}"] + is_force_stat = options["force_#{k}"] || $opt_no_hide_noises next if v[-1].is_a?(String) next if options['perf'] && !perf_metric?(k) -- 2.20.1
1 0
0 0
[PATCH] sbin/split-job: get_kernel_info and init job result_root elements
by Zheng Zengkai 04 Aug '25

04 Aug '25
In order to avoid potential problems while assigning values to dimension keys(like commit,compiler,kconfig) from option parameters, assign default values to these dimension variables. Implement a helper function get_kernel_info() to retrieve the kernel version and the version of the compiler that is used to compile the kernel. Invoke the get_kernel_info() during collecting distribution information of local system. Initialize the dimension commit key with value kernelversion got from the distroinfo if no commit option is setting. Initialize the dimension compiler key with value kernelcompiler if it is not assigned. Initialize the dimension kconfig key with value "defconfig" if no kconfig option is setting, as we can't guarantee that we can get the right kconfig file name in various environment. Signed-off-by: Zheng Zengkai <zhengzengkai(a)huawei.com> --- lib/detect-system.sh | 24 ++++++++++++++++++++++++ lib/distro_info.rb | 9 ++++++--- sbin/split-job | 5 +++-- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/lib/detect-system.sh b/lib/detect-system.sh index 384480b29..da3cdea63 100755 --- a/lib/detect-system.sh +++ b/lib/detect-system.sh @@ -108,6 +108,30 @@ detect_libc_version() return 1 } +get_kernel_compiler() +{ + local system_dir=${1:-/} + local proc_version=$(<${system_dir}proc/version) + local pattern1='gcc[[:space:]].GCC.[[:space:]]*([0-9]+\.[0-9]+\.[0-9]+)' + local pattern2='gcc[[:space:]]+version[[:space:]]+([0-9]+\.[0-9]+\.[0-9]+)' + export _kernel_compiler='unknown' + + if [[ "$proc_version" =~ $pattern1 ]]; then + _kernel_compiler="${BASH_REMATCH[1]}" + elif [[ "$proc_version" =~ $pattern2 ]]; then + _kernel_compiler="${BASH_REMATCH[1]}" + fi +} + +get_kernel_info() +{ + local system_dir=${1:-/} + export _kernel_version='unknown' + + _kernel_version=$(command uname -r) + get_kernel_compiler $system_dir +} + detect_system() { local system_dir=${1:-/} diff --git a/lib/distro_info.rb b/lib/distro_info.rb index b17c77fa7..066be440c 100755 --- a/lib/distro_info.rb +++ b/lib/distro_info.rb @@ -6,7 +6,7 @@ module LKP # # DistroInfo is singleton, and provide information to distribution information of local system - # Include: system name, system version, system arch + # Include: system name, system version, system arch, kernel version, kernel compiler # In the backend, it's invoking detect-system.sh to get environment information. # Example of properties on debian # p systemName => Debian @@ -18,12 +18,12 @@ module LKP # class DistroInfo include Singleton - attr_reader :systemname, :systemnamel, :systemversion, :systemarch + attr_reader :systemname, :systemnamel, :systemversion, :systemarch, :kernelversion, :kernelcompiler def initialize(rootfs = '/') path_to_script = "#{LKP_SRC}/lib/detect-system.sh" - @systemname, @systemnamel, @systemversion, @systemarch = %x[ + @systemname, @systemnamel, @systemversion, @systemarch, @kernelversion, @kernelcompiler = %x[ export LKP_SRC=#{LKP_SRC} . #{path_to_script} detect_system #{rootfs} @@ -31,6 +31,9 @@ module LKP echo $_system_name_lowercase echo $_system_version get_system_arch #{rootfs} + get_kernel_info #{rootfs} + echo $_kernel_version + echo $_kernel_compiler ].split end end diff --git a/sbin/split-job b/sbin/split-job index bef7e970f..63b68bc84 100755 --- a/sbin/split-job +++ b/sbin/split-job @@ -97,8 +97,9 @@ ARGV.each do |jobfile| jobfile = Job.find_jobfile(jobfile) jobfile = refine_job_file(jobfile) if @opt_compatible jobs.load(jobfile, expand_template: true) || next - jobs['kconfig'] = @opt_kconfig if @opt_kconfig - jobs['commit'] = @opt_commit if @opt_commit + jobs['kconfig'] = @opt_kconfig || "defconfig" + jobs['commit'] = @opt_commit || distroinfo.kernelversion + jobs['compiler'] ||= distroinfo.kernelcompiler jobs['testbox'] = @opt_testbox jobs['arch'] ||= distroinfo.systemarch jobs['tbox_group'] = tbox_group(@opt_testbox) -- 2.20.1
1 0
0 0

HyperKitty Powered by HyperKitty