Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
1e9649e0
Commit
1e9649e0
authored
Nov 16, 2016
by
Calen Pennington
Committed by
GitHub
Nov 16, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13972 from cpennington/timer-logging
Add timer logging to jenkins test runs
parents
695e5c07
f5f64c03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
pavelib/utils/timer.py
+3
-2
scripts/jenkins-common.sh
+5
-0
No files found.
pavelib/utils/timer.py
View file @
1e9649e0
...
@@ -63,8 +63,9 @@ def timed(wrapped, instance, args, kwargs): # pylint: disable=unused-argument
...
@@ -63,8 +63,9 @@ def timed(wrapped, instance, args, kwargs): # pylint: disable=unused-argument
log_message
.
update
(
exception_info
)
log_message
.
update
(
exception_info
)
try
:
try
:
if
not
exists
(
dirname
(
log_path
)):
log_dir
=
dirname
(
log_path
)
os
.
makedirs
(
dirname
(
log_path
))
if
log_dir
and
not
exists
(
log_dir
):
os
.
makedirs
(
log_dir
)
with
open
(
log_path
,
'a'
)
as
outfile
:
with
open
(
log_path
,
'a'
)
as
outfile
:
json
.
dump
(
json
.
dump
(
...
...
scripts/jenkins-common.sh
View file @
1e9649e0
...
@@ -63,3 +63,8 @@ echo "npm version is `npm --version`"
...
@@ -63,3 +63,8 @@ echo "npm version is `npm --version`"
# (In this case, remove it. That ensures from run-to-run, it is a clean npm environment)
# (In this case, remove it. That ensures from run-to-run, it is a clean npm environment)
echo
"--> Cleaning npm cache"
echo
"--> Cleaning npm cache"
npm cache clean
npm cache clean
# Log any paver or ansible command timing
TIMESTAMP
=
$(
date +%s
)
export
PAVER_TIMER_LOG
=
"test_root/log/timing.paver.
$TIMESTAMP
.log"
export
ANSIBLE_TIMER_LOG
=
"test_root/log/timing.ansible.
$TIMESTAMP
.log"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment