From 408a696e5a8d27fc509212b60e81f7f3c2e72680 Mon Sep 17 00:00:00 2001 From: Kevin Tang <73975146+vt128@users.noreply.github.com> Date: Wed, 23 Sep 2026 22:47:11 +0800 Subject: [PATCH 1/4] [chore] make custom-function examples repeatable (STAR-100) --- Makefile | 2 +- example_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8e56ebd..d9f5747 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ default: # CI bar: race + coverage profile (+ bench compile when present) ci: - $(GOTEST) -v -race -cover -covermode=atomic -coverprofile=coverage.txt -count 1 ./... + $(GOTEST) -v -race -cover -covermode=atomic -coverprofile=coverage.txt -count 2 ./... $(GOTEST) -v -parallel=4 -run="none" -benchtime="2s" -benchmem -bench=. ./... test: diff --git a/example_test.go b/example_test.go index bd9f1c6..360c688 100644 --- a/example_test.go +++ b/example_test.go @@ -1995,7 +1995,8 @@ def main(): main() `}, - {"CustomSQLFunctions", ` + // Give every function and SQL call the same fresh namespace on each run. + {"CustomSQLFunctions", strings.ReplaceAll(` load("sqlite", "connect", "register_function") def main(): @@ -2114,7 +2115,7 @@ def main(): print("✓ All custom SQL function tests passed") main() -`}, +`, "EXAMPLE_", uniqueFuncName("EXAMPLE")+"_")}, {"ExistOkFeature", ` load("sqlite", "connect") From df53402532c21590ced06a735bf9e80fb5487678 Mon Sep 17 00:00:00 2001 From: Kevin Tang <73975146+vt128@users.noreply.github.com> Date: Wed, 23 Sep 2026 22:47:16 +0800 Subject: [PATCH 2/4] [ci] refresh checks while preserving Go 1.20 (STAR-100) --- .github/workflows/build.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b4f61b..e960dd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,12 +9,27 @@ on: permissions: read-all jobs: + compatibility: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-go@v6 + with: + go-version: "1.27.1" + - name: Verify the established Go floor and interpreter + run: | + test "$(go list -m -f '{{.GoVersion}}')" = "1.20" + test "$(go list -m -f '{{.Version}}' go.starlark.net)" = "v0.0.0-20260324133313-ffb3f39dd27a" + ci: + permissions: + contents: read + id-token: write # Reusable CI lives in 1set/meta — the single source of truth for every # Star* module's pipeline. Pinned to a commit SHA for supply-chain safety; # bump the pin when meta's workflow changes (Dependabot github-actions can # automate this). - uses: 1set/meta/.github/workflows/go-ci.yml@5d86667e7264f012655dab2644dfa44e09597445 + uses: 1set/meta/.github/workflows/go-ci.yml@23f088bcd6dce16c93e0056d7b70b4f4434208e8 with: go-floor: "1.20" doc-coverage: true From 969faf04ce537dac32a52f2ca72dba55f98b8507 Mon Sep 17 00:00:00 2001 From: Kevin Tang <73975146+vt128@users.noreply.github.com> Date: Wed, 23 Sep 2026 23:11:31 +0800 Subject: [PATCH 3/4] [ci] seed exact master coverage for comparison (STAR-100) --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e960dd0..151a723 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,3 +39,31 @@ jobs: footprint: true footprint-max-mb: 7 secrets: inherit + + # Seed the exact PR base once before normal master uploads are available. + baseline: + if: ${{ github.event_name == 'pull_request' }} + runs-on: ubuntu-22.04 + permissions: + contents: read + id-token: write + steps: + - name: Check out pull request base + uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 + with: + ref: ${{ github.event.pull_request.base.sha }} + - name: Set up Go 1.20 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6 + with: + go-version: 1.20.x + - name: Generate base coverage + run: go test -race -count=1 -covermode=atomic -coverprofile=coverage-base.txt ./... + - name: Upload base coverage + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5 + with: + use_oidc: true + files: coverage-base.txt + disable_search: true + override_commit: ${{ github.event.pull_request.base.sha }} + override_branch: ${{ github.event.pull_request.base.ref }} + fail_ci_if_error: true From 6d0bf2dae16f50a5983a52a39efe7cfbf394eca9 Mon Sep 17 00:00:00 2001 From: Kevin Tang <73975146+vt128@users.noreply.github.com> Date: Wed, 23 Sep 2026 23:20:27 +0800 Subject: [PATCH 4/4] [ci] remove one-time baseline coverage job (STAR-100) --- .github/workflows/build.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 151a723..e960dd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,31 +39,3 @@ jobs: footprint: true footprint-max-mb: 7 secrets: inherit - - # Seed the exact PR base once before normal master uploads are available. - baseline: - if: ${{ github.event_name == 'pull_request' }} - runs-on: ubuntu-22.04 - permissions: - contents: read - id-token: write - steps: - - name: Check out pull request base - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 - with: - ref: ${{ github.event.pull_request.base.sha }} - - name: Set up Go 1.20 - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6 - with: - go-version: 1.20.x - - name: Generate base coverage - run: go test -race -count=1 -covermode=atomic -coverprofile=coverage-base.txt ./... - - name: Upload base coverage - uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5 - with: - use_oidc: true - files: coverage-base.txt - disable_search: true - override_commit: ${{ github.event.pull_request.base.sha }} - override_branch: ${{ github.event.pull_request.base.ref }} - fail_ci_if_error: true