Versioning Shared Engineering Tooling
Sharing a tool moves responsibility rather than removing it. An architecture-rule checker illustrates compatibility, testing from the user’s side, version adoption and the cost of upgrades.
- Topics
- Platform EngineeringCI/CDDXTooling
- Published
- Reading time
- 7 min read
Sharing a tool changes who owns a problem. A copied script can be fixed inside one project. A shared tool can improve several projects with one release, but its owner now has to account for different setups and upgrade schedules.
The promise a shared tool makes goes beyond what it does. It includes which files it looks at, what settings it accepts, how it reports failure and what an upgrade asks of each team. Versioning is useful when it makes those obligations explicit.
Consider a shared checker used by two applications. It enforces one architecture rule: screens must not read from storage directly and must go through a data layer instead.
Name the contract with the teams that use it
The checker takes a small configuration: where the source code lives, which rules are on, and which version of the settings format is in use. Even that raises questions a real release would have to answer. Is a folder path measured from the settings file or from wherever the command runs? Are generated files included? How are shortcut names for folders resolved? What happens when a file cannot be read at all?
Those answers are part of compatibility. Changing how folders are resolved can silently shrink what the checker covers, even if every setting keeps its name. Turning an unresolved import from a warning into an error can block a team without changing how they run the tool.
I would document the accepted settings, the supported kinds of source code, how paths are interpreted, what each exit status means and any output other tools depend on. Messages for humans can change more freely if teams are told not to parse them. Otherwise a harmless rewording can break a script downstream.
The boundary should be small enough to maintain. A tool that promises to handle every language version and every way of resolving imports inherits a huge compatibility problem. A smaller supported surface, with a clear failure for unsupported input, is easier to trust than a long feature list with uncertain behavior.
Separate rule changes from machinery changes
An upgrade can affect a project for two different reasons. What counts as allowed can change, or the machinery that applies the definition can change.
Each kind of change needs its own explanation, even if one package ships several together. Figure 1 sorts three examples into the two reasons, with what each asks of a project.
What counts as allowed
New rule
Rejects a pattern once accepted
Code that passed may now fail. Check your own code before adopting the release.
The machinery that applies it
Parser update
Reads newer syntax
Launch change
Alters how paths or exit statuses reach the caller
The rule is the same, but files may be read or results reported differently. Check that the tool still runs the way the project runs it.
Separate packages are one option when the parts have different owners or release rhythms. They also create more versions to coordinate. With only a few consumers, one package with clear internal boundaries may be simpler. I would split only when independent releases and independent adoption are worth the extra coordination.
The goal is that a team can answer two questions: what changed, and what must I check? The number of repositories is not a measure of how mature a platform is.
Treat a stricter rule as a compatibility event
Suppose the release convention reserves a small patch release for fixes that keep the documented promise, a minor release for additions teams can opt into, and a major release for changed defaults or newly rejected input that was supported before.
Under that policy, making an existing rule stricter is a compatibility event. "More correct" does not make a change free: a team may have to change its own code before it can adopt the release. Even a bug fix deserves an upgrade note if projects relied on the old behavior.
There is a trade-off. Treating every new finding as breaking makes releases cumbersome. Letting enforcement tighten without warning makes teams reluctant to upgrade. An opt-in rule offers a way through: projects look at the findings first, then choose when to make the rule blocking.
Release notes should name the affected behavior, give a small before-and-after example and say what action is required. "Improved validation" does not tell a maintainer whether syntax support, policy or messages changed.
Test from the user's side
Tests inside the checker can show that a particular import is rejected. They do not show that an application can install the released package, find its settings and run it the way it normally does.
The two applications raise different questions. One uses plain relative imports; the other uses folder shortcuts and generated files. A small sample project for each can install the candidate release and run the public command, rather than reaching into the checker's own code. Figure 2 shows both samples gating a candidate release.
Each sample installs the candidate release and runs the public command.
Sample project A
Relative imports
Sample project B
Folder shortcuts, generated files
Candidate release offered to teams
Each sample should include allowed imports, one known forbidden import and the kind of syntax it stands for. A file the tool cannot read should show up as a failure. If the checker quietly ignores a file it does not understand, a passing run tells the team less than they think.
The samples would only be useful while they stay representative: a sample built years ago with a trivial source file will not prove compatibility with a team that has moved on to newer language features.
Testing from the user's side has a maintenance cost too. Supporting every historical combination forever can cost more than the shared tool saves. A declared support window and a clear owner for keeping the samples current make that cost something a team can discuss.
Pin versions, then make upgrades routine
A team should be able to review an upgrade as a deliberate change. Pinning the tool's version and recording what it depends on makes that possible. It does not freeze the whole environment: runtime versions, downloaded programs and external settings can still change behavior.
Pinning also allows divergence. Two projects using the same shared tool can enforce different policies because they use different versions or settings. Shared ownership reduces duplicated work; it does not make every project identical. Figure 3 shows two applications drawing on the same checker at different versions.
Each application carries the version it is pinned to.
Shared checker
Released versions
Documented contract per release
Application A
Relative imports
Upgrades when its owner is ready.
Application B
Folder shortcuts, generated files
May enforce a different policy.
A useful adoption record lists, for each project, the version it uses, who owns it and any upgrade it has put off. An upgrade proposal can then show the new findings, the settings that must change and the results of checking. The owner of each application decides when its code is ready for the new contract.
Rolling back needs equal attention. Returning to an earlier version may restore the old behavior, but it cannot undo the code and settings changes made during the migration. Keep those changes small enough to reverse together.
Count the work that continues
Deciding to share a tool should include the work after it is extracted: looking into failures reported by teams, maintaining releases, retiring unsupported versions and making upgrades possible without rewriting every application at once.
For one stable project, keeping a small script local may be the better choice. Several projects with the same recurring need make a stronger case for shared ownership. The benefit appears when a common change can be made once and adopted with limited effort, while each application keeps a clear view of the contract it is accepting.
Whether the required checker can disappear without blocking a merge is a separate question, covered in Engineering Guardrails That Fail Closed. Versioning answers what a team adopts and how it changes. The merge policy decides whether the agreed control is truly required.