[Why] We had filtered all useless job which include nil job['suite'] by the compass-ci/lib/params_group.rb def extract_jobs_list(jobs_list) jobs_list.map! do |job| job['_source'] if job_is_useful?(job) end ... end
def job_is_useful?(job) ... suite = job['_source']['suite'] return unless suite && stats.keys.any? { |stat| stat.start_with?(suite) } ... end
Signed-off-by: Lu Weitao luweitaobe@163.com --- lib/matrix2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/matrix2.rb b/lib/matrix2.rb index d8326c5..09573ec 100644 --- a/lib/matrix2.rb +++ b/lib/matrix2.rb @@ -83,7 +83,7 @@ def create_matrix(job_list) suites = [] job_list.each do |job| stats = job['stats'] - suites << job['suite'] if job['suite'] + suites << job['suite']
stats.each do |key, value| next if key.include?('timestamp')