Skip to content

Commit 6421521

Browse files
authored
feat: migrate to uptime-industries gh org (#37)
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
1 parent c93e561 commit 6421521

33 files changed

+79
-87
lines changed

.goreleaser.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ dockers:
2828
- agent
2929
- bladectl
3030
image_templates:
31-
- ghcr.io/uptime-lab/computeblade-agent:latest
32-
- ghcr.io/uptime-lab/computeblade-agent:{{ .Tag }}
33-
- ghcr.io/uptime-lab/computeblade-agent:v{{ .Major }}
31+
- ghcr.io/github.com/uptime-induestries/compute-blade-agent:latest
32+
- ghcr.io/github.com/uptime-induestries/compute-blade-agent:{{ .Tag }}
33+
- ghcr.io/github.com/uptime-induestries/compute-blade-agent:v{{ .Major }}
3434
build_flag_templates:
3535
- "--label=org.opencontainers.image.created={{.Date}}"
3636
- "--label=org.opencontainers.image.title={{.ProjectName}}"
@@ -69,7 +69,7 @@ nfpms:
6969
- id: computeblade-agent
7070
maintainer: Matthias Riegler <me@xvzf.tech>
7171
description: Computeblade Agent
72-
homepage: https://github.com/uptime-lab/computeblade-agent
72+
homepage: https://github.com/github.com/uptime-induestries/compute-blade-agent
7373
license: Apache 2.0
7474
formats:
7575
- deb

CHANGELOG.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
# Changelog
22

3-
## [0.5.0](https://github.com/Uptime-Lab/computeblade-agent/compare/v0.4.1...v0.5.0) (2023-11-25)
3+
## [0.5.0](https://github.com/github.com/uptime-induestries/compute-blade-agent/compare/v0.4.1...v0.5.0) (2023-11-25)
44

55

66
### Features
77

8-
* add smart fan unit support ([#29](https://github.com/Uptime-Lab/computeblade-agent/issues/29)) ([9992037](https://github.com/Uptime-Lab/computeblade-agent/commit/99920370fba8176dc34243d28281aa343f437fc5))
8+
* add smart fan unit support ([#29](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/29)) ([9992037](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/99920370fba8176dc34243d28281aa343f437fc5))
99

1010

1111
### Bug Fixes
1212

13-
* smart fan unit improvements ([#31](https://github.com/Uptime-Lab/computeblade-agent/issues/31)) ([a8d470d](https://github.com/Uptime-Lab/computeblade-agent/commit/a8d470d4f9ec2749e1067474805f67639cd24c09))
13+
* smart fan unit improvements ([#31](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/31)) ([a8d470d](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/a8d470d4f9ec2749e1067474805f67639cd24c09))
1414

15-
## [0.4.1](https://github.com/Uptime-Lab/computeblade-agent/compare/v0.4.0...v0.4.1) (2023-10-05)
15+
## [0.4.1](https://github.com/github.com/uptime-induestries/compute-blade-agent/compare/v0.4.0...v0.4.1) (2023-10-05)
1616

1717

1818
### Bug Fixes
1919

20-
* ${ -&gt; ${{ ... ([#27](https://github.com/Uptime-Lab/computeblade-agent/issues/27)) ([f2cd029](https://github.com/Uptime-Lab/computeblade-agent/commit/f2cd029d83329085354acb7ed68da390dfe9aee4))
21-
* add debug statement ([#25](https://github.com/Uptime-Lab/computeblade-agent/issues/25)) ([21d9942](https://github.com/Uptime-Lab/computeblade-agent/commit/21d99426293b724f53f0de594fce21e5c49724f8))
22-
* debug statement ([#26](https://github.com/Uptime-Lab/computeblade-agent/issues/26)) ([780455e](https://github.com/Uptime-Lab/computeblade-agent/commit/780455e749a6acd896ce862ac565f1d1f5467c20))
23-
* if statement? ([#23](https://github.com/Uptime-Lab/computeblade-agent/issues/23)) ([4691e2b](https://github.com/Uptime-Lab/computeblade-agent/commit/4691e2b3d71b9c28ebbed31b564c5356713b91f9))
24-
* rename release-please -&gt; release workflow ([#28](https://github.com/Uptime-Lab/computeblade-agent/issues/28)) ([e86b221](https://github.com/Uptime-Lab/computeblade-agent/commit/e86b221aa886f11d6303521787ca4c755b114a6e))
20+
* ${ -&gt; ${{ ... ([#27](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/27)) ([f2cd029](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/f2cd029d83329085354acb7ed68da390dfe9aee4))
21+
* add debug statement ([#25](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/25)) ([21d9942](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/21d99426293b724f53f0de594fce21e5c49724f8))
22+
* debug statement ([#26](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/26)) ([780455e](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/780455e749a6acd896ce862ac565f1d1f5467c20))
23+
* if statement? ([#23](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/23)) ([4691e2b](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/4691e2b3d71b9c28ebbed31b564c5356713b91f9))
24+
* rename release-please -&gt; release workflow ([#28](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/28)) ([e86b221](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/e86b221aa886f11d6303521787ca4c755b114a6e))
2525

26-
## [0.4.0](https://github.com/Uptime-Lab/computeblade-agent/compare/v0.3.4...v0.4.0) (2023-10-05)
26+
## [0.4.0](https://github.com/github.com/uptime-induestries/compute-blade-agent/compare/v0.3.4...v0.4.0) (2023-10-05)
2727

2828

2929
### Features
3030

31-
* switch to release-please ([#19](https://github.com/Uptime-Lab/computeblade-agent/issues/19)) ([33dd6e5](https://github.com/Uptime-Lab/computeblade-agent/commit/33dd6e5adf45d2b59c1af061c7e78c9426329f15))
31+
* switch to release-please ([#19](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/19)) ([33dd6e5](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/33dd6e5adf45d2b59c1af061c7e78c9426329f15))
3232

3333

3434
### Bug Fixes
3535

36-
* explicitly check for true before running goreleaser ([#21](https://github.com/Uptime-Lab/computeblade-agent/issues/21)) ([9c82b60](https://github.com/Uptime-Lab/computeblade-agent/commit/9c82b60fd88718ad90a9a0aa774ffc4bcdd18d3f))
37-
* if condition ([#22](https://github.com/Uptime-Lab/computeblade-agent/issues/22)) ([cee6912](https://github.com/Uptime-Lab/computeblade-agent/commit/cee6912f5768a310c2758c8755b9ed1985b10d23))
36+
* explicitly check for true before running goreleaser ([#21](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/21)) ([9c82b60](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/9c82b60fd88718ad90a9a0aa774ffc4bcdd18d3f))
37+
* if condition ([#22](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/22)) ([cee6912](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/cee6912f5768a310c2758c8755b9ed1985b10d23))

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM cgr.dev/chainguard/wolfi-base
2-
LABEL org.opencontainers.image.source https://github.com/uptime-lab/computeblade-agent
2+
LABEL org.opencontainers.image.source https://github.com/github.com/uptime-induestries/compute-blade-agent
33

44
# Copy binaries generated by goreleaser
55
COPY computeblade-agent bladectl /bin

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The `computeblade-agent` serves as an operating system agent interfacing with [C
66

77
**Quick Setup with TL;DR**:
88
```bash
9-
curl -L -o /tmp/computeblade-agent-installer.sh https://raw.githubusercontent.com/Uptime-Lab/computeblade-agent/main/hack/autoinstall.sh
9+
curl -L -o /tmp/computeblade-agent-installer.sh https://raw.githubusercontent.com/github.com/uptime-induestries/compute-blade-agent/main/hack/autoinstall.sh
1010
chmod +x /tmp/computeblade-agent-installer.sh
1111
/tmp/computeblade-agent-installer.sh
1212
```

api/bladeapi/v1alpha1/blade.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ syntax = "proto4";
33
import "google/protobuf/empty.proto";
44
package api.bladeapi.v1alpha1;
55

6-
option go_package = "github.com/xvzf/computeblade-agent/api/blade/v1alpha1;bladeapiv1alpha1";
6+
option go_package = "github.com/uptime-induestries/compute-blade-agent/api/blade/v1alpha1;bladeapiv1alpha1";
77

88
// Event is an event the agent reacts to
99
enum Event {

cmd/agent/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import (
1515

1616
"github.com/prometheus/client_golang/prometheus/promhttp"
1717
"github.com/spf13/viper"
18-
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
19-
"github.com/xvzf/computeblade-agent/internal/agent"
20-
"github.com/xvzf/computeblade-agent/pkg/log"
18+
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
19+
"github.com/uptime-induestries/compute-blade-agent/internal/agent"
20+
"github.com/uptime-induestries/compute-blade-agent/pkg/log"
2121
"go.uber.org/zap"
2222
"google.golang.org/grpc"
2323
)

cmd/bladectl/cmd_fan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strconv"
55

66
"github.com/spf13/cobra"
7-
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
7+
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
88
)
99

1010
func init() {

cmd/bladectl/cmd_identify.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"github.com/spf13/cobra"
5-
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
5+
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
66
"google.golang.org/protobuf/types/known/emptypb"
77
)
88

@@ -15,7 +15,7 @@ func init() {
1515
var cmdIdentify = &cobra.Command{
1616
Use: "identify",
1717
Short: "interact with the compute-blade identity LED",
18-
RunE: runIdentity,
18+
RunE: runIdentity,
1919
}
2020

2121
func runIdentity(cmd *cobra.Command, _ []string) error {

cmd/bladectl/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"time"
1111

1212
"github.com/spf13/cobra"
13-
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
13+
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
1414
"google.golang.org/grpc"
1515
"google.golang.org/grpc/credentials/insecure"
1616
)
@@ -73,7 +73,7 @@ var rootCmd = &cobra.Command{
7373
}
7474
client := bladeapiv1alpha1.NewBladeAgentServiceClient(conn)
7575

76-
cmd.SetContext( clientIntoContext(ctx, client))
76+
cmd.SetContext(clientIntoContext(ctx, client))
7777
return nil
7878
},
7979
}

cmd/fanunit/controller.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"machine"
88
"time"
99

10-
"github.com/xvzf/computeblade-agent/pkg/eventbus"
11-
"github.com/xvzf/computeblade-agent/pkg/hal/led"
12-
"github.com/xvzf/computeblade-agent/pkg/smartfanunit"
13-
"github.com/xvzf/computeblade-agent/pkg/smartfanunit/emc2101"
14-
"github.com/xvzf/computeblade-agent/pkg/smartfanunit/proto"
10+
"github.com/uptime-induestries/compute-blade-agent/pkg/eventbus"
11+
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
12+
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit"
13+
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit/emc2101"
14+
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit/proto"
1515
"golang.org/x/sync/errgroup"
1616
"tinygo.org/x/drivers"
1717
"tinygo.org/x/drivers/ws2812"
@@ -66,7 +66,7 @@ func (c *Controller) Run(parentCtx context.Context) error {
6666
// Metric reporting events
6767
println("[+] Starting metric reporting loop")
6868
group.Go(func() error {
69-
return c.metricReporter(ctx);
69+
return c.metricReporter(ctx)
7070
})
7171

7272
// Left blade events
@@ -186,7 +186,7 @@ func (c *Controller) metricReporter(ctx context.Context) error {
186186
// FIXME: This is a workaround for an i2c lockup issue.
187187
if err != nil {
188188
println("[!] resetting CPU")
189-
time.Sleep(100*time.Millisecond)
189+
time.Sleep(100 * time.Millisecond)
190190
machine.CPUReset()
191191
}
192192

cmd/fanunit/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"machine"
88
"time"
99

10-
"github.com/xvzf/computeblade-agent/pkg/smartfanunit"
11-
"github.com/xvzf/computeblade-agent/pkg/smartfanunit/emc2101"
10+
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit"
11+
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit/emc2101"
1212
"tinygo.org/x/drivers/ws2812"
1313
)
1414

@@ -23,7 +23,7 @@ func main() {
2323
machine.LED.Set(false)
2424

2525
// Configure UARTs
26-
err = machine.UART0.Configure(machine.UARTConfig{TX: machine.UART0_TX_PIN, RX: machine.UART0_RX_PIN})
26+
err = machine.UART0.Configure(machine.UARTConfig{TX: machine.UART0_TX_PIN, RX: machine.UART0_RX_PIN})
2727
if err != nil {
2828
println("[!] Failed to initialize UART0:", err.Error())
2929
goto errprint
@@ -75,7 +75,7 @@ func main() {
7575
err = controller.Run(context.Background())
7676

7777
// Blinking -> something went wrong
78-
errprint:
78+
errprint:
7979
ledState := false
8080
for {
8181
ledState = !ledState

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
module github.com/xvzf/computeblade-agent
1+
module github.com/uptime-induestries/compute-blade-agent
22

3-
go 1.21
3+
go 1.22
44

5-
toolchain go1.21.3
5+
toolchain go1.22.5
66

77
require (
8-
github.com/jacobsa/go-serial v0.0.0-20180131005756-15cf729a72d4
98
github.com/prometheus/client_golang v1.16.0
109
github.com/spf13/cobra v1.6.1
1110
github.com/spf13/viper v1.16.0
1211
github.com/stretchr/testify v1.8.3
1312
github.com/warthog618/gpiod v0.8.1
13+
go.bug.st/serial v1.6.1
1414
go.uber.org/zap v1.24.0
1515
golang.org/x/sync v0.2.0
1616
google.golang.org/grpc v1.56.2
@@ -42,7 +42,6 @@ require (
4242
github.com/spf13/pflag v1.0.5 // indirect
4343
github.com/stretchr/objx v0.5.0 // indirect
4444
github.com/subosito/gotenv v1.4.2 // indirect
45-
go.bug.st/serial v1.6.1 // indirect
4645
go.uber.org/atomic v1.11.0 // indirect
4746
go.uber.org/multierr v1.11.0 // indirect
4847
golang.org/x/net v0.10.0 // indirect

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:
142142
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
143143
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
144144
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
145-
github.com/jacobsa/go-serial v0.0.0-20180131005756-15cf729a72d4 h1:G2ztCwXov8mRvP0ZfjE6nAlaCX2XbykaeHdbT6KwDz0=
146-
github.com/jacobsa/go-serial v0.0.0-20180131005756-15cf729a72d4/go.mod h1:2RvX5ZjVtsznNZPEt4xwJXNJrM3VTZoQf7V6gk0ysvs=
147145
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
148146
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
149147
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
@@ -362,8 +360,6 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
362360
golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
363361
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
364362
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
365-
golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
366-
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
367363
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
368364
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
369365
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=

hack/autoinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ get_latest_release() {
2525
curl -s "https://api.github.com/repos/$repo/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'
2626
}
2727

28-
github_repo="uptime-lab/computeblade-agent"
28+
github_repo="github.com/uptime-induestries/compute-blade-agent"
2929
package_suffix=$(detect_package_suffix)
3030
latest_release=$(get_latest_release "$github_repo")
3131

hack/systemd/computeblade-agent.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Unit]
22
Description=ComputeBlade Agent
3-
Documentation=https://github.com/xvzf/computeblade-agent
3+
Documentation=https://github.com/uptime-induestries/compute-blade-agent
44
After=network.target
55

66
[Service]

internal/agent/agent.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88

99
"github.com/prometheus/client_golang/prometheus"
1010
"github.com/prometheus/client_golang/prometheus/promauto"
11-
"github.com/xvzf/computeblade-agent/pkg/fancontroller"
12-
"github.com/xvzf/computeblade-agent/pkg/hal"
13-
"github.com/xvzf/computeblade-agent/pkg/hal/led"
14-
"github.com/xvzf/computeblade-agent/pkg/ledengine"
15-
"github.com/xvzf/computeblade-agent/pkg/log"
11+
"github.com/uptime-induestries/compute-blade-agent/pkg/fancontroller"
12+
"github.com/uptime-induestries/compute-blade-agent/pkg/hal"
13+
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
14+
"github.com/uptime-induestries/compute-blade-agent/pkg/ledengine"
15+
"github.com/uptime-induestries/compute-blade-agent/pkg/log"
1616
"go.uber.org/zap"
1717
)
1818

internal/agent/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package agent
33
import (
44
"context"
55

6-
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
6+
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
77
"google.golang.org/grpc/codes"
88
"google.golang.org/grpc/status"
99
"google.golang.org/protobuf/types/known/emptypb"

internal/agent/state_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"time"
88

99
"github.com/stretchr/testify/assert"
10-
"github.com/xvzf/computeblade-agent/internal/agent"
10+
"github.com/uptime-induestries/compute-blade-agent/internal/agent"
1111
)
1212

1313
func TestNewComputeBladeState(t *testing.T) {

pkg/eventbus/eventbus_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
"github.com/stretchr/testify/assert"
7-
"github.com/xvzf/computeblade-agent/pkg/eventbus"
7+
"github.com/uptime-induestries/compute-blade-agent/pkg/eventbus"
88
)
99

1010
func TestEventBusManySubscribers(t *testing.T) {
@@ -35,13 +35,11 @@ func TestEventBusManySubscribers(t *testing.T) {
3535
assert.Equal(t, len(sub3.C()), 0)
3636
defer sub3.Unsubscribe()
3737

38-
3938
// Publish some messages
4039
eb.Publish("topic0", 10)
4140
eb.Publish("topic0", 4)
4241
eb.Publish("topic1", "Hello, World!")
4342

44-
4543
// Assert received messages
4644
assert.Equal(t, len(sub0.C()), 2)
4745
assert.Equal(t, <-sub0.C(), 10)

pkg/fancontroller/fancontroller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package fancontroller_test
44
import (
55
"testing"
66

7-
"github.com/xvzf/computeblade-agent/pkg/fancontroller"
7+
"github.com/uptime-induestries/compute-blade-agent/pkg/fancontroller"
88
)
99

1010
func TestFanControllerLinear_GetFanSpeed(t *testing.T) {

pkg/hal/example_smartfanunit_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"context"
77
"log"
88

9-
"github.com/xvzf/computeblade-agent/pkg/hal"
10-
"github.com/xvzf/computeblade-agent/pkg/hal/led"
9+
"github.com/uptime-induestries/compute-blade-agent/pkg/hal"
10+
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
1111
)
1212

1313
func ExampleNewSmartFanUnit() {

pkg/hal/hal.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package hal
33
import (
44
"context"
55

6-
"github.com/xvzf/computeblade-agent/pkg/hal/led"
6+
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
77
)
88

99
type FanUnitKind uint8
@@ -63,7 +63,6 @@ type ComputeBladeHal interface {
6363
WaitForEdgeButtonPress(ctx context.Context) error
6464
}
6565

66-
6766
// FanUnit abstracts the fan unit
6867
type FanUnit interface {
6968

pkg/hal/hal_bcm2711.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import (
1414
"syscall"
1515
"time"
1616

17+
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
18+
"github.com/uptime-induestries/compute-blade-agent/pkg/log"
1719
"github.com/warthog618/gpiod"
1820
"github.com/warthog618/gpiod/device/rpi"
19-
"github.com/xvzf/computeblade-agent/pkg/hal/led"
20-
"github.com/xvzf/computeblade-agent/pkg/log"
2121
"go.uber.org/zap"
2222
"golang.org/x/sync/errgroup"
2323
)

0 commit comments

Comments
 (0)