chore: update repository references from uptime-industries to computeblade-community (#70)

* chore: update repository references from uptime-industries to compute-blade-community

chore: update repository references from uptime-industries to compute-blade-community for consistency and clarity across all files
fix: update links in CHANGELOG.md and README.md to point to the new repository location for accurate documentation
fix: update Dockerfile and systemd service file to reflect the new repository URL for proper source tracking
refactor: change import paths in Go files to use the new repository name for correct package referencing

* chore: Add CODEOWNERS

* feat: add auto-labeling

---------

Co-authored-by: Cedric Kienzler <cedric@specht-labs.de>
This commit is contained in:
Cedric Kienzler
2025-06-06 14:03:02 +02:00
committed by Cedric Kienzler
parent 27a87f3c0f
commit 631ddfedd4
44 changed files with 245 additions and 150 deletions

View File

@@ -3,7 +3,7 @@ package agent
import (
"context"
"github.com/uptime-industries/compute-blade-agent/pkg/events"
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
)
// ComputeBladeAgent implements the core-logic of the agent. It is responsible for handling events and interfacing with the hardware.

View File

@@ -4,9 +4,9 @@ import (
"context"
"sync"
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/uptime-industries/compute-blade-agent/pkg/events"
"go.uber.org/zap"
)

View File

@@ -6,9 +6,9 @@ import (
"testing"
"time"
"github.com/compute-blade-community/compute-blade-agent/pkg/agent"
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
"github.com/stretchr/testify/assert"
"github.com/uptime-industries/compute-blade-agent/pkg/agent"
"github.com/uptime-industries/compute-blade-agent/pkg/events"
)
func TestNewComputeBladeState(t *testing.T) {

View File

@@ -13,8 +13,8 @@ import (
"os"
"time"
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
"github.com/sierrasoftworks/humane-errors-go"
"github.com/uptime-industries/compute-blade-agent/pkg/util"
)
// LoadAndValidateCertificate loads and validates a certificate and its private key from the provided file paths.
@@ -107,7 +107,7 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
if err != nil {
return nil, nil, humane.Wrap(err, "failed to extract hostname",
"this should never happen",
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
)
}
@@ -127,14 +127,14 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
if hostIps, err = util.GetHostIPs(); err != nil {
return nil, nil, humane.Wrap(err, "failed to extract server IPs",
"this should never happen",
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
)
}
default:
return nil, nil, humane.New(fmt.Sprintf("invalid certificate usage %s", options.Usage.String()),
"this should never happen",
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
)
}
@@ -155,7 +155,7 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
if err != nil {
return nil, nil, humane.Wrap(err, "failed to generate client key",
"this should never happen",
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
)
}
@@ -172,7 +172,7 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
if err != nil {
return nil, nil, humane.Wrap(err, "failed to create client certificate",
"this should never happen",
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
)
}
@@ -180,7 +180,7 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
if err != nil {
return nil, nil, humane.Wrap(err, "failed to marshal client private key",
"this should never happen",
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
)
}
@@ -227,7 +227,7 @@ func GetCertPoolFrom(caPath string) (pool *x509.CertPool, herr humane.Error) {
if !pool.AppendCertsFromPEM(caCert) {
return nil, humane.New("failed to append CA certificate to pool",
"this should never happen",
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
"Verify if the CA certificate is valid by run the following command:",
fmt.Sprintf("openssl x509 -in %s -text -noout", caPath),
)

View File

@@ -3,8 +3,8 @@ package events_test
import (
"testing"
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
"github.com/stretchr/testify/assert"
"github.com/uptime-industries/compute-blade-agent/pkg/events"
)
func TestEventBusManySubscribers(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package fancontroller_test
import (
"testing"
"github.com/uptime-industries/compute-blade-agent/pkg/fancontroller"
"github.com/compute-blade-community/compute-blade-agent/pkg/fancontroller"
)
func TestFanControllerLinear_GetFanSpeed(t *testing.T) {

View File

@@ -6,8 +6,8 @@ import (
"context"
"log"
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
)
func ExampleNewSmartFanUnit() {

View File

@@ -3,7 +3,7 @@ package hal
import (
"context"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
)
type FanUnitKind uint8

View File

@@ -14,8 +14,8 @@ import (
"syscall"
"time"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/uptime-industries/compute-blade-agent/pkg/log"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
"github.com/warthog618/gpiod"
"github.com/warthog618/gpiod/device/rpi"
"go.uber.org/zap"

View File

@@ -6,7 +6,7 @@ import (
"context"
"time"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
"go.uber.org/zap"
)

View File

@@ -4,11 +4,11 @@ package hal
import (
"context"
"github.com/uptime-industries/compute-blade-agent/pkg/log"
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
"go.uber.org/zap"
"math"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
"github.com/warthog618/gpiod"
"github.com/warthog618/gpiod/device/rpi"
)

View File

@@ -3,8 +3,8 @@ package hal
import (
"context"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
"github.com/stretchr/testify/mock"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
)
// fails if ComputeBladeHalMock does not implement ComputeBladeHal

View File

@@ -8,11 +8,11 @@ import (
"io"
"sync"
"github.com/uptime-industries/compute-blade-agent/pkg/events"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/uptime-industries/compute-blade-agent/pkg/log"
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit"
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit"
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
"go.bug.st/serial"
"go.uber.org/zap"
"golang.org/x/sync/errgroup"

View File

@@ -5,9 +5,9 @@ import (
"errors"
"time"
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/uptime-industries/compute-blade-agent/pkg/util"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
)
// LedEngine is the interface for controlling effects on the computeblade RGB LEDs

View File

@@ -8,11 +8,11 @@ import (
"testing"
"time"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/ledengine"
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
"github.com/stretchr/testify/assert"
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/uptime-industries/compute-blade-agent/pkg/ledengine"
"github.com/uptime-industries/compute-blade-agent/pkg/util"
)
func TestNewStaticPattern(t *testing.T) {

View File

@@ -1,8 +1,8 @@
package ledengine
import (
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
"github.com/uptime-industries/compute-blade-agent/pkg/util"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
)
// Options are the options for the LedEngine

View File

@@ -3,8 +3,8 @@ package smartfanunit
import (
"errors"
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
)
// Blade -> FanUnit communication

View File

@@ -1,6 +1,6 @@
package smartfanunit
import "github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
import "github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
func float32To24Bit(val float32) proto.Data {
// Convert float32 to number with 3 bytes (0.1 precision)

View File

@@ -5,8 +5,8 @@ import (
"context"
"testing"
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
"github.com/stretchr/testify/assert"
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
)
func TestWritePacket(t *testing.T) {

View File

@@ -1,7 +1,7 @@
package smartfanunit
import (
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
)
const (