Skip to content

development building and releases

github-actions[bot] edited this page Nov 28, 2026 · 53 revisions

Building and releases

Development checks

From the repository root:

go vet ./...
go test ./... -count=1
CGO_ENABLED=1 go test ./... -count=1 -race -timeout 20m  # Linux CI parity
go build ./cmd/solomon

Same checks as .github/workflows/release.yml, including make check-docs. The Linux matrix job enables CGO and the race detector; macOS and Windows run the non-race suite:

CGO_ENABLED=1 go test ./... -count=1 -race -timeout 20m

The workflow also runs:

  • check_doc_paths.go — markdown links between docs, # anchors, and cited code paths
  • check_package_index.go — every Go package under internal/ and cmd/ listed in Package index

Strategy, helpers, and when to mock: Testing. Feature recipes: Cookbook.

Tests (quick reference)

All tests live in test/, package test. Full guide: Testing.

go test ./... -count=1
CGO_ENABLED=1 go test ./... -count=1 -race -timeout 20m  # Linux CI parity
go test ./test -run TestSlashDispatch -count=1

Coverage map (summary)

Area Example test files
Slash dispatch slash_dispatch_test.go
Legacy XML tools legacy_tools_test.go, legacy_runtime_test.go
REPL editor / completion repl_editor_test.go, repl_complete_test.go, repl_complete_path_test.go
Checkpoints checkpoint_truncate_test.go, checkpoint_staging_test.go
LLM / stream stream_integrity_test.go, api_resilience_test.go, anthropic_test.go
Tools edit_file_test.go, find_test.go, tooloutput_test.go
Skills skills_test.go, skills_search_test.go
MCP mcp_config_test.go, mcp_adapter_test.go
Deep research / web surfaces web_surfaces_test.go, research_store_test.go
Auth / Codex provider_auth_test.go, codex_chat_request_test.go
CI events cievents_test.go
Cursor integration cursor_paths_test.go, stream_cursor_tool_test.go — Cursor integration
Updater updater_test.go, commands_update_test.go

Prefer regression tests in test/ when fixing REPL, turn pipeline, or tool behavior.

Local build via Makefile

make build

Produces solomon (Unix/macOS) or solomon.exe (Windows). CGO_ENABLED=0 per Makefile. Builds from a non-tagged or dirty checkout carry a <base>-dev-<commit> version and are compared against the latest release commit before startup auto-update. Replacement requires two checks: the release must be proven to descend from the local commit, and the pre-build source tree must match that commit's committed tree. Dirty builds, missing source snapshots, divergent commits, and unavailable ancestry checks prevent replacement. Commit timestamps can protect a newer local build, but never authorize replacement on their own. A release version can be supplied explicitly with make VERSION=vYYYY.MDD.N build when needed. A VERSION inherited from the shell is ignored unless it was resolved by a parent Make invocation, so a stale environment value cannot pin subsequent installations. Every Make build reads tags from Git remote origin using git ls-remote and selects the newest release tag. If origin is unreachable or has no valid release tags, it uses local tags. This does not fetch or modify local tags and does not call the GitHub API. No release number is hardcoded. The resolver runs once and shares its result with recursive Make invocations, keeping CLI and desktop versions aligned. Development builds retain their source commit and -dirty marker even when the release baseline advances.

Makefile and release builds also embed the Git source-tree hash captured before compilation and version stamping. The update check displays the release tag only when both the full current commit and this input tree match the release's source commit. Uncommitted source changes retain -dirty; a newer commit retains -dev. Generated outputs ignored by Git do not change this source fingerprint. The release workflow creates a tag on the source commit, so that commit is the pre-release baseline; its parent would omit the last actual code change. Executable checksums still verify downloads, but do not determine development status. Builds made directly with go build lack this source snapshot and cannot be promoted to a release by the source-tree comparison.

An explicit solomon upgrade checks the installed binary's version and replaces development builds with the latest published release, including dirty builds or builds at the same or a newer source commit. Source ancestry checks apply to automatic updates; they do not block this explicit request.

The running daemon is the version authority for the desktop app, TUI and solomon version. Use solomon version --binary only to inspect the installed binary independently of the daemon. If no daemon is available, the normal version command reports that fact instead of substituting a binary version.

On Linux, Windows and macOS, solomon upgrade and TUI updates use a detached coordinator. It downloads and verifies the release before interrupting work, closes the native Solomon clients, stops the daemon and its PTYs/workers, replaces the binary, and starts the daemon in its previous mode. In normal mode it serves the release's bundled UI; in dev mode it restarts Vite in the previous GUI directory. Desktop windows are reopened and attached TUIs re-enter through the installed CLI. The desktop shell loads UI assets and API data from the daemon, so it does not retain a separate frontend version. A failed installation restores the previous binary and restarts the runtime. Progress and errors are written to ~/.solomon/logs/update/update.log (under SOLOMON_HOME when configured). Native clients register a graceful shutdown handshake on all three platforms. Windows runs the coordinator from a separate executable copy to release installation locks, and reopens TUI transports in a new console. Unix TUI transports resume in their existing terminal. CI runs the runtime handoff tests on all three platforms.

Application icon

The shared icon is generated from the terminal and GUI Braille art in internal/logo/logo.txt and its color map in internal/logo/colors.txt. The Go renderer is internal/logo/icon.go. After editing either source file, run:

go generate ./internal/logo

This updates the root icon.svg and icon.png, plus the desktop app assets. The GUI's Vite configuration runs the generator before serving or building, so the favicon and Wails platform icons stay in sync. Treat generated icon files as outputs; edit the two source maps instead.

Install from module path

Module path: github.com/SAPPHIR3-ROS3/Solomon/v2026

go install github.com/SAPPHIR3-ROS3/Solomon/v2026/cmd/solomon@latest
go install github.com/SAPPHIR3-ROS3/Solomon/v2026/cmd/solomon@v2026.527.2

Release tags use calendar semver vYYYY.MDD.N (month×100+day in the middle component, e.g. v2026.527.2 = 2026, May 27, revision 2).

Yearly module path updates

When the calendar year advances, create a new major module path (e.g. .../Solomon/v2027) and update imports. Older paths remain installable via their existing tags (@v2026.527.2 on /v2026, etc.).

Releases

CI and calendar tags

Push and pull requests run vet, test, and build (release.yml).

Actions → Release → Run workflow creates tag vYYYY.MDD.N, GitHub release assets, and a GitHub release.

Prebuilt binaries are attached per platform; the install scripts download those assets by default.

The release workflow also builds Wails desktop assets on native Windows, Linux, and macOS runners for amd64 and arm64. macOS assets contain a Solomon.app bundle; Linux and Windows assets contain the desktop executable. All desktop artifacts must build successfully before the release tag and checksums are published. The first CLI launch completes GUI installation using these assets, including when the CLI was built with plain go install.

The release tag points to a commit containing the generated Cursor and frontend bundles. These assets stay out of the development branch. Before pushing the tag, CI compiles an archive of that commit for Linux, Windows and macOS without running the bundlers, so missing embedded files fail before publication. Upgrade smoke tests give older Unix releases a controlling terminal for their restart scripts. They check the installed binary with version --binary and wait for both the binary and daemon to reach the target version. To recheck a published release without creating another tag, run the workflow with smoke_release_tag set to that release tag. Windows upgrade checks start the CLI through WMI with the runner user's environment, because the Actions job forbids the process breakaway requested by older updaters.

See also

Native desktop client (Linux)

The desktop client embeds the production React UI. It connects to the same Solomon daemon used by the web client and starts that daemon when needed. Closing the window leaves daemon-owned chats and terminals running.

Install the GTK 3 and WebKitGTK 4.1 development packages first. On Debian:

sudo apt install libgtk-3-dev libwebkit2gtk-4.1-dev
make desktop-install

For a local development-package installation, Make also checks ${XDG_DATA_HOME:-~/.local/share}/solomon/desktop-devlibs (override with DESKTOP_DEVLIBS). Its usr/lib/<multiarch>/pkgconfig files must point to the local headers and libraries, and library symlinks must resolve to installed runtime libraries. Keep this directory outside /tmp so cleanup does not break later builds. The local include path also invalidates stale CGO cache entries.

This installs solomon and solomon-desktop in BIN_DIR (the Go binary directory by default), plus the Solomon icon and launcher under ${XDG_DATA_HOME:-~/.local/share}. Open Solomon from Show Applications. desktop-install uses the coordinated runtime handoff and preserves the daemon's prior mode after restart. The desktop gateway adapts native WebView requests for older running daemons.

On Linux, make hot-install updates the CLI, web frontend, integrations and native desktop client, including its icon and application-menu entry, then closes the running native clients, then restarts the daemon in its previous mode and reopens those clients using the installed binaries. The command verifies the daemon's build and waits for each reopened client to register before reporting success. Chat history and settings remain saved. It builds the native client before stopping the daemon; missing GTK/WebKit development packages abort the command while the existing daemon keeps running. make desktop-install uses the same coordinated restart rather than preserving the running daemon process.

The progress output retains the original nine numbered steps, reordered so compilation and dependency preparation finish before shutdown. Staged CLI compilation, Cursor dependency preparation, and restart with verification are shown as unnumbered status messages. An already installed CloakBrowser still appears as a skipped step.

For separate builds:

make gui-build       # compile and stage the shared embedded frontend
make desktop-build   # build gui/desktop/build/bin/solomon-desktop

make build and make install also compile the web frontend. Direct go build uses the last staged frontend; run make gui-build first to refresh it. SOLOMON_BINARY can point the desktop client at a CLI outside its own directory.

Clone this wiki locally