MDN/Development/CompatibilityTables/Infrastructure: Difference between revisions

→‎Current Testing and Deployment Process: Clarify testing and code reviews
(→‎Production Services: Switch to count of backend services)
(→‎Current Testing and Deployment Process: Clarify testing and code reviews)
Line 53: Line 53:
* Developers can run <code>make test-integration</code> to run a local API instance, load it with sample data, and make API requests.
* Developers can run <code>make test-integration</code> to run a local API instance, load it with sample data, and make API requests.
* Pull requests are tested in [https://travis-ci.org/mdn/browsercompat TravisCI].  This runs unit, QA, and integration tests.
* Pull requests are tested in [https://travis-ci.org/mdn/browsercompat TravisCI].  This runs unit, QA, and integration tests.
* ''Some'' pull requests are code reviewed by other developers, because 1) the API does not include personally identifiable information, 2) the service is not in production use outside of some beta testers, and 3) no other developers are currently familiar with the code.
* Some pull requests are code reviewed by other developers. Not all code is code reviewed, because 1) the API does not include personally identifiable information, 2) the service is not in production use outside of some beta testers, and 3) no other developers are currently familiar with the code.
* When ready, PRs are merged to the [https://github.com/mdn/browsercompat master branch]
* When ready, PRs are merged to the [https://github.com/mdn/browsercompat master branch]
* When the master branch is updated, the documentation is rebuilt and deployed to https://browsercompat.readthedocs.org
* When the master branch is updated, the documentation is rebuilt and deployed to https://browsercompat.readthedocs.org
Line 61: Line 61:
Heroku hosts the ''BrowserCompat DB'' and the ''Importer DB'' in a single [https://aws.amazon.com/rds/postgresql/ RDS PostgreSQL database]. When the data schema changes, database migrations are run using the command-line heroku client (<code>heroku run --app browsercompat ./manage.py migrate</code>)
Heroku hosts the ''BrowserCompat DB'' and the ''Importer DB'' in a single [https://aws.amazon.com/rds/postgresql/ RDS PostgreSQL database]. When the data schema changes, database migrations are run using the command-line heroku client (<code>heroku run --app browsercompat ./manage.py migrate</code>)


The '''C&M GUI''' is in early development. Developers can run tests with <code>ember test</code>, but 100% success is not yet expected. No tests are automatically run on push.
The '''C&M GUI''' is in early development. Developers can run tests with <code>ember test</code>. No tests are automatically run on push.


'''Authentication''' is done against https://browsercompat.herokuapp.com, and is not specifically tested. Firefox Accounts was integrated, but has since [https://bugzilla.mozilla.org/show_bug.cgi?id=1229037 broken].
'''Authentication''' is done against https://browsercompat.herokuapp.com, and is not specifically tested. Firefox Accounts was integrated, but has since [https://bugzilla.mozilla.org/show_bug.cgi?id=1229037 broken].
67

edits