- Switch from graalvm-community to graalvm (Oracle GraalVM)
- Remove Windows ARM64 from matrix (no GraalVM support available)
- Add fail-fast: false to prevent one failure from cancelling others
Native builds now target 4 platforms:
- Linux x64
- Linux ARM64
- macOS ARM64
- Windows x64
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add windows-11-arm runner to build matrix for ARM64 Windows builds.
Now building for 5 platforms:
- Linux x64 (ubuntu-latest)
- Linux ARM64 (ubuntu-24.04-arm)
- macOS ARM64 (macos-latest)
- Windows x64 (windows-latest)
- Windows ARM64 (windows-11-arm)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Use cmd shell on Windows to avoid PowerShell argument parsing issues
- Update macOS Intel runner from macos-13 to macos-15-large
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Changes tap repo from homebrew-barn to homebrew-tap for cleaner
install command: brew install samson-media/tap/barn
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updates documentation to reflect the actual Maven-based build:
- pom.xml instead of gradle.properties for version
- mvn commands instead of gradlew
- Updated build workflow examples
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds automated build, test, and release pipelines:
- build.yml: Run tests and build native images on push/PR
- release.yml: Build and publish releases on tag push
- update-homebrew.yml: Auto-update Homebrew formula on release
Also adds CHANGELOG.md for tracking releases.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
When a job fails to start (e.g., command not found), the error is now
written to stderr.log so it appears in `barn describe --logs` output.
Previously, the log files were empty for jobs that failed before the
process could start, making it hard to diagnose the issue.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Jobs can fail before they start running (e.g., command not found,
permission denied). Previously, the state machine only allowed
QUEUED -> RUNNING or CANCELED, so jobs that failed to start would
stay stuck in QUEUED state with the scheduler retrying endlessly.
Now jobs can transition directly from QUEUED to FAILED, properly
recording the error message for commands that cannot be executed.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The previous configuration used ${java.io.tmpdir} which resolves to
/var/folders/... on macOS, while the data directory uses /tmp/barn.
This caused a mismatch where logs and data were in different locations.
Changed to use explicit /tmp/barn/logs as default for both FILE and
JSON appenders to match the ConfigDefaults.getDefaultBaseDir() path.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add NopStatusListener to suppress logback initialization messages
- Remove console appender from default root logger (file only)
- CLI commands now show clean output without logging noise
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement proper CLI-to-service communication via Unix domain sockets,
fixing issue where CLI commands couldn't see jobs managed by the service.
Key changes:
- Add IPC client/server for CLI-service communication
- Fix directory mismatch (CLI used java.io.tmpdir, service used /tmp/barn)
- Add service management commands (start, stop, restart, reload, logs)
- Add service installation for macOS (launchd), Linux (systemd), Windows
- Add process usage monitoring (barn usage command)
- Add job state breakdown in service status (succeeded, failed, canceled)
- Add output formatters (human, JSON, XML)
- Add crash recovery and heartbeat checking
- Add structured logging with MDC context
The CLI commands now properly communicate with the running service
via IPC, ensuring consistent job state visibility.
Fixes#24
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add process execution infrastructure:
- ProcessUtils for cross-platform process management (isAlive, killTree)
- ProcessExecutor for command execution with output capture to log files
- ProcessMonitor for asynchronous process monitoring with events
- JobRunner for orchestrating job execution with state management
Features:
- Cross-platform support (Windows, macOS, Linux)
- Real-time stdout/stderr capture to log files
- Heartbeat monitoring during execution
- Graceful and forceful process termination
Includes 54 new tests for comprehensive coverage.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add core job management infrastructure:
- Job record with lifecycle methods (createQueued, withStarted,
withCompleted, withRetry, withCanceled)
- JobIdGenerator for unique job identifiers (job-XXXXXXXX format)
- JobManifest for immutable job configuration with retry settings
- JobStateMachine for validating state transitions
- JobRepository for filesystem persistence using atomic operations
State transitions: QUEUED → RUNNING → SUCCEEDED/FAILED/CANCELED
Failed jobs can transition back to QUEUED for retry.
Includes 87 tests covering all components with comprehensive edge
case coverage.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Create Main.java with picocli integration and testable run() method
- Create BarnCommand as root command with all subcommands registered
- Add placeholder subcommands: run, status, describe, kill, clean, service, config
- Update package structure from org.media.samson to com.samsonmedia.barn
- Configure checkstyle to allow underscores in test method names
- Add comprehensive tests for all CLI commands (26 tests, 80%+ coverage)
Closes#1
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>