liquid-labs / liquid-labs/catalyst-standards

Use local mysql with ramdisk for unit testing.

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

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-db project and move the DB control scripts from catalyst-core-api here.
  • [] 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-db repo). 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-api to use the new stuff as a test.

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.