Ryan Petrello
1e4cd9ea8f
document the SQL profiler
2019-02-15 16:34:34 -05:00
Ryan Petrello
6f43875e80
record profile data in /var/log/tower, not /var/lib/awx
2019-02-15 14:34:55 -05:00
Ryan Petrello
eed94b641e
add a custom DB backend that provides system-level SQL profiling
...
run this command on _any_ node in an awx cluster:
$ awx-manage profile_sql --threshold=2.0 --minutes=1
...and for 1 minute, the timing for _every_ SQL query in _every_ awx
Python process that uses the Django ORM will be measured
queries that run longer than (in this example) 2 seconds will be
written to a per-process sqlite database in /var/lib/awx/profile, and
the file will contain an EXPLAIN VERBOSE for the query and the full
Python stack that led to that SQL query's execution (this includes not
just WSGI requests, but background processes like the runworker and
dispatcher)
$ awx-manage profile_sql --threshold=0
...can be used to disable profiling again (if you don't want to wait for
the minute to expire)
2019-02-14 15:04:46 -05:00
softwarefactory-project-zuul[bot]
808ed74700
Merge pull request #3177 from wenottingham/i-am-going-to-need-a-diagram-for-this
...
Fix project updates to properly pull in role requirements.
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 23:16:34 +00:00
softwarefactory-project-zuul[bot]
ae7d26fab0
Merge pull request #3186 from vismay-golwala/update_schedule_constraint
...
Update standalone schedule name uniqueness combining it with unified …
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 22:03:54 +00:00
softwarefactory-project-zuul[bot]
631d3515f2
Merge pull request #3217 from mabashian/3164-cred-checkbox-alignment
...
Fixes cred form checkbox input styling
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 20:08:57 +00:00
softwarefactory-project-zuul[bot]
551218fd44
Merge pull request #3206 from AlanCoding/learn_to_share
...
Do not remove edges from other inventory sources
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 18:09:18 +00:00
Vismay Golwala
4af54517d2
Update standalone schedule name uniqueness combining it with unified job template.
...
Signed-off-by: Vismay Golwala <vgolwala@redhat.com>
2019-02-13 12:46:28 -05:00
softwarefactory-project-zuul[bot]
295afa805c
Merge pull request #3212 from AlanCoding/model_star_imports
...
Remove star imports in tasks and non-base models
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 15:05:01 +00:00
softwarefactory-project-zuul[bot]
ad4d286db5
Merge pull request #3225 from ryanpetrello/take-it-to-the-limit-one-more-time
...
remove field size limit on adhoc `limit`
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 14:50:56 +00:00
softwarefactory-project-zuul[bot]
eea97c8928
Merge pull request #3228 from jakemcdermott/dev-migrations-page
...
load migrations page in dev environment
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 14:44:53 +00:00
softwarefactory-project-zuul[bot]
06ff26752a
Merge pull request #3227 from ryanpetrello/fix-migration-tran-view
...
fix `/migrations_notran`
Reviewed-by: awxbot
https://github.com/awxbot
2019-02-13 14:25:29 +00:00
softwarefactory-project-zuul[bot]
58f5e1882e
Merge pull request #3218 from kialam/fix-3081-copy-project-expand-collapse
...
Fix expanded view not persisting when a user copies a project.
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 14:24:50 +00:00
Jake McDermott
2765367308
load migrations page in dev environment
2019-02-13 09:14:11 -05:00
Ryan Petrello
2a94611801
fix /migrations_notran
2019-02-13 08:59:20 -05:00
Ryan Petrello
e4eda3ef0d
remove field size limit on adhoc limit
...
related: 4b669fb16decaab824e64bbdc78de4683677fe95
2019-02-13 08:34:10 -05:00
AlanCoding
fbf6315a8c
remove star imports in tasks and non-base models
2019-02-12 19:50:30 -05:00
softwarefactory-project-zuul[bot]
8a3c10686e
Merge pull request #3191 from chrismeyersfsu/fix-job_event_smart_inv_slow_take_two_devel
...
do not observe queries when constructing them
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-12 22:27:11 +00:00
chris meyers
c121565209
add tests for host_filter
...
* Ensure that building the smart inventory query string doesn't invoke
the database.
2019-02-12 16:11:54 -05:00
kialam
099a82fdf8
Fix expanded view not persisting when a user copies a project.
2019-02-12 15:24:17 -05:00
softwarefactory-project-zuul[bot]
52b88d839e
Merge pull request #3216 from ryanpetrello/inv-gen-speedup
...
optimize a slow query in inventory script generation
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-12 18:48:30 +00:00
Ryan Petrello
e245e50ee4
optimize a slow query in inventory script generation
...
if we don't preload this column, Django needs it, and so it generates
one query per-host (!!!) to get it. For large (10k+ host) inventories,
this is incredibly slow.
see: https://github.com/ansible/awx/issues/3214
2019-02-12 12:55:38 -05:00
mabashian
a52c0415d9
Copied old bootstrap styles to display cred form checkboxes as they were before bootstrap upgrade
2019-02-12 11:48:48 -05:00
softwarefactory-project-zuul[bot]
570283fba2
Merge pull request #3207 from mabashian/pull-strings-ejs
...
Extract translations from ejs files
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-11 18:29:55 +00:00
AlanCoding
1bf2a455c6
Do not remove edges from other inventory sources
2019-02-11 13:08:19 -05:00
mabashian
cb222aaa40
Extract translations from ejs files
2019-02-11 12:59:47 -05:00
softwarefactory-project-zuul[bot]
6c9fc4a592
Merge pull request #3198 from mabashian/workflow-link-tooltip-overflow
...
Dynamically place link hover tooltip based on its size
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-11 17:01:08 +00:00
softwarefactory-project-zuul[bot]
53a6341320
Merge pull request #3148 from elyezer/e2e-screenshots
...
Add settings to control screenshot capturing
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-11 16:47:06 +00:00
mabashian
3321f3e34d
Fixes bug where tooltip was clipped when graph is zoomed out. Fixes linting error
2019-02-11 11:30:20 -05:00
Elyézer Rezende
953b6679ef
Add settings to control screenshot capturing
2019-02-11 14:05:11 -02:00
softwarefactory-project-zuul[bot]
d84b58c857
Merge pull request #3196 from kialam/detect-empty-artifacts
...
Job Artifacts: check for empty object rather than string value.
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-11 15:21:07 +00:00
softwarefactory-project-zuul[bot]
4d3cacf87f
Merge pull request #3185 from mabashian/edit-node-arrow
...
Use arrow instead of 'to' in workflow edit link title
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-11 14:51:05 +00:00
softwarefactory-project-zuul[bot]
b9b2affe44
Merge pull request #3202 from Spredzy/fix_3200
...
awx.main.tasks: Remove reference to unimport six
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-11 14:42:08 +00:00
Yanis Guenane
f61b6f9615
awx.main.tasks: Remove reference to unimport six
...
d4c3c08 re:introduced the use of six that has been removed by daeeaf4.
This lead to ""NameError: name 'six' is not defined"". This commit fixes
the issue.
Signed-off-by: Yanis Guenane <yguenane@redhat.com>
2019-02-11 09:41:09 +01:00
kialam
fcba02cd86
Linter fix.
2019-02-08 14:52:15 -07:00
mabashian
205dc93e65
Dynamically place link hover tooltip based on its size
2019-02-08 16:44:26 -05:00
kialam
28a29293c7
Check for empty object rather than string value.
2019-02-08 14:31:06 -07:00
softwarefactory-project-zuul[bot]
3b259de200
Merge pull request #3192 from chrismeyersfsu/awx-3.0.1
...
AWX 3.0.1
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-08 19:38:37 +00:00
chris meyers
63e3e733e0
AWX 3.0.1
2019-02-08 14:17:33 -05:00
chris meyers
ed78978b5f
do not observe queries when constructing them
...
* While parsing host_filter in the smart inventory code it was
triggering sql queries. This changset avoids executing the query that is
being constructed.
2019-02-08 12:30:51 -05:00
softwarefactory-project-zuul[bot]
844b0f86b8
Merge pull request #3187 from chrismeyersfsu/fix-schedule_too_damn_fast_devel
...
fix scheduled jobs race condition
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-08 14:39:43 +00:00
chris meyers
d4c3c089df
fix scheduled jobs race condition
...
* The periodic scheduler that runs and spawns jobs from Schedule()'s can
end up spawning more jobs than intended, for a single Schedule.
Specifically, when tower clustering is involed. This change adds a
"global" database lock around this critical code. If another process is
already doing the scheduling, short circuit.
2019-02-08 08:43:11 -05:00
softwarefactory-project-zuul[bot]
1328fb80a0
Merge pull request #3181 from mabashian/notif-related-tab
...
Show notification tab to notif admin users on jt/wf/project/inv source forms
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 21:39:33 +00:00
softwarefactory-project-zuul[bot]
1fbcd1b10b
Merge pull request #3183 from mabashian/3018-wf-save
...
Cancel node form when user deletes node being edited
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 20:59:45 +00:00
softwarefactory-project-zuul[bot]
11b26c199b
Merge pull request #3173 from mabashian/workflow-403
...
Adds proper error handling to workflow save related promises
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 19:25:40 +00:00
mabashian
b4d54895ff
Use arrow instead of 'to' in workflow edit link title
2019-02-07 13:46:22 -05:00
softwarefactory-project-zuul[bot]
463c4c1f7e
Merge pull request #3182 from kialam/artifacts-code-mirror
...
Artifacts Code Mirror
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 16:46:20 +00:00
kialam
76a16b329e
Conditionally show the Artifacts field.
2019-02-07 08:59:44 -07:00
mabashian
123f646cea
Cancel node form when user deletes node being edited
2019-02-07 10:47:21 -05:00
softwarefactory-project-zuul[bot]
d99c9c8dce
Merge pull request #3179 from ryanpetrello/failed_to_change
...
don't update parent event changed|failed in bulk (it's expensive for large tables)
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 15:16:22 +00:00