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

kcl-lang / kcl-go / 37771281016
34%

Build:
DEFAULT BRANCH: main
Ran 08 Oct 2026 11:37AM 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:37AM UTC coverage: 33.65%. Remained the same
37771281016

push

github

web-flow
fix(test): stop root-package tests writing .k fixtures into the repo tree (#604)

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.

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>

5237 of 15563 relevant lines covered (33.65%)

2.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37771281016.1 08 Oct 2026 11:37AM UTC 105
33.65
GitHub Action Run
2 37771281016.2 08 Oct 2026 11:37AM UTC 105
33.65
GitHub Action Run
3 37771281016.3 08 Oct 2026 11:37AM UTC 105
33.65
GitHub Action Run
4 37771281016.4 08 Oct 2026 11:37AM UTC 105
33.65
GitHub Action Run
5 37771281016.5 08 Oct 2026 11:37AM UTC 105
33.65
GitHub Action Run
6 37771281016.6 08 Oct 2026 11:37AM UTC 105
33.65
GitHub Action Run
Source Files on build 37771281016
  • Tree
  • List 105
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 04b3b28e on github
  • Prev Build on main (#37769151484)
  • Next Build on main (#38288278161)
  • 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