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

skeema / skeema / 12876819173
92%

Build:
DEFAULT BRANCH: main
Ran 20 Jan 2025 10:58PM UTC
Jobs 1
Files 78
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 Jan 2025 10:35PM UTC coverage: 93.255% (-0.007%) from 93.262%
12876819173

push

github

evanelias
introspection: reduce network transfer for routines

When introspecting routines (procs/funcs) from information_schema, the
routine body was previously queried from I_S.routines, as well as either
mysql.proc or SHOW CREATE. The version from I_S.routines was not used, as it
contains formatting/escaping problems in MySQL; and while it is correct in
MariaDB, it was still not used because the other sources (mysql.proc or SHOW
CREATE) still need to be queried anyway to obtain the param list efficiently.

This commit therefore removes routine_definition from the SELECT list when
querying information_schema.routines. For users with many routines and/or
large routine bodies, this change improves performance when operating over
a slow network link (WAN/VPN/cross-region).

This commit also refactors some older routine-related code to remove
unnecessary sprintf calls, make use of strings.Cut, make use of Go 1.22+ loop
variable scope change, use error wrapping, etc. A couple similar minor
refactors are also made to table introspection code.

31 of 35 new or added lines in 2 files covered. (88.57%)

10245 of 10986 relevant lines covered (93.26%)

1.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
94.32
-0.21% internal/tengo/routine.go
1
94.58
-0.01% internal/tengo/table_introspect.go
Jobs
ID Job ID Ran Files Coverage
1 12876819173.1 20 Jan 2025 10:58PM UTC 78
93.26
GitHub Action Run
Source Files on build 12876819173
  • Tree
  • List 78
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3e822d67 on github
  • Prev Build on main (#12728363597)
  • Next Build on main (#12917617921)
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