Rename repo from forgejo-runner-resource-collector
Some checks failed
ci / goreleaser (push) Failing after 21s
ci / build (push) Successful in 1m56s

This commit is contained in:
Martin McCaffery 2026-02-12 09:36:23 +01:00
parent d0dd209bc9
commit 58fc39696e
Signed by: martin.mccaffery
GPG key ID: 7C4D0F375BCEE533
16 changed files with 23 additions and 21 deletions

View file

@ -36,4 +36,5 @@ jobs:
goreleaser release --clean
env:
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
GITHUB_SERVER_URL: ${{ github.server_url }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
# Binaries (root level only)
/resource-collector
/collector
/receiver
# Test coverage
coverage.out

View file

@ -10,9 +10,9 @@ import (
"syscall"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/collector"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/output"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/collector"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/output"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
)
const (

View file

@ -11,7 +11,7 @@ import (
"syscall"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/receiver"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/receiver"
)
const (

2
go.mod
View file

@ -1,4 +1,4 @@
module edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector
module edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser
go 1.25.6

View file

@ -6,9 +6,9 @@ import (
"log/slog"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/output"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/output"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
)
// Config holds the collector configuration

View file

@ -10,8 +10,8 @@ import (
"testing"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/output"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/output"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
)
func TestCollector_EmitsSummaryOnShutdown(t *testing.T) {

View file

@ -14,8 +14,8 @@ import (
"testing"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/receiver"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/receiver"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
)
const (

View file

@ -4,8 +4,8 @@ import (
"sort"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/cgroup"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/proc"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/cgroup"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/proc"
)
// Aggregator collects and aggregates metrics from processes

View file

@ -6,7 +6,7 @@ import (
"log/slog"
"os"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
)
// LogFormat specifies the log output format

View file

@ -1,6 +1,6 @@
package output
import "edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
import "edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
// Writer defines the interface for outputting metrics
// This allows for different implementations (logging, HTTP push, etc.)

View file

@ -10,7 +10,7 @@ import (
"path/filepath"
"testing"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
)
func TestHandler_ReceiveMetrics(t *testing.T) {

View file

@ -6,7 +6,7 @@ import (
"testing"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
)
func TestNewStore(t *testing.T) {

View file

@ -2,7 +2,7 @@
// ABOUTME: Defines MetricsPayload combining execution metadata with run summary.
package receiver
import "edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
import "edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
// ExecutionContext holds GitHub Actions style identifiers for a workflow run
type ExecutionContext struct {

View file

@ -7,7 +7,7 @@ import (
"sort"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
)
// containerAccumulator tracks metrics for a single container

View file

@ -6,7 +6,7 @@ import (
"testing"
"time"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
)
func TestAccumulator_NoSamples(t *testing.T) {