From 9972903bcd841e2733c7f842f8471fff9a928a2a Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Fri, 7 Apr 2017 17:05:24 +0800 Subject: Add todo items for integration Change-Id: I15cc5f81cc4aee27d536e8f654aa36c16c27c72b Signed-off-by: Yujun Zhang --- tests/integration/compute.yaml | 22 +++++++++++++++++++++- tests/integration/tasks/inxi.yaml | 13 +++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/integration/compute.yaml b/tests/integration/compute.yaml index 4cb71e9f..576c6a19 100644 --- a/tests/integration/compute.yaml +++ b/tests/integration/compute.yaml @@ -8,6 +8,7 @@ ############################################################################## --- +# Prepare connection to SUT (System Under Test) - hosts: fuel-master gather_facts: no tasks: @@ -20,13 +21,32 @@ ansible_user: root ansible_ssh_common_args: '-o StrictHostKeyChecking=No -o ProxyJump=fuel-master' with_items: "{{ hosts.compute }}" + +# Execute compute benchmark plan and collect data +# - system information +# - test condition +# - performance metrics - hosts: compute tasks: - name: check ssh connection ping: - - include: tasks/inxi.yaml + # collect system information + - name: collect system information + include: tasks/inxi.yaml + +# TODO(yujunz) Calculate QPI from composed metrics +# e.g. +# qpi: +# score: 2048 +# spec: compute +# metrics: # values, not spec +# - ref_metric_a +# - ref_metric_b + +# Generate and publish report - hosts: local tasks: - name: create system information report local_action: template src=templates/inxi-system-info.j2 dest=reports/inxi-system-info delegate_to: localhost + # TODO(yujunz) push test result to testapi diff --git a/tests/integration/tasks/inxi.yaml b/tests/integration/tasks/inxi.yaml index f8951dc1..a356040a 100644 --- a/tests/integration/tasks/inxi.yaml +++ b/tests/integration/tasks/inxi.yaml @@ -16,6 +16,19 @@ command: inxi -b -c0 -n register: inxi_log +# TODO(yujunz) normalize system information, test condition and performance metrics for future data mining +# e.g. convert "2 Deca core Intel Xeon E5-2650 v3s (-HT-MCP-SMP-) speed/max: 1200/3000 MHz" to +# --- +# processor: +# id: +# vendor: Intel +# product_family: Xeon +# processor_number: E5-2650 v3s +# number_of_cores: 2 +# number_of_threads: None # set `None` when data is not available +# base_frequency_mhz: 1200 +# max_turbo_frequency_mhz: 3000 +# cache_mb: None - name: collect system information from inxi collect: string: "{{ inxi_log.stdout }}" -- cgit 1.2.3-korg