Change package URL to the blender.org repository

This commit is contained in:
Sybren A. Stüvel 2022-03-01 20:45:09 +01:00
parent e70a44a146
commit 47e36c927c
52 changed files with 129 additions and 98 deletions

View File

@ -1,4 +1,4 @@
PKG := gitlab.com/blender/flamenco-ng-poc PKG := git.blender.org/flamenco
VERSION := $(shell git describe --tags --dirty --always) VERSION := $(shell git describe --tags --dirty --always)
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/) PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)

View File

@ -36,15 +36,15 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/ziflex/lecho/v3" "github.com/ziflex/lecho/v3"
"gitlab.com/blender/flamenco-ng-poc/internal/appinfo" "git.blender.org/flamenco/internal/appinfo"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/api_impl" "git.blender.org/flamenco/internal/manager/api_impl"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/config" "git.blender.org/flamenco/internal/manager/config"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/job_compilers" "git.blender.org/flamenco/internal/manager/job_compilers"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence" "git.blender.org/flamenco/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/swagger_ui" "git.blender.org/flamenco/internal/manager/swagger_ui"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/task_logs" "git.blender.org/flamenco/internal/manager/task_logs"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/task_state_machine" "git.blender.org/flamenco/internal/manager/task_state_machine"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/pkg/api"
) )
var cliArgs struct { var cliArgs struct {

View File

@ -36,8 +36,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/internal/appinfo" "git.blender.org/flamenco/internal/appinfo"
"gitlab.com/blender/flamenco-ng-poc/internal/worker" "git.blender.org/flamenco/internal/worker"
) )
var ( var (

View File

@ -9,10 +9,11 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/ziflex/lecho/v3" "github.com/ziflex/lecho/v3"
"gitlab.com/blender/flamenco-ng-poc/internal/appinfo"
gosocketio "github.com/graarh/golang-socketio" gosocketio "github.com/graarh/golang-socketio"
"github.com/graarh/golang-socketio/transport" "github.com/graarh/golang-socketio/transport"
"git.blender.org/flamenco/internal/appinfo"
) )
type Message struct { type Message struct {

2
go.mod
View File

@ -1,4 +1,4 @@
module gitlab.com/blender/flamenco-ng-poc module git.blender.org/flamenco
go 1.18 go 1.18

View File

@ -25,12 +25,12 @@ import (
"context" "context"
"fmt" "fmt"
"git.blender.org/flamenco/internal/manager/job_compilers"
"git.blender.org/flamenco/internal/manager/persistence"
"git.blender.org/flamenco/internal/manager/task_state_machine"
"git.blender.org/flamenco/pkg/api"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/job_compilers"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/task_state_machine"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
) )
type Flamenco struct { type Flamenco struct {
@ -44,7 +44,7 @@ type Flamenco struct {
var _ api.ServerInterface = (*Flamenco)(nil) var _ api.ServerInterface = (*Flamenco)(nil)
// Generate mock implementations of these interfaces. // Generate mock implementations of these interfaces.
//go:generate go run github.com/golang/mock/mockgen -destination mocks/api_impl_mock.gen.go -package mocks gitlab.com/blender/flamenco-ng-poc/internal/manager/api_impl PersistenceService,JobCompiler,LogStorage,ConfigService,TaskStateMachine //go:generate go run github.com/golang/mock/mockgen -destination mocks/api_impl_mock.gen.go -package mocks git.blender.org/flamenco/internal/manager/api_impl PersistenceService,JobCompiler,LogStorage,ConfigService,TaskStateMachine
type PersistenceService interface { type PersistenceService interface {
StoreAuthoredJob(ctx context.Context, authoredJob job_compilers.AuthoredJob) error StoreAuthoredJob(ctx context.Context, authoredJob job_compilers.AuthoredJob) error

View File

@ -25,11 +25,11 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"git.blender.org/flamenco/internal/manager/persistence"
"git.blender.org/flamenco/pkg/api"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
) )
func (f *Flamenco) GetJobTypes(e echo.Context) error { func (f *Flamenco) GetJobTypes(e echo.Context) error {

View File

@ -24,10 +24,10 @@ import (
"context" "context"
"testing" "testing"
"git.blender.org/flamenco/internal/manager/persistence"
"git.blender.org/flamenco/pkg/api"
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
) )
func ptr[T any](value T) *T { func ptr[T any](value T) *T {

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: gitlab.com/blender/flamenco-ng-poc/internal/manager/api_impl (interfaces: PersistenceService,JobCompiler,LogStorage,ConfigService,TaskStateMachine) // Source: git.blender.org/flamenco/internal/manager/api_impl (interfaces: PersistenceService,JobCompiler,LogStorage,ConfigService,TaskStateMachine)
// Package mocks is a generated GoMock package. // Package mocks is a generated GoMock package.
package mocks package mocks
@ -8,12 +8,12 @@ import (
context "context" context "context"
reflect "reflect" reflect "reflect"
config "git.blender.org/flamenco/internal/manager/config"
job_compilers "git.blender.org/flamenco/internal/manager/job_compilers"
persistence "git.blender.org/flamenco/internal/manager/persistence"
api "git.blender.org/flamenco/pkg/api"
gomock "github.com/golang/mock/gomock" gomock "github.com/golang/mock/gomock"
zerolog "github.com/rs/zerolog" zerolog "github.com/rs/zerolog"
config "gitlab.com/blender/flamenco-ng-poc/internal/manager/config"
job_compilers "gitlab.com/blender/flamenco-ng-poc/internal/manager/job_compilers"
persistence "gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
api "gitlab.com/blender/flamenco-ng-poc/pkg/api"
) )
// MockPersistenceService is a mock of PersistenceService interface. // MockPersistenceService is a mock of PersistenceService interface.

View File

@ -29,10 +29,11 @@ import (
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/api_impl/mocks"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"gorm.io/gorm" "gorm.io/gorm"
"git.blender.org/flamenco/internal/manager/api_impl/mocks"
"git.blender.org/flamenco/internal/manager/persistence"
"git.blender.org/flamenco/pkg/api"
) )
type mockedFlamenco struct { type mockedFlamenco struct {

View File

@ -21,9 +21,9 @@ package api_impl
* ***** END GPL LICENSE BLOCK ***** */ * ***** END GPL LICENSE BLOCK ***** */
import ( import (
"gitlab.com/blender/flamenco-ng-poc/internal/manager/config" "git.blender.org/flamenco/internal/manager/config"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence" "git.blender.org/flamenco/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/pkg/api"
) )
type VariableReplacer interface { type VariableReplacer interface {

View File

@ -24,9 +24,10 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/config"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence" "git.blender.org/flamenco/internal/manager/config"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/internal/manager/persistence"
"git.blender.org/flamenco/pkg/api"
) )
func varreplTestTask() api.AssignedTask { func varreplTestTask() api.AssignedTask {

View File

@ -27,8 +27,9 @@ import (
oapi_middle "github.com/deepmap/oapi-codegen/pkg/middleware" oapi_middle "github.com/deepmap/oapi-codegen/pkg/middleware"
"github.com/getkin/kin-openapi/openapi3filter" "github.com/getkin/kin-openapi/openapi3filter"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"git.blender.org/flamenco/internal/manager/persistence"
) )
type workerContextKey string type workerContextKey string

View File

@ -32,8 +32,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence" "git.blender.org/flamenco/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/pkg/api"
) )
// RegisterWorker registers a new worker and stores it in the database. // RegisterWorker registers a new worker and stores it in the database.

View File

@ -29,8 +29,9 @@ import (
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/internal/manager/persistence"
"git.blender.org/flamenco/pkg/api"
) )
func TestTaskScheduleHappy(t *testing.T) { func TestTaskScheduleHappy(t *testing.T) {

View File

@ -23,7 +23,7 @@ package config
import ( import (
"time" "time"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/pkg/api"
) )
// The default configuration, use DefaultConfig() to obtain a copy. // The default configuration, use DefaultConfig() to obtain a copy.

View File

@ -28,7 +28,8 @@ import (
"github.com/dop251/goja" "github.com/dop251/goja"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
// Author allows scripts to author tasks and commands. // Author allows scripts to author tasks and commands.

View File

@ -31,7 +31,8 @@ import (
"github.com/dop251/goja_nodejs/require" "github.com/dop251/goja_nodejs/require"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
var ErrJobTypeUnknown = errors.New("job type unknown") var ErrJobTypeUnknown = errors.New("job type unknown")

View File

@ -29,7 +29,8 @@ import (
"github.com/benbjohnson/clock" "github.com/benbjohnson/clock"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
func exampleSubmittedJob() api.SubmittedJob { func exampleSubmittedJob() api.SubmittedJob {

View File

@ -27,7 +27,7 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gorm.io/gorm" "gorm.io/gorm"
sqlite "gitlab.com/blender/flamenco-ng-poc/pkg/gorm-modernc-sqlite" sqlite "git.blender.org/flamenco/pkg/gorm-modernc-sqlite"
) )
// DB provides the database interface. // DB provides the database interface.

View File

@ -27,9 +27,10 @@ import (
"errors" "errors"
"fmt" "fmt"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/job_compilers"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"gorm.io/gorm" "gorm.io/gorm"
"git.blender.org/flamenco/internal/manager/job_compilers"
"git.blender.org/flamenco/pkg/api"
) )
type Job struct { type Job struct {

View File

@ -26,9 +26,10 @@ import (
"time" "time"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/job_compilers"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"golang.org/x/net/context" "golang.org/x/net/context"
"git.blender.org/flamenco/internal/manager/job_compilers"
"git.blender.org/flamenco/pkg/api"
) )
func TestStoreAuthoredJob(t *testing.T) { func TestStoreAuthoredJob(t *testing.T) {

View File

@ -25,8 +25,9 @@ import (
"fmt" "fmt"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"gorm.io/gorm" "gorm.io/gorm"
"git.blender.org/flamenco/pkg/api"
) )
var ( var (

View File

@ -27,8 +27,9 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/job_compilers"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/internal/manager/job_compilers"
"git.blender.org/flamenco/pkg/api"
) )
func TestNoTasks(t *testing.T) { func TestNoTasks(t *testing.T) {

View File

@ -25,8 +25,9 @@ import (
"fmt" "fmt"
"strings" "strings"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"gorm.io/gorm" "gorm.io/gorm"
"git.blender.org/flamenco/pkg/api"
) )
type Worker struct { type Worker struct {

View File

@ -27,8 +27,9 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"golang.org/x/net/context" "golang.org/x/net/context"
"git.blender.org/flamenco/pkg/api"
) )
func TestCreateFetchWorker(t *testing.T) { func TestCreateFetchWorker(t *testing.T) {

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: gitlab.com/blender/flamenco-ng-poc/internal/manager/task_state_machine (interfaces: PersistenceService) // Source: git.blender.org/flamenco/internal/manager/task_state_machine (interfaces: PersistenceService)
// Package mocks is a generated GoMock package. // Package mocks is a generated GoMock package.
package mocks package mocks
@ -8,9 +8,9 @@ import (
context "context" context "context"
reflect "reflect" reflect "reflect"
persistence "git.blender.org/flamenco/internal/manager/persistence"
api "git.blender.org/flamenco/pkg/api"
gomock "github.com/golang/mock/gomock" gomock "github.com/golang/mock/gomock"
persistence "gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
api "gitlab.com/blender/flamenco-ng-poc/pkg/api"
) )
// MockPersistenceService is a mock of PersistenceService interface. // MockPersistenceService is a mock of PersistenceService interface.

View File

@ -26,8 +26,9 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/internal/manager/persistence"
"git.blender.org/flamenco/pkg/api"
) )
// taskFailJobPercentage is the percentage of a job's tasks that need to fail to // taskFailJobPercentage is the percentage of a job's tasks that need to fail to
@ -40,7 +41,7 @@ type StateMachine struct {
} }
// Generate mock implementations of these interfaces. // Generate mock implementations of these interfaces.
//go:generate go run github.com/golang/mock/mockgen -destination mocks/interfaces_mock.gen.go -package mocks gitlab.com/blender/flamenco-ng-poc/internal/manager/task_state_machine PersistenceService //go:generate go run github.com/golang/mock/mockgen -destination mocks/interfaces_mock.gen.go -package mocks git.blender.org/flamenco/internal/manager/task_state_machine PersistenceService
type PersistenceService interface { type PersistenceService interface {
SaveTask(ctx context.Context, task *persistence.Task) error SaveTask(ctx context.Context, task *persistence.Task) error

View File

@ -30,9 +30,9 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gorm.io/gorm" "gorm.io/gorm"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/persistence" "git.blender.org/flamenco/internal/manager/persistence"
"gitlab.com/blender/flamenco-ng-poc/internal/manager/task_state_machine/mocks" "git.blender.org/flamenco/internal/manager/task_state_machine/mocks"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/pkg/api"
) )
type StateMachineMocks struct { type StateMachineMocks struct {

View File

@ -21,11 +21,11 @@ package worker
* ***** END GPL LICENSE BLOCK ***** */ * ***** END GPL LICENSE BLOCK ***** */
import ( import (
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/pkg/api"
) )
// Generate the mock for the client interface. // Generate the mock for the client interface.
//go:generate go run github.com/golang/mock/mockgen -destination mocks/client.gen.go -package mocks gitlab.com/blender/flamenco-ng-poc/internal/worker FlamencoClient //go:generate go run github.com/golang/mock/mockgen -destination mocks/client.gen.go -package mocks git.blender.org/flamenco/internal/worker FlamencoClient
// FlamencoClient is a wrapper for api.ClientWithResponsesInterface so that locally mocks can be created. // FlamencoClient is a wrapper for api.ClientWithResponsesInterface so that locally mocks can be created.
type FlamencoClient interface { type FlamencoClient interface {

View File

@ -32,7 +32,8 @@ import (
"github.com/google/shlex" "github.com/google/shlex"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
// The buffer size used to read stdout/stderr output from Blender. // The buffer size used to read stdout/stderr output from Blender.

View File

@ -7,7 +7,8 @@ import (
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
/* ***** BEGIN GPL LICENSE BLOCK ***** /* ***** BEGIN GPL LICENSE BLOCK *****

View File

@ -29,7 +29,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
type CommandExecutor struct { type CommandExecutor struct {
@ -46,7 +47,7 @@ var _ CommandRunner = (*CommandExecutor)(nil)
type commandCallable func(ctx context.Context, logger zerolog.Logger, taskID string, cmd api.Command) error type commandCallable func(ctx context.Context, logger zerolog.Logger, taskID string, cmd api.Command) error
// Generate mock implementation of this interface. // Generate mock implementation of this interface.
//go:generate go run github.com/golang/mock/mockgen -destination mocks/command_listener.gen.go -package mocks gitlab.com/blender/flamenco-ng-poc/internal/worker CommandListener //go:generate go run github.com/golang/mock/mockgen -destination mocks/command_listener.gen.go -package mocks git.blender.org/flamenco/internal/worker CommandListener
// CommandListener sends the result of commands (log, output files) to the Manager. // CommandListener sends the result of commands (log, output files) to the Manager.
type CommandListener interface { type CommandListener interface {
@ -63,7 +64,7 @@ type TimeService interface {
Now() time.Time Now() time.Time
} }
//go:generate go run github.com/golang/mock/mockgen -destination mocks/cli_runner.gen.go -package mocks gitlab.com/blender/flamenco-ng-poc/internal/worker CommandLineRunner //go:generate go run github.com/golang/mock/mockgen -destination mocks/cli_runner.gen.go -package mocks git.blender.org/flamenco/internal/worker CommandLineRunner
// CommandLineRunner is an interface around exec.CommandContext(). // CommandLineRunner is an interface around exec.CommandContext().
type CommandLineRunner interface { type CommandLineRunner interface {
CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd

View File

@ -26,8 +26,9 @@ import (
"github.com/benbjohnson/clock" "github.com/benbjohnson/clock"
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/internal/worker/mocks"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/internal/worker/mocks"
"git.blender.org/flamenco/pkg/api"
) )
type CommandExecutorMocks struct { type CommandExecutorMocks struct {

View File

@ -30,7 +30,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
// cmdEcho executes the "echo" command. // cmdEcho executes the "echo" command.

View File

@ -27,7 +27,8 @@ import (
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
func TestCommandEcho(t *testing.T) { func TestCommandEcho(t *testing.T) {

View File

@ -29,7 +29,8 @@ import (
"time" "time"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
var _ CommandListener = (*Listener)(nil) var _ CommandListener = (*Listener)(nil)

View File

@ -8,7 +8,8 @@ import (
"github.com/benbjohnson/clock" "github.com/benbjohnson/clock"
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/internal/worker/mocks"
"git.blender.org/flamenco/internal/worker/mocks"
) )
/* ***** BEGIN GPL LICENSE BLOCK ***** /* ***** BEGIN GPL LICENSE BLOCK *****

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: gitlab.com/blender/flamenco-ng-poc/internal/worker (interfaces: CommandLineRunner) // Source: git.blender.org/flamenco/internal/worker (interfaces: CommandLineRunner)
// Package mocks is a generated GoMock package. // Package mocks is a generated GoMock package.
package mocks package mocks

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: gitlab.com/blender/flamenco-ng-poc/internal/worker (interfaces: FlamencoClient) // Source: git.blender.org/flamenco/internal/worker (interfaces: FlamencoClient)
// Package mocks is a generated GoMock package. // Package mocks is a generated GoMock package.
package mocks package mocks
@ -9,8 +9,8 @@ import (
io "io" io "io"
reflect "reflect" reflect "reflect"
api "git.blender.org/flamenco/pkg/api"
gomock "github.com/golang/mock/gomock" gomock "github.com/golang/mock/gomock"
api "gitlab.com/blender/flamenco-ng-poc/pkg/api"
) )
// MockFlamencoClient is a mock of FlamencoClient interface. // MockFlamencoClient is a mock of FlamencoClient interface.

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: gitlab.com/blender/flamenco-ng-poc/internal/worker (interfaces: CommandListener) // Source: git.blender.org/flamenco/internal/worker (interfaces: CommandListener)
// Package mocks is a generated GoMock package. // Package mocks is a generated GoMock package.
package mocks package mocks

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: gitlab.com/blender/flamenco-ng-poc/internal/worker (interfaces: TaskExecutionListener) // Source: git.blender.org/flamenco/internal/worker (interfaces: TaskExecutionListener)
// Package mocks is a generated GoMock package. // Package mocks is a generated GoMock package.
package mocks package mocks

View File

@ -31,8 +31,9 @@ import (
"time" "time"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/internal/appinfo"
"gitlab.com/blender/flamenco-ng-poc/pkg/api" "git.blender.org/flamenco/internal/appinfo"
"git.blender.org/flamenco/pkg/api"
) )
var ( var (

View File

@ -25,7 +25,8 @@ import (
"time" "time"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
const durationSleepCheck = 3 * time.Second const durationSleepCheck = 3 * time.Second

View File

@ -26,7 +26,8 @@ import (
"time" "time"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
const ( const (

View File

@ -25,7 +25,8 @@ import (
"os" "os"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
func (w *Worker) gotoStateShutdown(context.Context) { func (w *Worker) gotoStateShutdown(context.Context) {

View File

@ -24,7 +24,8 @@ import (
"context" "context"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
func (w *Worker) setupStateMachine() { func (w *Worker) setupStateMachine() {

View File

@ -25,7 +25,8 @@ import (
"net/http" "net/http"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
// queryManagerForStateChange asks the Manager whether we should go to another state or not. // queryManagerForStateChange asks the Manager whether we should go to another state or not.

View File

@ -25,7 +25,8 @@ import (
"fmt" "fmt"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
type CommandRunner interface { type CommandRunner interface {
@ -33,7 +34,7 @@ type CommandRunner interface {
} }
// Generate mock implementation of this interface. // Generate mock implementation of this interface.
//go:generate go run github.com/golang/mock/mockgen -destination mocks/task_exe_listener.gen.go -package mocks gitlab.com/blender/flamenco-ng-poc/internal/worker TaskExecutionListener //go:generate go run github.com/golang/mock/mockgen -destination mocks/task_exe_listener.gen.go -package mocks git.blender.org/flamenco/internal/worker TaskExecutionListener
// TaskExecutionListener sends task lifecycle events (start/fail/complete) to the Manager. // TaskExecutionListener sends task lifecycle events (start/fail/complete) to the Manager.
type TaskExecutionListener interface { type TaskExecutionListener interface {

View File

@ -31,9 +31,9 @@ import (
"time" "time"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
_ "modernc.org/sqlite" _ "modernc.org/sqlite"
"git.blender.org/flamenco/pkg/api"
) )
// TODO: pull the SQLite stuff out of this file into a more global place, so // TODO: pull the SQLite stuff out of this file into a more global place, so

View File

@ -29,10 +29,10 @@ import (
"github.com/benbjohnson/clock" "github.com/benbjohnson/clock"
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gitlab.com/blender/flamenco-ng-poc/internal/worker/mocks"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
_ "modernc.org/sqlite" _ "modernc.org/sqlite"
"git.blender.org/flamenco/internal/worker/mocks"
"git.blender.org/flamenco/pkg/api"
) )
const testBufferDBFilename = "test-flamenco-worker.db" const testBufferDBFilename = "test-flamenco-worker.db"

View File

@ -25,7 +25,8 @@ import (
"sync" "sync"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"gitlab.com/blender/flamenco-ng-poc/pkg/api"
"git.blender.org/flamenco/pkg/api"
) )
// Worker performs regular Flamenco Worker operations. // Worker performs regular Flamenco Worker operations.