From 47d8e4230aedb4c0bbdf41c25eac8b1093066eee Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Wed, 15 Nov 2023 20:19:30 -0300 Subject: [PATCH] webrtc-load-tester: Fix github action discord msg (#340) * wrtc-lt: Remove debug llog * .github: Fix Discord notification format --- .github/workflows/webrtc-load-test.yaml | 10 +++++----- cmd/webrtc-load-tester/roles/orchestrator.go | 1 - cmd/webrtc-load-tester/utils/command.go | 2 -- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/webrtc-load-test.yaml b/.github/workflows/webrtc-load-test.yaml index 5561d858..20700ea9 100644 --- a/.github/workflows/webrtc-load-test.yaml +++ b/.github/workflows/webrtc-load-test.yaml @@ -71,8 +71,8 @@ jobs: "value": "${{ inputs.duration }}", "inline": true }, { - "name": "Regional Viewers", - "value": "${{ inputs.playback-region-viewers-json }}", + "name": "Viewers", + "value": ${{ toJSON(inputs.playback-region-viewers-json) }}, "inline": true }] }] @@ -141,7 +141,7 @@ jobs: "value": "${{ inputs.duration }}", "inline": true }, { - "name": "Regional Viewers", + "name": "Viewers", "value": ${{ toJSON(inputs.playback-region-viewers-json) }}, "inline": true }] @@ -171,7 +171,7 @@ jobs: "value": "${{ inputs.duration }}", "inline": true }, { - "name": "Regional Viewers", + "name": "Viewers", "value": ${{ toJSON(inputs.playback-region-viewers-json) }}, "inline": true }] @@ -201,7 +201,7 @@ jobs: "value": "${{ inputs.duration }}", "inline": true }, { - "name": "Regional Viewers", + "name": "Viewers", "value": ${{ toJSON(inputs.playback-region-viewers-json) }}, "inline": true }] diff --git a/cmd/webrtc-load-tester/roles/orchestrator.go b/cmd/webrtc-load-tester/roles/orchestrator.go index 3e87fb25..eafd3c4f 100644 --- a/cmd/webrtc-load-tester/roles/orchestrator.go +++ b/cmd/webrtc-load-tester/roles/orchestrator.go @@ -111,7 +111,6 @@ func Orchestrator() { func initClients(cliFlags loadTestArguments) { studioApi = api.NewAPIClient(api.ClientOptions{Server: cliFlags.APIServer, AccessToken: cliFlags.APIToken}) - glog.Infof("Creating Google client with creds: %q", cliFlags.GoogleCredentialsJSON) err := gcloud.InitClients(context.Background(), cliFlags.GoogleCredentialsJSON, cliFlags.GoogleProjectID) if err != nil { glog.Errorf("Error initializing cloud run client: %v", err) diff --git a/cmd/webrtc-load-tester/utils/command.go b/cmd/webrtc-load-tester/utils/command.go index 4e46ca5b..64802328 100644 --- a/cmd/webrtc-load-tester/utils/command.go +++ b/cmd/webrtc-load-tester/utils/command.go @@ -57,8 +57,6 @@ func JSONVarFlag(fs *flag.FlagSet, dest interface{}, name, defaultValue, usage s panic(err) } fs.Func(name, usage, func(s string) error { - glog.Infof("Setting %s to: %q", name, s) - // Clear any previously set value, including the default above destVal := reflect.ValueOf(dest).Elem() destVal.Set(reflect.Zero(destVal.Type()))