• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kcl-lang / kcl-go / 36464406529
34%

Build:
DEFAULT BRANCH: main
Ran 28 Sep 2026 06:20PM UTC
Jobs 6
Files 107
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Sep 2026 06:19PM UTC coverage: 30.566% (+0.5%) from 30.02%
36464406529

push

github

web-flow
feat: expose the remaining RPCs over REST and re-export ParseFile / GetFullSchemaType* at the top level (#602)

* feat(server): expose LoadSettingsFiles, GetSchemaTypeMappingUnderPath and ListMethod over REST

The route table registered 17 of the 20 KclService RPCs; add the
missing three, reusing the existing protorpc-over-HTTP plumbing.

BuiltinService.ListMethod goes through an interface assertion so the
handler degrades gracefully: libkcl v0.13.0 has no BuiltinService
registration and answers with an empty payload (verified against the
embedded darwin-arm64 dylib), in which case the endpoint returns an
empty method_name_list; newer libs take the typed path automatically.

Adds rest_server_test.go with end-to-end coverage of the new routes.

Signed-off-by: Peefy <xpf6677@163.com>

* feat: re-export ParseFile and the GetFullSchemaType* family at the top level

ParseFile and GetFullSchemaType/GetFullSchemaTypeMapping/
GetFullSchemaTypeMappingUnderPath were only reachable via pkg/parser
and pkg/kcl. Export them from the top-level kcl package with matching
signatures (plus Module and SchemaTypes aliases) so the top-level
surface covers the full 20-RPC API.

Signed-off-by: Peefy <xpf6677@163.com>

* fix(test): skip ExampleUpdateDependencies_execProgram on registry errors

ghcr.io rate-limits anonymous CI traffic, which causes the example's
log.Fatal to take down the whole kcl-lang.io/kcl-go test package and
fail PR CI. Convert it from an Example to a regular Test that calls
t.Skipf when UpdateDependencies or ExecProgram can't reach the
registry, while still asserting the "a: Hello World!" output when
network is available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: KCL Bot <kcl@example.com>

---------

Signed-off-by: Peefy <xpf6677@163.com>
Signed-off-by: KCL Bot <kcl@example.com>
Co-authored-by: KCL Bot <kcl@example.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

28 of 30 new or added lines in 2 files covered. (93.33%)

5089 of 16649 relevant lines covered (30.57%)

2.09 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
44.0
44.0% pkg/server/rest_server.go
Jobs
ID Job ID Ran Files Coverage
1 36464406529.1 28 Sep 2026 06:20PM UTC 107
30.55
GitHub Action Run
2 36464406529.2 28 Sep 2026 06:20PM UTC 107
30.55
GitHub Action Run
3 36464406529.3 28 Sep 2026 06:20PM UTC 107
30.57
GitHub Action Run
4 36464406529.4 28 Sep 2026 06:20PM UTC 107
30.57
GitHub Action Run
5 36464406529.5 28 Sep 2026 06:20PM UTC 107
30.57
GitHub Action Run
6 36464406529.6 28 Sep 2026 06:20PM UTC 107
30.57
GitHub Action Run
Source Files on build 36464406529
  • Tree
  • List 107
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6199d3ee on github
  • Prev Build on main (#36255287824)
  • Next Build on main (#37215309308)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc