Граф коммитов

34 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley 61d596267a Bug 1212937 - Remove API support for OAuth credentials
Since they are deprecated and all submitters have switched over to using
Hawk credentials instead.

The automatically created migrations file was edited to remove the
unused `models` import, since otherwise flake8 complains. We could
alternatively exclude the migrations directory from flake8, however we
would then miss linter errors in any hand-written migrations files.

In addition, Django have fixed the issue in 1.9:
a7bc00e17b
2015-12-16 18:12:41 +00:00
Ed Morley 31c5bdca67 Bug 1228739 - Remove unnecessary .gitignore entries & clean up ordering
Removed:
*.mo
*.py[od]
.coverage
.mr.developer.cfg
.project
.pydevproject
.tmp/
.tox
htmlcov/
LOGFILE
nosetests.xml
pip-log.txt
supervisor*.log
test.log
treeherder*.log
treeherder.log.*
2015-11-28 16:02:30 +00:00
Kyle Lahnakoski 899aeb45fc ignore ide files 2015-11-24 10:31:17 -05:00
Ed Morley 2227dc3d0e Bug 1223824 - Add the new pytest .cache/ directory to .gitignore
https://pytest.org/latest/cache.html
2015-11-16 17:45:27 +00:00
Ed Morley f059f88d85 Bug 1205758 - Run `grunt build` as part of the stage/prod deploy
In update.py, the line outputting revision.txt has to be moved later,
since the `dist/` directory won't exist until grunt build has run. In
addition, since `grunt build` removes the entire `dist/` directory, we
no longer need to manually remove *.gz.

We use the `--production` options for both `npm install` and
`grunt build`, so that the `devDependencies` in package.json are
ignored, and we only install/load the ones listed under `dependencies`
in package.json - since that's all that is required for the build.

We have to use `./node_modules/.bin/grunt` rather than `grunt`, since
grunt-cli is not installed globally on the treeherder admin machine for
greater isolation between stage and production.
2015-10-31 16:06:08 +00:00
Ed Morley 8ae9071901 Bug 1197186 - Move settings to treeherder/config/
Since they're not specific to the Django app 'webapp'.

Whilst we're there, the local & example settings files have been
renamed. In the future I'd like to combine settings_local.example.py
with puppet/files/treeherder/local.vagrant.py, but I'll do that in
another bug.
2015-10-08 19:59:46 +01:00
Ed Morley 5892c72eb2 Bug 1197796 - Make WhiteNoise serve the static assets gzipped
On Heroku, there is no load balancer or Varnish-like cache in front of
gunicorn, so we must handle gzipping responses in the app.

In order for WhiteNoise to serve gzipped static content, assets must be
gzipped on disk in advance (doing so on-demand in Python would not be
as performant). WhiteNoise will then serve the `.gz` version of files in
preference to the original, if the client indicated it supported gzip.

For assets covered by Django's collectstatic, gzipping the assets only
requires using WhiteNoise's GzipManifestStaticFilesStorage backend,
which wraps Django's ManifestStaticFilesStorage to create hashed+gzipped
versions of static assets:
http://whitenoise.evans.io/en/latest/django.html#add-gzip-and-caching-support

The collectstatic generated files will then contain the file hash in
their filename, so WhiteNoise can also serve them with a large max-age
to avoid further requests if the file contents have not changed.

For the UI files under `dist/`, we cannot rely on the Django storage
backend, since the directory isn't covered by STATICFILES_DIRS (it is
instead made known to WhiteNoise via `WHITENOISE_ROOT`). As such, files
under `dist/` are gzipped via an additional step during deployment. See:
http://whitenoise.evans.io/en/latest/base.html#gzip-support

Files whose extension is on the blacklist, or that are not >5% smaller
when compressed, are skipped during compression.
2015-08-26 22:10:05 +01:00
Mauro Doglio b008a335ef Bug 1124382 - Move static and media folders to treeherder/ 2015-08-26 21:56:39 +01:00
Ed Morley 90576b9fd9 Bug 1198452 - Save the deployed revision to <site-root>/revision.txt
Since WhiteNoise won't serve files from /media/, so the existing file
in `treeherder/webapp/media/` 404s when accessed via:
https://treeherder.{mozilla,allizom}.org/media/revision

IMO the site root makes more sense for this file anyway, so let's just
save it under `dist/`. Also adds a .txt extension for clarity.

The old file has been left for now to ease the transition, and will be
deleted once the IRC pushbots config and What's Deployed URLs have been
updated.
2015-08-25 21:37:48 +01:00
Ed Morley b9855cb9f9 Bug 1178832 - Cleanup leftovers from using Cython
Also remove some .gitignore entries from when we had a vendor directory.
2015-07-01 00:21:36 +01:00
Ed Morley 9210d9bf27 Bug 1056877 - Merge .gitignore and .gitignore-ui 2015-05-20 12:34:15 +01:00
Ed Morley 21328551fa Bug 1066266 - Add some stage/prod specific files to gitignore
To ignore:
deployment/update/commander_settings.py
treeherder/webapp/media/revision
2015-02-13 18:38:46 +00:00
Ed Morley cf06199a67 Bug 1132893 - Move the Builds4hAnalyzer blacklist inline
A json file is overkill, and it is currently in a directory intended for
production-specific files, so move the blacklist inline. We should
probably move the whole analyser to another file, but that can be done
later.

Also store the analyser output in the root of the media directory, since
a subdirectory is unnecessary. The media directory is now empty, so we
must use .gitkeep to ensure it is created.
2015-02-13 18:38:46 +00:00
Ed Morley 107a30e46d Bug 1114366 - Add celerybeat-schedule to .gitignore 2015-01-17 11:26:32 +00:00
Cameron Dawson 0be2592885 fix bug 1059222 - refresh flat_exclusions on save 2014-09-04 17:56:30 -07:00
pnispel 1a7a9e5c64 changed directory for log cache from /var/tmp to webapp/log_cache 2014-05-22 14:24:37 -07:00
Cameron Dawson d9429382cb adding supervisord logs to ignore list 2014-04-01 12:06:04 -07:00
Jonathan Eads 044217b997 removed manage.py command to write out credentials 2014-02-04 15:23:01 -08:00
Jonathan Eads ab83b849b3 Merge branch 'master' of ssh://github.com/mozilla/treeherder-service into oauth-implementation 2014-01-28 14:33:54 -08:00
Cameron Dawson 75428584bc new files to ignore 2014-01-16 12:00:08 -08:00
Jonathan Eads 601f46a22b added oauth requirements 2014-01-08 17:23:57 -08:00
Jonathan Eads 1d3631b8ba added buildername blacklist 2013-12-10 12:01:52 -08:00
Jonathan Eads 3b5dc253a8 added new media directory to gitignore 2013-12-10 10:22:20 -08:00
Cameron Dawson 595fce75f0 updating .gitignore for logs and .c files 2013-12-02 16:56:03 -08:00
Cameron Dawson 49c74c62f5 ignore log files 2013-08-23 17:50:37 -07:00
Cameron Dawson c7e677b09c refactor of as_list and as_single base methods 2013-08-13 14:19:22 -07:00
mdoglio 81b441c527 add generate-vendor-lib.py 2013-06-10 12:14:47 +01:00
Jonathan Eads 80cac2b53e merged .gitignore changes, added .swp for vi/vim 2013-03-12 10:18:07 -07:00
mdoglio fe1c449459 add sphinx docs setup 2013-03-12 13:17:52 +00:00
mdoglio a2b0a00fcb add py.test setup with support for coverage 2013-03-11 20:01:17 +00:00
mdoglio d101a5e222 relocate webapp under treeherder 2013-03-07 19:09:35 +00:00
mdoglio cd92a55e5e add .vagrant to .gitignore 2013-03-06 16:21:55 +00:00
mdoglio 89dcd372e7 add .DS_store to .gitignore 2013-03-06 16:20:57 +00:00
Ed Morley 1ee561bd02 Initial commit 2013-02-27 11:17:39 -08:00