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

Teamwork / kommentaar / 28527927887
55%
master: 55%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.3.3
DEFAULT BRANCH: master
Ran 01 Jul 2026 03:15PM UTC
Jobs 1
Files 10
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

01 Jul 2026 03:14PM UTC coverage: 54.66% (+1.0%) from 53.654%
28527927887

Pull #115

github

shane-tw
docparse: reuse FindComments ASTs in type resolution

Two optimisations to reduce redundant file parsing:

1. Cross-phase AST reuse: FindComments already parses every controller
   file to extract endpoint comments. Those ASTs were discarded, causing
   getDecls to re-parse the same files from disk when resolving types.
   A sync.Map (astFileCache) now caches *ast.File by absolute path during
   FindComments; getDecls checks this cache before calling parser.ParseFile.

2. Parallel parsing in getDecls: files not already in astFileCache are now
   parsed concurrently (same WaitGroup pattern used in FindComments) rather
   than sequentially via goutil.ParseFiles. This halves the wall-clock cost
   of first-time lookups into large dependency packages.

Combined, these changes eliminate the dominant double-parse bottleneck: all
files scanned by FindComments are resolved in getDecls at zero I/O cost,
and uncached dependency packages are parsed in parallel instead of serially.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pull Request #115: docparse: parse source files in parallel

100 of 115 new or added lines in 1 file covered. (86.96%)

1 existing line in 1 file now uncovered.

1255 of 2296 relevant lines covered (54.66%)

40.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
56.16
4.03% docparse/find.go

Coverage Regressions

Lines Coverage ∆ File
1
56.16
4.03% docparse/find.go
Jobs
ID Job ID Ran Files Coverage
1 28527927887.1 01 Jul 2026 03:15PM UTC 10
54.66
GitHub Action Run
Source Files on build 28527927887
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #115
  • PR Base - master (#27542449118)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc