Merge lp:~roadmr/isitdeployable/jenkins into lp:isitdeployable

Proposed by Daniel Manrique
Status: Merged
Approved by: Daniel Manrique
Approved revision: 286
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: lp:~roadmr/isitdeployable/jenkins
Merge into: lp:isitdeployable
Diff against target: 34 lines (+4/-1)
3 files modified
Makefile (+1/-1)
django_project/settings_base.py (+1/-0)
requirements-devel.txt (+2/-0)
To merge this branch: bzr merge lp:~roadmr/isitdeployable/jenkins
Reviewer Review Type Date Requested Status
Ricardo Kirkner (community) Approve
Review via email: mp+341227@code.launchpad.net

Commit message

Use jenkins testing for make test, for better ols-jenkaas integration.

This is used in the test target replacing "test" itself.

Should be a drop-in replacement but it generates the reports directory with coverage and timing xml reports

Description of the change

Use jenkins testing for make test, for better ols-jenkaas integration.

This is used in the test target replacing "test" itself.

Should be a drop-in replacement but it generates the reports directory with coverage and timing xml reports

To post a comment you must log in.
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

Should we maybe keep the "test" target for local development, and add a new target for jenkins specifically? This is to avoid the extra overhead of collecting performance and coverage metrics during local runs

Revision history for this message
Daniel Manrique (roadmr) wrote :

I timed and:

using "jenkins" instead of "test" takes the same time and adds the reports xml we care about with timing info.

using jenkins --enable-coverage takes 3x as long (90 seconds vs. 30). So for now I removed it because we don't care too much about coverage. But we discussed adding a make target that does coverage, and trying to use that in a separate jenkins job. I'll work on that next/later since coverage is useful but doesn't help with the problem at hand which is gathering info on slow tests.

Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

LGTM

review: Approve
Revision history for this message
Otto Co-Pilot (otto-copilot) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2018-03-07 14:55:47 +0000
+++ Makefile 2018-03-09 11:43:12 +0000
@@ -129,7 +129,7 @@
129 $(MAKE) stop-supervisor129 $(MAKE) stop-supervisor
130130
131test:131test:
132 $(DJANGO_MANAGE) test $(ARGS)132 $(DJANGO_MANAGE) jenkins $(ARGS)
133133
134### wheels ###134### wheels ###
135$(WHEELS_DIR):135$(WHEELS_DIR):
136136
=== modified file 'django_project/settings_base.py'
--- django_project/settings_base.py 2018-01-30 23:38:28 +0000
+++ django_project/settings_base.py 2018-03-09 11:43:12 +0000
@@ -58,6 +58,7 @@
58 'ordered_model',58 'ordered_model',
59 'checklist',59 'checklist',
60 'pgtools',60 'pgtools',
61 'django_jenkins',
61 #'debug_toolbar',62 #'debug_toolbar',
62)63)
63INTERNAL_IPS = ('127.0.0.1',)64INTERNAL_IPS = ('127.0.0.1',)
6465
=== modified file 'requirements-devel.txt'
--- requirements-devel.txt 2016-09-27 14:31:46 +0000
+++ requirements-devel.txt 2018-03-09 11:43:12 +0000
@@ -1,3 +1,5 @@
1mock==1.0.11mock==1.0.1
2pbr==1.10.02pbr==1.10.0
3testscenarios==0.5.03testscenarios==0.5.0
4django-jenkins==0.110.0
5coverage==4.5.1

Subscribers

People subscribed via source and target branches