liquid-labs / liquid-labs/catalyst-standards
Use local mysql with ramdisk for unit testing.
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
We currently use the cloud SQL with a local proxy for testing. More efficient / faster to use a local version of mysql server running with a ramdisk. Need to break out issues:
- [] Create new
catalyst-dbproject and move the DB control scripts fromcatalyst-core-apihere. - [] Add the idea that a service can be 'ready' or 'not ready' (as well as running and not-running). Perhaps scripts support an 'install' action to go from not-ready to ready (or, they leave it as a manual process).
- [] Add support for installing MySQL on Macs. Probably with Homebrew (issue for
catalyst-dbrepo). See what our options are as-far-as matching versions. - [] Configure mysql for ramdisk (see this for reference).
- [] Keep the proxy script, but add new 'mysql-local-ramdisk' service (or something).
- [] Update
catalyst-persons-apito use the new stuff as a test.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the DB control scripts in catalyst-core-api and the proxy script, then inspect how catalyst-persons-api uses them for tests. Break the work into the proposed catalyst-db project, service readiness and installation, local MySQL with a ramdisk, and the persons API integration. Done means local ramdisk-backed MySQL can replace cloud SQL for testing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql
- Domain
- databases, devops, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100