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

umputun / tg-spam / 32407754546
84%

Build:
DEFAULT BRANCH: master
Ran 20 Aug 2026 07:19PM UTC
Jobs 1
Files 43
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

20 Aug 2026 07:16PM UTC coverage: 83.887% (+0.04%) from 83.848%
32407754546

push

github

web-flow
fix: make dynamic lua reload reach the running checks (#445)

createMetaChecker captured the *lua.LFunction and the detector keeps those closures for the
life of the process, so a reload swapped a registry entry nothing ever read again and an
edited rule kept its old verdict until restart while the log said it reloaded. The closure
now resolves the function on every call, inside the write lock it already holds.

ReloadScript deleted the map entry before validating, so a syntax error left nothing
registered while the detector still held and ran the old closure: the plugin vanished from
GetLuaPluginNames and the admin UI while it went on classifying. LoadScript already validates
in a throwaway state and writes the map only on success, so ReloadScript just calls it. Its
godoc states the limit of that guarantee, since a candidate that reassigns a global before
failing has already changed what the previous version does.

The watcher's deleted-file branch skipped its own delete of the pending event, so one removed
script was re-logged every debounce tick for the life of the process. Its message now asks the
registry before claiming anything, and claims only that the entry survives.

Not covered: newly created files still do not reach the detector, there is no runtime unload,
and fsnotify.Rename is untracked.

Related to #444

19 of 24 new or added lines in 2 files covered. (79.17%)

2 existing lines in 1 file now uncovered.

9012 of 10743 relevant lines covered (83.89%)

241.05 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
93.62
0.51% lib/tgspam/plugin/checker.go
2
82.69
5.92% lib/tgspam/plugin/watcher.go

Coverage Regressions

Lines Coverage ∆ File
2
94.25
-0.22% lib/tgspam/detector.go
Jobs
ID Job ID Ran Files Coverage
1 32407754546.1 20 Aug 2026 07:19PM UTC 43
83.89
GitHub Action Run
Source Files on build 32407754546
  • Tree
  • List 43
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8c84274f on github
  • Prev Build on master (#32313469587)
  • Next Build on master (#32425913176)
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