JSONAPI-Resources / JSONAPI-Resources/jsonapi-resources

Testing errors with in memory database

Open
#448 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted Type: Bug
Dominant language
Ruby
Stars
2.3k
Forks
546
PR merge metrics
No merged PRs in 30d

Description

In order to work around an issue with locked sqlite tables on Rails 4.0 tests the database was switched to using the in memory option for sqlite. I believe this is the cause of the random crashes I am seeing both locally and with Travis. We should switch back to using a traditional on disk database, however we need to fix the issue with locked tables with Rails 4.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Reproduce the random crashes locally and on Travis, then inspect the test database configuration and SQLite behavior under Rails 4.0; done means resolving the locked-table issue and achieving stable test runs with the appropriate database mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby, sqlite
Domain
databases, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.