Borehole · Project · free tier
matrixorigin/matrixone
Free reading: not for reliance
d2451d5 · 13,691 commits · 13,237 files
Read 2026-11-03

matrixorigin/matrixone: technical due diligence, read from its repository

What Borehole read in matrixorigin/matrixone's code and history at d2451d5: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturityadequate
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • LICENSE: Relicensed: GPL-3.0 → Apache-2.0 (2021-09-07)
  • .gitmodules:1: 1 submodule(s) this survey does not read: third_party/sirius

Architecture & Codebase — including AI provenance

strong
01.6

pkg/sql/plan/function/list_builtIn.go is 17,470 lines, 88× this codebase's median file

adequate

The median source file here is 197 lines. 119 files exceed 1,970 lines, the largest being 17,470. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

Evidence
pkg/sql/plan/function/list_builtIn.go:1 — 17,470 lines (88× median)
pkg/sql/parsers/dialect/mysql/mysql_sql.y:1 — 17,383 lines (88× median)
pkg/sql/plan/query_builder.go:1 — 15,678 lines (79× median)
pkg/sql/plan/function/func_binary.go:1 — 15,511 lines (78× median)
thirdparties/cuda/Common/GL/glew.h:1 — 14,458 lines (73× median)

Engineering Process & SDLC Maturity

adequate
02.24

13% of recent commits change more than 2,000 lines

adequate

570 of 4306 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.

Evidence
570 commits over 2,000 lines

Product & Engineering Maturity

adequate
04.3

122 direct dependencies in a single manifest

adequate

go.mod declares 122 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.

Evidence
go.mod — 122 declared
clients/python/pyproject.toml — 7 declared
optools/tpch_compare/go.mod — 2 declared
pkg/iceberg/adapter/iceberggo/go.mod — 1 declared
04.17

Python 3.9 is past end of life

adequate

The code is pinned to Python 3.9 (end of life 2025-10-31). None of these receives security fixes any more; the first stopped on 2025-10-31. Moving off an unsupported runtime is rarely a one-line change, so a buyer should ask whether the upgrade is planned and what it touches.

Evidence
optools/images/pythonserver/Dockerfile — Python 3.9, end of life 2025-10-31
04.20

Fixes are 72% of recent work, up from 44%

adequate

In the last two quarters 72% of commits were fixes, against 44% in the quarters before. Rising fix work usually means quality debt is coming due, and it takes time that new work would have had.

Evidence
71%, 74%, 62%, 45%, 45%, 38%, 42%, 35%
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, v4.2.7, is not on the branch this survey read; the newest release on it is v0.7.0. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag v4.2.7

Security & Reliability Posture

adequate
05.3

16 dependencies float, and no lockfile is committed

adequate

Dependency versions are declared as ranges and no lockfile is committed, so a build today does not necessarily produce what a build last month produced. That matters twice over in a transaction: the thing being bought cannot be reproduced exactly, and a compromised upstream release arrives without anyone choosing to take it.

05.6

3 Dockerfiles run the application as root

adequate

No USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.

Evidence
optools/bvt_ut/Dockerfile — runs as root
optools/images/Dockerfile — runs as root
optools/images/gpu/Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

19 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.

Evidence
.github/workflows/entrypoint.yaml:43 — action pinned by tag
.github/workflows/entrypoint.yaml:120 — action pinned by tag
05.13

6 outbound calls can wait forever

adequate

6 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.

Evidence
cmd/mo-debug/goroutine.go:227 — outbound call without a timeout
pkg/util/metric/v2/dashboard/grafana_dashboard.go:589 — outbound call without a timeout
pkg/util/metric/v2/dashboard/grafana_dashboard.go:646 — outbound call without a timeout
05.20

93 SQL statements built from strings

adequate

93 places in product code build SQL by formatting or joining strings rather than passing parameters, and in 13 of them a value, not a table or column name, goes into the string. Where any of those values comes from a request, it is an injection point. Each site needs a look; the fix, parameters, is small.

Evidence
clients/python/matrixone/clone.py:87 — SQL built from a string
clients/python/matrixone/clone.py:93 — SQL built from a string
optools/range_scalar_bench.py:50 — SQL built from a string
05.26

2 locked dependencies have published vulnerabilities, 4 high or critical in what ships

adequate

2 of 304 locked dependencies match 4 published advisories in OSV, 4 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version.

Evidence
go.mod — vitess.io/vitess v0.24.0: GHSA-v75v-6fpf-gvw8 (critical), fixed in 0.24.2
go.mod — github.com/hamba/avro/v2 v2.31.0: GO-2026-5046 (high)
05.60

Relicensed: GPL-3.0 → Apache-2.0 (2021-09-07)

adequate

The root licence changed 1 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE — GPL-3.0 from 2021-02-18
LICENSE — Apache-2.0 from 2021-09-07

Observability & Operations

strong
06.9

No error reporter is wired in

adequate

Nothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.

Evidence
no error reporter initialised
06.18

4 of 12 deployed images carry no version, or `latest`

adequate

4 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on matrixorigin/matrixone: every dimension, the questions for the room, and the audit log.

Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.