Skip to content

Commit

Permalink
fixed collecting commits and returning counts
Browse files Browse the repository at this point in the history
  • Loading branch information
godfryd committed Apr 23, 2021
1 parent d777cbb commit f0fb748
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .kraken/static_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def stage(ctx):
"tool": "shell",
"cmd": "npm install",
"cwd": "kraken/ui",
"timeout": 240
"timeout": 400
}, {
"tool": "nglint",
"cwd": "kraken/ui"
Expand Down
1 change: 1 addition & 0 deletions server/kraken/server/bg/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def _analyze_dev_test_case_result(job, job_tcr):
def _analyze_job_results_history(job):
# TODO: if branch is forked from another base branch take base branch results into account

counts = [0, 0, 0, 0]
for job_tcr in job.results:
# analyze history
log.info('Analyze result %s %s', job_tcr, job_tcr.test_case.name)
Expand Down
2 changes: 1 addition & 1 deletion server/kraken/server/gitops.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _collect_commits_from_git_log(text):
if flag == 'A':
commit['added'].append(fpath)
elif flag == 'D':
commit['deleted'].append(fpath)
commit['removed'].append(fpath)
else:
commit['modified'].append(fpath)

Expand Down

0 comments on commit f0fb748

Please sign in to comment.