Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

go lane: floor 1561 -> 1588 (PR7 tests); drop unused const

Adeshina Lasisi1c1c00a41cd6
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 6043d6e0..66596693 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -128,11 +128,11 @@ jobs:
LAYA_GO_FIXTURES: ${{ github.workspace }}/.go-goldens
LAYA_CHECKPOINTS: ${{ github.workspace }}/laya-java/.work/checkpoints
run: go test -race -count=1 -json ./... > "$RUNNER_TEMP/go-test.json"
- # Exactly the measured count (1561 tests and subtests, on both Go versions): dropping a
+ # Exactly the measured count (1588 tests and subtests, on both Go versions): dropping a
# case fails here, and adding one means raising this number.
- name: No test was skipped
if: ${{ !cancelled() }}
- run: python laya-go/scripts/check_test_json.py "$RUNNER_TEMP/go-test.json" --min-tests 1561
+ run: python laya-go/scripts/check_test_json.py "$RUNNER_TEMP/go-test.json" --min-tests 1588
# go.mod declares go 1.22, so that is what a consumer may build with.
- name: Run the tests on the oldest supported Go
@@ -144,7 +144,7 @@ jobs:
run: go test -count=1 -json ./... > "$RUNNER_TEMP/go-test-oldest.json"
- name: No test was skipped on the oldest Go either
if: ${{ !cancelled() }}
- run: python laya-go/scripts/check_test_json.py "$RUNNER_TEMP/go-test-oldest.json" --min-tests 1561
+ run: python laya-go/scripts/check_test_json.py "$RUNNER_TEMP/go-test-oldest.json" --min-tests 1588
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: ${{ failure() }}
diff --git a/laya-go/agent/digests_test.go b/laya-go/agent/digests_test.go
index 20e4c3a3..16aa8796 100644
--- a/laya-go/agent/digests_test.go
+++ b/laya-go/agent/digests_test.go
@@ -12,8 +12,6 @@ import (
"github.com/NandhaKishorM/laya/laya-go/agent"
)
-const zhOverride = `{"zh": {"temperature": [2.0, 1.5, 3.0], "temperature_by_options": {"choice:2": 2.5}}}`
-
func withTemps(t *testing.T, langs map[string]map[string]any, tag string) string {
t.Helper()
s := &fakeSession{}