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

kcl-lang / kcl-go / 37770353321
34%
main: 34%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/github.com/getkin/kin-openapi-0.151.0
DEFAULT BRANCH: main
Ran 08 Oct 2026 11:29AM UTC
Jobs 6
Files 105
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

08 Oct 2026 11:28AM UTC coverage: 33.65%. Remained the same
37770353321

Pull #604

github

KCL Bot
fix(test): stop root-package tests writing .k fixtures into the repo tree

TestParseFileInTheWholeRepo (added in #599) walks the whole repo and parses
every .k file it finds. Three tests in this package created scratch files
under testdata/ and deleted them mid-run, so when the walk reached testdata
while one of them was between its os.Remove and its re-create, filepath.Walk
failed with:

    Error walking the path ../..: lstat ../../testdata/main_.k:
    no such file or directory

Go runs test packages in parallel, so the two collide. It surfaced on macOS
CI as a single failing job out of six — flakiness, not a deterministic
break. The same collision can also surface one step later as a ParseFile
failure when the file vanishes between the walk's stat and the read.

Point the three tests at t.TempDir() instead: TestWithOverrides,
TestWithSelectors and TestWithSelectorsReturnString. Their fixtures were
never meant to be repo content, and t.TempDir cleans up on its own, which
also drops the duplicated os.Remove + defer os.Remove pairs.

The race predates the lib bump, but removing the kcl-lang-lib checkout in
#603 made the walk shorter and therefore likelier to land on testdata/ while
a sibling package was churning it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: KCL Bot <kcl@example.com>
Pull Request #604: fix(test): stop root-package tests writing .k fixtures into the repo tree

5237 of 15563 relevant lines covered (33.65%)

2.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37770353321.1 08 Oct 2026 11:29AM UTC 105
33.65
GitHub Action Run
2 37770353321.2 08 Oct 2026 11:29AM UTC 105
33.65
GitHub Action Run
3 37770353321.3 08 Oct 2026 11:29AM UTC 105
33.65
GitHub Action Run
4 37770353321.4 08 Oct 2026 11:29AM UTC 105
33.65
GitHub Action Run
5 37770353321.5 08 Oct 2026 11:29AM UTC 105
33.65
GitHub Action Run
6 37770353321.6 08 Oct 2026 11:29AM UTC 105
33.65
GitHub Action Run
Source Files on build 37770353321
  • Tree
  • List 105
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #604
  • PR Base - main (#37769151484)
  • 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