Skip to content

Commit

Permalink
Working build
Browse files Browse the repository at this point in the history
  • Loading branch information
samparent97 committed Oct 25, 2024
1 parent 0ffeee6 commit 333627b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli/cli_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func (c *cliModel) currentRunningTestView() string {
s += fmt.Sprintf("%s currently running...\n", state.Name())
}

s += helpStyle(fmt.Sprintf("\nCurrent test running: %s\n", "Unknown name for now"))
s += helpStyle(fmt.Sprintf("\nCurrent test running: %s\n", c.currentRunningTestId.String()))
s += helpStyle(fmt.Sprintf("\nTest_ID: %s\n", c.currentRunningTestId.String()))
s += helpStyle(fmt.Sprintf("\nQueue length: %d\n", c.statusSignal.QueueLength))

Expand Down
13 changes: 6 additions & 7 deletions cmd/clidispatchertest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/macformula/hil/cli"
"github.com/macformula/hil/flow"
"github.com/macformula/hil/orchestrator"
"github.com/macformula/hil/results/client"
"github.com/macformula/hil/results"
"github.com/macformula/hil/test"
"github.com/pkg/errors"
"go.uber.org/zap"
Expand All @@ -16,8 +16,10 @@ import (
const (
_loggerName = "main.log"
_resultProcessorAddr = "localhost:31763"
_configPath = "./config/hil-config/config.yaml"
_resultServerPath = "./results/server/main.py"
_tagsPath = "./results/tags.yaml"
_historicTestsPath = "./results/historic_tests.yaml"
_reportsDir = "./results/reports"
)

func main() {
Expand All @@ -29,11 +31,8 @@ func main() {
}
defer logger.Sync()

resultProcessor := results.NewResultProcessor(logger,
_resultProcessorAddr,
results.WithPushReportsToGithub(),
results.WithServerAutoStart(_configPath, _resultServerPath),
)
resultProcessor := results.NewResultAccumulator(logger,
_tagsPath, _historicTestsPath, _reportsDir, results.NewHtmlReportGenerator())
sequencer := flow.NewSequencer(resultProcessor, logger)
cliDispatcher := cli.NewCliDispatcher(test.Sequences, logger)
simpleDispatcher := test.NewSimpleDispatcher(logger, 5*time.Second, 10*time.Second)
Expand Down
2 changes: 1 addition & 1 deletion tagtunnel/client/resultprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/google/uuid"
proto "github.com/macformula/hil/pyresults/client/generated"
proto "github.com/macformula/hil/tagtunnel/client/generated"
"github.com/pkg/errors"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
Expand Down

0 comments on commit 333627b

Please sign in to comment.