[LNT] r318481 - Add a yaml schema for the nts suite
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 16:36:30 PST 2017
Author: matze
Date: Thu Nov 16 16:36:30 2017
New Revision: 318481
URL: http://llvm.org/viewvc/llvm-project?rev=318481&view=rev
Log:
Add a yaml schema for the nts suite
While the schema itself is still built-in to lnt (all the information is
in lnt/server/db/migrations/* as well) it is nice to see the default
schema expressed as yaml.
I also plan to extend the schema files with some supplemental
information soon.
Added:
lnt/trunk/schemas/nts.yaml
Modified:
lnt/trunk/tests/SharedInputs/create_temp_instance.py
Added: lnt/trunk/schemas/nts.yaml
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/schemas/nts.yaml?rev=318481&view=auto
==============================================================================
--- lnt/trunk/schemas/nts.yaml (added)
+++ lnt/trunk/schemas/nts.yaml Thu Nov 16 16:36:30 2017
@@ -0,0 +1,31 @@
+# Nightly Test Suite (nts) schema. This was originally developed for the llvm
+# test-suite and now is LNTs default schema. It also has some extra fields
+# like `score` or `mem_bytes` to work for more test suites out of the box.
+format_version: '2'
+name: nts
+metrics:
+- name: compile_time
+ type: Real
+- name: compile_status
+ type: Status
+- name: execution_time
+ type: Real
+- name: execution_status
+ type: Status
+- name: score
+ type: Real
+ bigger_is_better: true
+- name: mem_bytes
+ type: Real
+- name: hash
+ type: Hash
+- name: hash_status
+ type: Status
+- name: code_size
+ type: Real
+run_fields:
+- name: llvm_project_revision
+ order: true
+machine_fields:
+- name: hardware
+- name: os
Modified: lnt/trunk/tests/SharedInputs/create_temp_instance.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/SharedInputs/create_temp_instance.py?rev=318481&r1=318480&r2=318481&view=diff
==============================================================================
--- lnt/trunk/tests/SharedInputs/create_temp_instance.py (original)
+++ lnt/trunk/tests/SharedInputs/create_temp_instance.py Thu Nov 16 16:36:30 2017
@@ -130,6 +130,8 @@ def main():
run_sql_file(lnt_db, extra_sql, dest_dir)
os.mkdir(os.path.join(dest_dir, 'schemas'))
filedir = os.path.dirname(__file__)
+ os.symlink(os.path.join(filedir, '..', '..', 'schemas', 'nts.yaml'),
+ os.path.join(dest_dir, 'schemas', 'nts.yaml'))
os.symlink(os.path.join(filedir, '..', '..', 'schemas', 'compile.yaml'),
os.path.join(dest_dir, 'schemas', 'compile.yaml'))
More information about the llvm-commits
mailing list