{"action":"created","issue":{"url":"https://api.github.com/repos/cfe-lab/Kive/issues/500","repository_url":"https://api.github.com/repos/cfe-lab/Kive","labels_url":"https://api.github.com/repos/cfe-lab/Kive/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/cfe-lab/Kive/issues/500/comments","events_url":"https://api.github.com/repos/cfe-lab/Kive/issues/500/events","html_url":"https://github.com/cfe-lab/Kive/issues/500","id":130481307,"number":500,"title":"TransactionTestCase wipes fixtures installed by data migrations","user":{"login":"rhliang","id":5862525,"avatar_url":"https://avatars.githubusercontent.com/u/5862525?v=3","gravatar_id":"","url":"https://api.github.com/users/rhliang","html_url":"https://github.com/rhliang","followers_url":"https://api.github.com/users/rhliang/followers","following_url":"https://api.github.com/users/rhliang/following{/other_user}","gists_url":"https://api.github.com/users/rhliang/gists{/gist_id}","starred_url":"https://api.github.com/users/rhliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhliang/subscriptions","organizations_url":"https://api.github.com/users/rhliang/orgs","repos_url":"https://api.github.com/users/rhliang/repos","events_url":"https://api.github.com/users/rhliang/events{/privacy}","received_events_url":"https://api.github.com/users/rhliang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cfe-lab/Kive/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/cfe-lab/Kive/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"rhliang","id":5862525,"avatar_url":"https://avatars.githubusercontent.com/u/5862525?v=3","gravatar_id":"","url":"https://api.github.com/users/rhliang","html_url":"https://github.com/rhliang","followers_url":"https://api.github.com/users/rhliang/followers","following_url":"https://api.github.com/users/rhliang/following{/other_user}","gists_url":"https://api.github.com/users/rhliang/gists{/gist_id}","starred_url":"https://api.github.com/users/rhliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhliang/subscriptions","organizations_url":"https://api.github.com/users/rhliang/orgs","repos_url":"https://api.github.com/users/rhliang/repos","events_url":"https://api.github.com/users/rhliang/events{/privacy}","received_events_url":"https://api.github.com/users/rhliang/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cfe-lab/Kive/milestones/15","html_url":"https://github.com/cfe-lab/Kive/milestones/0.7%20-%20optimize%20batch%20processing","labels_url":"https://api.github.com/repos/cfe-lab/Kive/milestones/15/labels","id":1327761,"number":15,"title":"0.7 - optimize batch processing","description":"* check if data set has already been uploaded based on MD5 query to database, before time consuming file transfer (cfe-lab/micall#261)\r\n* optimize distribution of computing resources (fleet manager status query, cfe-lab/micall#282)\r\n","creator":{"login":"ArtPoon","id":1109328,"avatar_url":"https://avatars.githubusercontent.com/u/1109328?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtPoon","html_url":"https://github.com/ArtPoon","followers_url":"https://api.github.com/users/ArtPoon/followers","following_url":"https://api.github.com/users/ArtPoon/following{/other_user}","gists_url":"https://api.github.com/users/ArtPoon/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtPoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtPoon/subscriptions","organizations_url":"https://api.github.com/users/ArtPoon/orgs","repos_url":"https://api.github.com/users/ArtPoon/repos","events_url":"https://api.github.com/users/ArtPoon/events{/privacy}","received_events_url":"https://api.github.com/users/ArtPoon/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":24,"state":"open","created_at":"2015-09-28T20:01:58Z","updated_at":"2016-02-06T00:13:18Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-02-01T20:58:15Z","updated_at":"2016-02-11T19:43:15Z","closed_at":null,"body":"Running into this problem while working on #496.  The new-style execution code requires you to use a TransactionTestCase to run tests, as it uses multithreaded execution where each thread needs to access the database.\r\n\r\nHowever, the procedure between tests appears to be a flush followed by a reload of the test fixtures.  This wipes the initial fixtures that are installed by our data migrations.  As such, the first test of the test case works, and the subsequent ones fail due to database-related errors.\r\n\r\nWe need a workaround for this behaviour."},"comment":{"url":"https://api.github.com/repos/cfe-lab/Kive/issues/comments/183031663","html_url":"https://github.com/cfe-lab/Kive/issues/500#issuecomment-183031663","issue_url":"https://api.github.com/repos/cfe-lab/Kive/issues/500","id":183031663,"user":{"login":"rhliang","id":5862525,"avatar_url":"https://avatars.githubusercontent.com/u/5862525?v=3","gravatar_id":"","url":"https://api.github.com/users/rhliang","html_url":"https://github.com/rhliang","followers_url":"https://api.github.com/users/rhliang/followers","following_url":"https://api.github.com/users/rhliang/following{/other_user}","gists_url":"https://api.github.com/users/rhliang/gists{/gist_id}","starred_url":"https://api.github.com/users/rhliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhliang/subscriptions","organizations_url":"https://api.github.com/users/rhliang/orgs","repos_url":"https://api.github.com/users/rhliang/repos","events_url":"https://api.github.com/users/rhliang/events{/privacy}","received_events_url":"https://api.github.com/users/rhliang/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T19:43:15Z","updated_at":"2016-02-11T19:43:15Z","body":"The problem appeared to be that Django 1.9's test runner attempted to run the `kive/test_settings.py` file, which we used to run tests using SQLite.  (It probably looks for all files starting with `test`.)  I changed the names of `test_settings.py` and `test_settings_pg.py` to `settings_test_SQLite.py` and `settings_test_pg.py`, and that allows me to run the entire project's tests at once."}}