From 66adc03865715eb899afe93fb5ee6327568eaf67 Mon Sep 17 00:00:00 2001 From: Ryan Hurey Date: Mon, 9 Sep 2024 17:32:35 -0700 Subject: [PATCH 1/4] Add cron job --- ci/azure-pipelines.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml index 015b5b2..209708c 100644 --- a/ci/azure-pipelines.yml +++ b/ci/azure-pipelines.yml @@ -1,10 +1,23 @@ -trigger: -- master + +- repo: self + clean: true + +trigger: + branches: + include: + - master + +schedules: + - cron: "0 18 * * 6" + displayName: "Saturday Evening Schedule" + branches: + include: + - master pool: vmImage: ubuntu-latest variables: - CARBON_VERSION: "1.33.0" + CARBON_VERSION: "1.40.0" steps: - task: GoTool@0 From ecc595e73b12675bb1ebe7e0d512d56f07bb8b7e Mon Sep 17 00:00:00 2001 From: Ryan Hurey Date: Mon, 9 Sep 2024 17:34:09 -0700 Subject: [PATCH 2/4] Add cron job --- ci/azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml index 209708c..fad35e5 100644 --- a/ci/azure-pipelines.yml +++ b/ci/azure-pipelines.yml @@ -1,7 +1,8 @@ +resources: - repo: self clean: true - + trigger: branches: include: From e118d0a053452ba8635553e803976d0be46888b0 Mon Sep 17 00:00:00 2001 From: Ryan Hurey Date: Mon, 9 Sep 2024 17:52:38 -0700 Subject: [PATCH 3/4] Upgrade linter action --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index df83060..e675dfb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: ln -s SpeechSDK-Linux-$CARBON_VERSION current popd - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v5 env: CGO_CFLAGS: "-I/tmp/carbon/current/include/c_api" CGO_LDFLAGS: "-L/tmp/carbon/current/lib/x64 -lMicrosoft.CognitiveServices.Speech.core" From 9cd9952253f2f6ecaa93ee555362e2f26e3c17a9 Mon Sep 17 00:00:00 2001 From: Ryan Hurey Date: Mon, 9 Sep 2024 17:55:22 -0700 Subject: [PATCH 4/4] Linter fixes --- speaker/voice_profile_client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/speaker/voice_profile_client.go b/speaker/voice_profile_client.go index d7cf261..4e20f27 100644 --- a/speaker/voice_profile_client.go +++ b/speaker/voice_profile_client.go @@ -256,9 +256,9 @@ func (client VoiceProfileClient) GetAllProfilesAsync(profileType common.VoicePro outcome <- GetAllProfilesOutcome{Profiles: nil, OperationOutcome: common.OperationOutcome{common.NewCarbonError(uintptr(C.SPXERR_INVALID_ARG))}} } else { goProfilesJSON := C.GoString((*C.char)(rawProfileJSON)) - splitProfileIds := strings.Split(goProfilesJSON, "|") - profileList := make([]*VoiceProfile, len(splitProfileIds)) - for index, id := range splitProfileIds { + splitProfileIDs := strings.Split(goProfilesJSON, "|") + profileList := make([]*VoiceProfile, len(splitProfileIDs)) + for index, id := range splitProfileIDs { profile, err := NewVoiceProfileFromIdAndType(id, profileType) if err != nil { outcome <- GetAllProfilesOutcome{Profiles: nil, OperationOutcome: common.OperationOutcome{err}}