All checks were successful
CI / CUDA type-check (push) Successful in 1m36s
CI / Format (push) Successful in 31s
CI / Clippy (push) Successful in 2m47s
CI / Test (push) Successful in 4m33s
CI / Build cortex SRPM (push) Has been skipped
CI / Build neuron SRPM (push) Has been skipped
CI / Publish cortex to COPR (push) Has been skipped
CI / Publish neuron to COPR (push) Has been skipped
CI / Bump version in source (push) Has been skipped
Adds automated, longitudinal performance tracking across neuron builds,
replacing manual script/bench.py runs and hand edits to benchmarks.md.
neuron build metadata + GET /version:
- cortex-core: shared BuildInfo type (build_info.rs).
- neuron build.rs captures git SHA (preferring injected HELEXA_BUILD_SHA,
else git, else "unknown"), dirty flag, build timestamp, rustc version,
profile, target, enabled cargo features, and best-effort candle-core
version from Cargo.lock.
- New GET /version endpoint (version.rs) + clap --version long form.
- SHA injected in CI (build-neuron step) and helexa-neuron.spec
(%{?helexa_commit}) so tarball RPMs report the real SHA. /version is
now the canonical "which build is live" probe.
helexa-bench crate:
- Continuous daemon: hits each neuron directly on :13131, exercises each
warm (status==loaded) model, records every run into a SQLite
system-of-record stamped with the neuron's full BuildInfo.
- Version-aware: skips any (target, build SHA, model, scenario) cell
already at samples_per_version, so a steady fleet costs only cheap
/version + /models polls until a new SHA ships.
- Extensible Scenario trait; phase-1 chat-latency family ported verbatim
from bench.py (synthetic 128/4096-tok prompts, /no_think, streamed
TTFT + decode-window tok/s). `report` regenerates the benchmarks table.
- kind="openai" comparison targets scaffolded, not yet wired.
Packaging: data/helexa-bench.service (+ sysusers), prebuilt-binary RPM
spec (outbound-only, no firewalld), and build/package/publish wiring in
build-prerelease.yml with change detection.
Tests: cortex-core BuildInfo round-trip, neuron GET /version integration,
helexa-bench unit (prompt/SSE/config/store) + end-to-end sweep
(record -> skip -> resume on new SHA). Docs updated (benchmarks.md,
CLAUDE.md addendum).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
107 lines
3.6 KiB
RPMSpec
107 lines
3.6 KiB
RPMSpec
Name: helexa-neuron
|
|
Version: 0.1.16
|
|
Release: 1%{?dist}
|
|
Summary: Per-node GPU discovery and harness management daemon for cortex
|
|
# Package name disambiguates from Fedora's existing "neuron" package
|
|
# (NEURON neural simulation environment from Yale). Binary, systemd
|
|
# unit, and system user are still called "neuron" for brevity.
|
|
|
|
License: GPL-3.0-or-later
|
|
URL: https://git.lair.cafe/helexa/helexa
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1: %{name}-%{version}-vendor.tar.gz
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
BuildRequires: rust >= 1.85
|
|
BuildRequires: cargo
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: cmake
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: pkgconfig(openssl)
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
Requires(pre): shadow-utils
|
|
Requires: systemd
|
|
Requires: firewalld-filesystem
|
|
|
|
# systemd-rpm-macros ships a unit dep generator that parses User=/Group=
|
|
# from our .service file and emits Requires: user(neuron)/group(neuron).
|
|
# rpm's sysusers provides-generator emits the unversioned form for groups
|
|
# but only a versioned user(neuron) = <base64> for users with GECOS/home/
|
|
# shell. Provide the unversioned user(neuron) explicitly so dnf can resolve
|
|
# the auto-generated Requires. Without this, dnf5 silently filters the
|
|
# package and reports "Nothing to do".
|
|
Provides: user(neuron)
|
|
|
|
%description
|
|
Neuron is a per-node daemon for cortex inference clusters. It discovers
|
|
local GPU hardware via nvidia-smi, runs in-process inference via
|
|
huggingface/candle, and exposes an HTTP API for model lifecycle
|
|
management (load, unload, list, inference endpoint).
|
|
|
|
%prep
|
|
%autosetup
|
|
tar xf %{SOURCE1}
|
|
mkdir -p .cargo
|
|
cat > .cargo/config.toml << 'EOF'
|
|
[source.crates-io]
|
|
replace-with = "vendored-sources"
|
|
|
|
[source.vendored-sources]
|
|
directory = "vendor"
|
|
EOF
|
|
|
|
%build
|
|
# Source tarballs carry no .git, so build.rs can't recover the commit on
|
|
# its own — it would report "unknown" from GET /version. Pass the commit
|
|
# in with `rpmbuild --define "helexa_commit <sha>"`; absent that, it
|
|
# degrades to "unknown" rather than failing the build.
|
|
export HELEXA_BUILD_SHA="%{?helexa_commit}"
|
|
cargo build --release -p neuron
|
|
|
|
%install
|
|
install -Dm755 target/release/neuron %{buildroot}%{_bindir}/neuron
|
|
install -Dm644 data/neuron.service %{buildroot}%{_unitdir}/neuron.service
|
|
install -Dm644 data/neuron-sysusers.conf %{buildroot}%{_sysusersdir}/neuron.conf
|
|
install -Dm644 data/neuron-firewalld.xml %{buildroot}%{_prefix}/lib/firewalld/services/helexa-neuron.xml
|
|
install -dm755 %{buildroot}%{_sysconfdir}/neuron
|
|
install -Dm644 neuron.example.toml %{buildroot}%{_sysconfdir}/neuron/neuron.toml
|
|
|
|
%pre
|
|
%sysusers_create_compat %{_builddir}/%{name}-%{version}/data/neuron-sysusers.conf
|
|
|
|
%post
|
|
%systemd_post neuron.service
|
|
|
|
%preun
|
|
%systemd_preun neuron.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart neuron.service
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/neuron
|
|
%{_unitdir}/neuron.service
|
|
%{_sysusersdir}/neuron.conf
|
|
%{_prefix}/lib/firewalld/services/helexa-neuron.xml
|
|
%dir %{_sysconfdir}/neuron
|
|
%config(noreplace) %{_sysconfdir}/neuron/neuron.toml
|
|
|
|
%changelog
|
|
* Thu Apr 16 2026 Gitea Actions <actions@git.lair.cafe> - 0.1.16-1
|
|
- chore: ignore local deploy script
|
|
- chore: move default ports out of common-collision ranges
|
|
- ci: drop actions/cache for cargo registry and target
|
|
|
|
* Thu Apr 16 2026 Gitea Actions <actions@git.lair.cafe> - 0.1.14-1
|
|
- ci: publish both packages to a single helexa/helexa COPR project
|
|
- fix(rpm): rename neuron package to helexa-neuron
|
|
- ci: commit generated %changelog entries back to main
|
|
|
|
* Wed Apr 15 2026 Rob Thijssen <grenade@rob.tn> - 0.1.0-1
|
|
- Initial package
|