Skip to content

Commit

Permalink
feat: support live logrefs for in-progress operations (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge authored Sep 5, 2024
1 parent b5e6feb commit bfaad8b
Show file tree
Hide file tree
Showing 31 changed files with 961 additions and 278 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,9 @@ jobs:
with:
go-version: "1.21"

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Generate
run: go generate ./...
- name: Create Fake WebUI Sources
run: |
New-Item -Path .\webui\dist-windows\index.html -ItemType File -Force
- name: Build
run: go build ./...
Expand Down
4 changes: 2 additions & 2 deletions cmd/backrest/backrest.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (
"github.com/garethgeorge/backrest/internal/auth"
"github.com/garethgeorge/backrest/internal/config"
"github.com/garethgeorge/backrest/internal/env"
"github.com/garethgeorge/backrest/internal/logwriter"
"github.com/garethgeorge/backrest/internal/oplog"
"github.com/garethgeorge/backrest/internal/oplog/bboltstore"
"github.com/garethgeorge/backrest/internal/orchestrator"
"github.com/garethgeorge/backrest/internal/resticinstaller"
"github.com/garethgeorge/backrest/internal/rotatinglog"
"github.com/garethgeorge/backrest/webui"
"github.com/mattn/go-colorable"
"go.etcd.io/bbolt"
Expand Down Expand Up @@ -82,7 +82,7 @@ func main() {
oplog := oplog.NewOpLog(opstore)

// Create rotating log storage
logStore := rotatinglog.NewRotatingLog(path.Join(env.DataDir(), "rotatinglogs"), 14) // 14 days of logs
logStore, err := logwriter.NewLogManager(path.Join(env.DataDir(), "rotatinglogs"), 14) // 14 days of logs
if err != nil {
zap.S().Fatalf("error creating rotating log storage: %v", err)
}
Expand Down
127 changes: 76 additions & 51 deletions gen/go/v1/operations.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 22 additions & 22 deletions gen/go/v1/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bfaad8b

Please sign in to comment.