ring/default/lib/codereview/README.md
Fred Amaral 352e70286b
ci(codereview): add workflow to build and commit binaries automatically
build(codereview): add multi-platform release build script
feat(skill): integrate pre-analysis pipeline into code review
chore(codereview): check in initial pre-compiled multi-platform binaries
docs(codereview): add README for pre-compiled binaries and build script
docs: remove obsolete codereview development handoff files
2026-01-14 16:22:13 -03:00

3 KiB

Ring Codereview Binaries

Pre-compiled binaries for the Ring codereview pipeline. These tools perform static analysis, AST extraction, call graph generation, and context compilation for AI-assisted code review.

Binaries

Binary Purpose
run-all Pipeline orchestrator - runs all analysis phases in sequence
scope-detector Detects changed files and determines review scope
static-analysis Runs language-specific static analysis tools
ast-extractor Extracts Abstract Syntax Tree data from source files
call-graph Generates function/method call relationships
data-flow Analyzes data flow patterns and dependencies
compile-context Compiles analysis results into reviewer-specific context

Platform Support

Platform Architecture Directory
macOS Intel amd64 bin/darwin_amd64/
macOS Apple Silicon arm64 bin/darwin_arm64/
Linux x86_64 amd64 bin/linux_amd64/
Linux ARM arm64 bin/linux_arm64/

Directory Structure

default/lib/codereview/
├── README.md
└── bin/
    ├── darwin_amd64/
    │   ├── run-all
    │   ├── scope-detector
    │   ├── static-analysis
    │   ├── ast-extractor
    │   ├── call-graph
    │   ├── data-flow
    │   └── compile-context
    ├── darwin_arm64/
    │   └── ... (same binaries)
    ├── linux_amd64/
    │   └── ... (same binaries)
    └── linux_arm64/
        └── ... (same binaries)

Rebuilding Binaries

Prerequisites

  • Go 1.21 or later
  • Access to the Ring repository

Build Commands

From the repository root:

# Build all platforms
./scripts/codereview/build-release.sh

# Clean and rebuild all platforms
./scripts/codereview/build-release.sh --clean

# Build specific platform only
./scripts/codereview/build-release.sh --platform=darwin/arm64
./scripts/codereview/build-release.sh --platform=linux/amd64

Build Options

Option Description
--clean Remove existing binaries before building
--platform=<os/arch> Build only for specific platform
--help Show usage information

Build Flags

Binaries are built with the following flags for optimization:

  • -ldflags="-s -w" - Strips debug symbols for smaller binary size

Source Location

Source code is located at: scripts/codereview/cmd/<binary>/

Usage

The binaries are automatically selected based on the current platform when invoked through the Ring codereview pipeline. For manual usage:

# Direct invocation (example for macOS ARM)
./default/lib/codereview/bin/darwin_arm64/run-all --help

# Or add to PATH
export PATH="$PATH:$(pwd)/default/lib/codereview/bin/darwin_arm64"
run-all --help

Version Information

Binaries are rebuilt when:

  • Source code changes in scripts/codereview/cmd/
  • Go version is updated
  • Build flags are modified

To verify binary integrity, compare SHA256 checksums after building locally.