From 53cb46f130cff1073846c7a9a005aaa901f8916d Mon Sep 17 00:00:00 2001 From: "xsank.mz" Date: Mon, 5 Oct 2026 14:05:19 +0000 Subject: [PATCH] release 0.1.0 --- .github/workflows/ci.yml | 3 ++- .github/workflows/release.yml | 36 +++++++++++++++++++++++++++++++++++ CHANGELOG.md | 5 +++++ README.md | 2 ++ RELEASE_NOTES.md | 25 ++++++++++++++++++++++++ VERSION | 1 + server.py | 2 +- 7 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 CHANGELOG.md create mode 100644 RELEASE_NOTES.md create mode 100644 VERSION diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e6135c..282aa4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: pull_request: push: - branches: [main] + branches: [main, 'release/**'] permissions: contents: read @@ -25,6 +25,7 @@ jobs: uses: actions/checkout@v7 with: repository: open-rec/rec-algorithm + ref: e2bab2c3a4d0692756da9eb4abd4414e126bab87 path: rec-algorithm - name: Set up Python uses: actions/setup-python@v6 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1f3717a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: Release + +on: + push: + tags: ['v*'] + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v7 + - name: Validate version and create source archive + shell: bash + env: + REPOSITORY_NAME: ${{ github.event.repository.name }} + run: | + version="$(tr -d '[:space:]' < VERSION)" + test "${GITHUB_REF_NAME}" = "v${version}" + test -s RELEASE_NOTES.md + [[ "${version}" != *-dev ]] + archive="${REPOSITORY_NAME}-${version}.tar.gz" + git archive --format=tar.gz --prefix="${REPOSITORY_NAME}-${version}/" -o "${RUNNER_TEMP}/${archive}" HEAD + cd "${RUNNER_TEMP}" + sha256sum "${archive}" > "${archive}.sha256" + - name: Publish release notes and source assets + uses: softprops/action-gh-release@v3 + with: + body_path: RELEASE_NOTES.md + fail_on_unmatched_files: true + files: | + ${{ runner.temp }}/*.tar.gz + ${{ runner.temp }}/*.tar.gz.sha256 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a523f73 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## 0.1.0 — 2026-10-05 + +First coordinated release. See [release notes](RELEASE_NOTES.md) for features, compatibility and known limitations. diff --git a/README.md b/README.md index 67ff189..6ce0084 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # OpenRec Rank Engine +[Release v0.1.0](RELEASE_NOTES.md) · [Changelog](CHANGELOG.md) + [![CI](https://github.com/open-rec/rank-engine/actions/workflows/ci.yml/badge.svg)](https://github.com/open-rec/rank-engine/actions/workflows/ci.yml) ![Python](https://img.shields.io/badge/Python-3.12-3776AB?logo=python&logoColor=white) ![FastAPI](https://img.shields.io/badge/FastAPI-0.141.1-009688?logo=fastapi&logoColor=white) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md new file mode 100644 index 0000000..7793b20 --- /dev/null +++ b/RELEASE_NOTES.md @@ -0,0 +1,25 @@ +# rank-engine v0.1.0 + +Released: 2026-10-05 + +Online model inference. First coordinated OpenRec source release. + +## Features + +- FastAPI scoring for source users and item or user candidates, using LR, FM and LightGBM models. +- Shared encoders and feature contracts from rec-algorithm, Redis feature snapshots, and refreshable time-window features. +- Versioned model loading, retained activation state, startup recovery and readiness checks. +- Explicit feature-sidecar validation, scoring metrics and CPU/CUDA device configuration. +- Session and request feature transport where supported by the selected model contract. + +## Installation and compatibility + +Build with rec-algorithm `v0.1.0`. Model weights, fitted feature sidecars and selected definitions must be compatible. Default bootstrap models live under `rank/item` and `rank/user`; trained releases and activation state use separate runtime storage. + +The service loads and scores models; offline training belongs to rec-algorithm. Standalone normally bypasses ranking. A nonempty rec-server response alone does not establish that ranking succeeded; cluster acceptance checks rank scores. + +## Validation and known boundaries + +See this repository's README for build/test commands and deployment requirements. The coordinated release's [validation record](https://github.com/open-rec/openrec/blob/v0.1.0/release/VALIDATION.md) distinguishes checks executed for this release from historical integration evidence. + +This initial release establishes a versioned source baseline. Source archives and checksums are published; external package registries and container registries are not populated by the source-release workflow. Upgrade the complete compatible distribution, retain data/checkpoints/artifacts, and preserve prior component refs for rollback. diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0 diff --git a/server.py b/server.py index 2096eb2..c78c878 100644 --- a/server.py +++ b/server.py @@ -28,7 +28,7 @@ from service.feature_service import FeatureService from util.redis_util import get_redis_client -app = FastAPI(title="OpenRec Rank Engine", version="1.0") +app = FastAPI(title="OpenRec Rank Engine", version="0.1.0") model = None model_info = None user_model = None