8000 EPIC: Split sql to sqlite/postgresql, Add mysql storage, Discord notifications, Local server for storage providers by titpetric · Pull Request #130 · sourcegraph/checkup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

EPIC: Split sql to sqlite/postgresql, Add mysql storage, Discord notifications, Local server for storage providers #130

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Jul 6, 2020

Conversation

titpetric
Copy link
Contributor
@titpetric titpetric commented Jun 26, 2020

Due to issues with SQLite (CGO, long builds), we now have:

  • sqlite3 storage provider (opt-in with make build-sqlite3)
  • postgres storage provider (built-in)
  • mysql storage provider (built-in, new)

The postgres and mysql storage providers have go-native drivers which don't require CGO, which also means fast build times and wider database support. The current sql implementation is deprecated (but not outright disabled, which will be the next step after some time). The current sql implementation also doesn't work on postgresql due to invalid SQL query placeholders.

Additionally, a full integration test has been added for both postgres and mysql databases, using Drone CI. To run the test suite, you should install drone-cli locally, and run drone exec. Both storage drivers are integration tested against a real database now.

Other minor changes:

  • mailgun value for to changes from string to []string, for multiple recipients,
  • updated README.md with latest documentation for the new storage providers,
  • minor documentation updates to README for mailgun, some godoc link names, and features

PTAL @beyang

titpetric added 22 commits June 26, 2020 14:06
@titpetric
Copy link
Contributor Author

Additional changes after initial PR:

  • Checkup: with new storage providers, I added a serve command to load/serve checks from a range of providers (fs, sqlite3, postgres, mysql),
  • Checkup every checks - first check runs immediately. Before it waited before running the first check.
  • Statuspage: enable both FS and S3 drivers and use configuration to load the appropriate one (more friendly configuration)
  • Statuspage: set up reasonable defaults for config.js with new caddy serve,
  • Update README for all

@titpetric titpetric changed the title Feature/pgsql sqlite split Split sql to sqlite/postgresql, Add mysql storage, Discord notifications, Local server for storage providers Jun 28, 2020
- bump go dependency to 1.14
- run server by default
- add docker-compose.yml file
- bundle statuspage in docker image
@titpetric titpetric requested a review from beyang June 29, 2020 07:05
@titpetric titpetric changed the title Split sql to sqlite/postgresql, Add mysql storage, Discord notifications, Local server for storage providers EPIC: Split sql to sqlite/postgresql, Add mysql storage, Discord notifications, Local server for storage providers Jun 29, 2020
@titpetric titpetric merged commit 0624503 into master Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0