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

skeema / skeema / 15478269041
92%

Build:
DEFAULT BRANCH: main
Ran 05 Jun 2025 10:13PM UTC
Jobs 1
Files 79
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

05 Jun 2025 10:05PM UTC coverage: 93.177%. Remained the same
15478269041

push

github

evanelias
table size calculations: don't include DATA_FREE

A few Skeema options/features involve calculating the physical size of a
table:

* safe-below-size option (permit unsafe changes on tables below size)
* alter-wrapper-min-size option (bypass alter-wrapper on tables below size)
* alter-wrapper / ddl-wrapper command-lines using {SIZE} variable (generic way
  to pass the table size to any arbitrary wrapper script)

Skeema obtains table sizes from information_schema.tables metadata.
Previously, when calculating the size of a table, the math included DATA_FREE
in order to more closely align with physical ibd file sizes on disk.

However, upon further reflection, excluding DATA_FREE makes more sense for all
the use-cases above: the actual size of the data and indexes is what matters
for things like OSC tool execution duration, restoring an improperly-dropped
table from a logical backup, etc.

Furthermore, data_free is extremely inaccurate for partitioned tables. (The
MySQL manual suggests use of the I_S partitions table instead for calculating
data_free for partitioned tables, but those values are uselessly always zero,
see https://bugs.mysql.com/bug.php?id=113256)

For these reasons, this commit adjusts table size calculations to now
exclude DATA_FREE. This may affect size-related behaviors when operating on
tables with heavy DELETE workloads, but the change should generally be either
neutral or beneficial with regard to matching the intended behavior of the
size-related options.

1 of 1 new or added line in 1 file covered. (100.0%)

10501 of 11270 relevant lines covered (93.18%)

1.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15478269041.1 05 Jun 2025 10:13PM UTC 79
93.18
GitHub Action Run
Source Files on build 15478269041
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 239cc4a3 on github
  • Prev Build on main (#15477458110)
  • Next Build on main (#15597412458)
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