Skip to content
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

feat: libsql experiment #2178

Merged
merged 22 commits into from
Oct 19, 2023
Merged

feat: libsql experiment #2178

merged 22 commits into from
Oct 19, 2023

Conversation

markphelps
Copy link
Collaborator

@markphelps markphelps commented Sep 30, 2023

  • libsql support
  • update to go 1.21

@codecov
Copy link

codecov bot commented Sep 30, 2023

Codecov Report

Merging #2178 (8a91223) into main (d3a67b5) will increase coverage by 0.08%.
The diff coverage is 82.05%.

@@            Coverage Diff             @@
##             main    #2178      +/-   ##
==========================================
+ Coverage   70.84%   70.92%   +0.08%     
==========================================
  Files          77       77              
  Lines        7307     7334      +27     
==========================================
+ Hits         5177     5202      +25     
- Misses       1831     1833       +2     
  Partials      299      299              
Files Coverage Δ
internal/config/database.go 91.66% <ø> (ø)
internal/storage/sql/db.go 90.18% <100.00%> (+1.77%) ⬆️
internal/storage/sql/errors.go 95.00% <100.00%> (ø)
internal/cmd/grpc.go 9.34% <0.00%> (ø)
internal/storage/sql/migrator.go 19.56% <0.00%> (-0.44%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -36,12 +36,39 @@ func TestOpen(t *testing.T) {
{
name: "sqlite url",
cfg: config.DatabaseConfig{
URL: "file:flipt.db",
URL: "file:/flipt.db",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this backward compatible? ie does it also work with file:flipt.db ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markphelps Yes it seems to work with file:flipt.db as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a test just to be sure?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

examples/database/libsql/docker-compose.yml Outdated Show resolved Hide resolved
@yquansah yquansah self-requested a review October 18, 2023 20:13
@yquansah yquansah marked this pull request as ready for review October 18, 2023 20:14
@yquansah yquansah requested a review from a team as a code owner October 18, 2023 20:14
@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2023

Uffizzi Ephemeral Environment deployment-38949

☁️ https://app.uffizzi.com/github.com/flipt-io/flipt/pull/2178

📄 View Application Logs etc.

⏰ This Preview will be destroyed in 1 hours at: Thu Oct 19 14:35:57 UTC 2023

What is Uffizzi? Learn more!

@markphelps markphelps changed the title feat(wip): libsql experiment feat: libsql experiment Oct 19, 2023
Copy link
Contributor

@GeorgeMac GeorgeMac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Only one question regarding the added Dockerfile.dev file.

@@ -0,0 +1,26 @@
FROM golang:1.21-alpine3.18
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this one still needed?
I can't remember how that conversation ended.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it still is for the dev docker-compose to not build the UI in the Go binary

@yquansah yquansah merged commit c275cc2 into main Oct 19, 2023
32 checks passed
@yquansah yquansah deleted the libsql branch October 19, 2023 17:48
@yquansah yquansah temporarily deployed to uffizzi October 19, 2023 17:48 — with GitHub Actions Inactive
@markphelps markphelps removed the needs docs Requires documentation updates label Oct 23, 2023
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.

3 participants