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

skeema / skeema / 8012608859
92%

Build:
DEFAULT BRANCH: main
Ran 23 Feb 2024 12:07AM UTC
Jobs 1
Files 75
Run time 5s
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

22 Feb 2024 11:35PM UTC coverage: 93.278% (-0.007%) from 93.285%
8012608859

push

github

evanelias
internal refactors prior to MariaDB 11.3 support

This commit includes two refactors, which are being made prior to MariaDB
11.3 support (which will come later in a separate commit).

The first refactor is a small adjustment to the interface which specifies
whether an ALTER TABLE clause is unsafe. Previously, this interface accepted
no args. Now, a StatementModifiers value can be supplied. This will initially
be used for supporting MariaDB 11.3's ability to safely convert inet4 columns
to inet6. With the previous interface, there was no way to specify the Flavor,
which is now needed to determine if this conversion is safe.

The bulk of this commit is a second refactor -- to various tengo.Flavor
methods, variables, and callsites -- primarily to avoid having to maintain an
ever-growing list of Flavor values.

Previously, we would introduce a new Flavor variable for every major.minor
release series; these were used for flavor-gating logic, as well as in tests.
When this approach was first adopted, only 1 to 3 new major.minor release
series were added per year. But now that both MariaDB and MySQL (and variant
Percona Server) each release a new minor version every 3 months, this setup is
no longer ideal, as we already have 31 such values defined and the list is
growing by 12 values per year.

To solve this, new flavor comparison functions have been introduced, which no
longer rely on the pre-baked Flavor values. For example, code previously like
this:
    if flavor.Min(tengo.FlavorMySQL57) { ... }
now becomes this:
    if flavor.MinMySQL(5, 7) { ... }

Meanwhile, in test logic, flavors are now often expressed as strings which are
then passed to ParseFlavor. This is less efficient than the old pre-baked
values, but the impact to test execution time should still be negligible.

9713 of 10413 relevant lines covered (93.28%)

1.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8012608859.1 23 Feb 2024 12:07AM UTC 0
93.28
GitHub Action Run
Source Files on build 8012608859
Detailed source file information is not available for this build.
  • Back to Repo
  • 98313cf0 on github
  • Prev Build on main (#7837484728)
  • Next Build on main (#8056673349)
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