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

FS-1101; Fixing fleetdb mod name #14

Closed
wants to merge 6 commits into from
Closed

FS-1101; Fixing fleetdb mod name #14

wants to merge 6 commits into from

Conversation

jakeschuurmans
Copy link
Contributor

@jakeschuurmans jakeschuurmans commented Jan 26, 2024

Changing go mod name from

sh.hollow/serverservice

to

github.com/metal-toolbox/fleetdb

Bonus:

  • Adding a small script to auto install crdb.

…fleet-scheduler. This will break some stuff. . .

Also adding a small script to make it easier to install crdb
Copy link

codecov bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c5d78b4) 72.72% compared to head (dc0bf7d) 72.72%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #14   +/-   ##
=======================================
  Coverage   72.72%   72.72%           
=======================================
  Files          38       38           
  Lines        3732     3732           
=======================================
  Hits         2714     2714           
  Misses        760      760           
  Partials      258      258           
Flag Coverage Δ
unittests 72.72% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@DoctorVin DoctorVin left a comment

Choose a reason for hiding this comment

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

I tried to mark every place I saw a serverservice or a hollow. We should get rid of all that junk in this pass as well.

I like the "install crdb" script but I wonder if it might be better to just document it?

pkg/api/v1/router_firmware_set_test.go Outdated Show resolved Hide resolved
@@ -6,7 +6,7 @@ import (
"io"
"net/http"

serverservice "go.hollow.sh/serverservice/pkg/api/v1"
serverservice "github.com/metal-toolbox/fleetdb/pkg/api/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

it's only a mock but this should be fleetdb

@@ -6,7 +6,7 @@ import (
"strings"
"testing"

serverservice "go.hollow.sh/serverservice/pkg/api/v1"
serverservice "github.com/metal-toolbox/fleetdb/pkg/api/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

s/serverservice/fleetdb

"go.hollow.sh/serverservice/internal/dbtools"
serverservice "go.hollow.sh/serverservice/pkg/api/v1"
"github.com/metal-toolbox/fleetdb/internal/dbtools"
serverservice "github.com/metal-toolbox/fleetdb/pkg/api/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

I will keep noting it too. 😅

hollow "go.hollow.sh/serverservice/pkg/api/v1"
"github.com/metal-toolbox/fleetdb/internal/dbtools"
"github.com/metal-toolbox/fleetdb/internal/httpsrv"
hollow "github.com/metal-toolbox/fleetdb/pkg/api/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

hollow doesn't have any meaning for us. fleetdb or fleetdbApi or whatever.

"go.hollow.sh/serverservice/internal/dbtools"
serverservice "go.hollow.sh/serverservice/pkg/api/v1"
"github.com/metal-toolbox/fleetdb/internal/dbtools"
serverservice "github.com/metal-toolbox/fleetdb/pkg/api/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Token replacement

"go.hollow.sh/serverservice/internal/dbtools"
serverservice "go.hollow.sh/serverservice/pkg/api/v1"
"github.com/metal-toolbox/fleetdb/internal/dbtools"
serverservice "github.com/metal-toolbox/fleetdb/pkg/api/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

token replacement

@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

hollow "go.hollow.sh/serverservice/pkg/api/v1"
hollow "github.com/metal-toolbox/fleetdb/pkg/api/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

change hollow to something else please

@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

hollow "go.hollow.sh/serverservice/pkg/api/v1"
hollow "github.com/metal-toolbox/fleetdb/pkg/api/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if hollow means anything to anyone still here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I like the idea, but I wonder if there isn't an easier way via a package manager? I used brew install cockroach.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was simply following the instructions in the README. I keep forgetting homebrew exists. I just checked and apt and snap doesnt have it. I can rename this and remove the macOS side of it.

@jakeschuurmans
Copy link
Contributor Author

Once this is in, this can be merged.

Copy link
Contributor

@DoctorVin DoctorVin left a comment

Choose a reason for hiding this comment

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

A couple of mis-types?

Makefile Outdated Show resolved Hide resolved
README.md Outdated
@@ -1,9 +1,9 @@
# Server Service
# FleetDB

> This repository is experimental meaning that it's based on untested ideas or techniques and not yet established or finalized or involves a radically new and innovative style!
> This means that support is best effort (at best!) and we strongly encourage you to NOT use this in production.
Copy link
Contributor

Choose a reason for hiding this comment

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

I only just saw that we still have this "It's untested and untrusted" thing here. We should ditch that, but if you don't want to in they PR add a Jira ticket.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

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