Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
90eea8b
refactor: update GitHub workflows for release management and image bu…
a-klos Sep 8, 2025
efc78de
feat: refactor Dockerfiles and pyproject.toml for improved dependency…
a-klos Sep 8, 2025
4479baf
fix: update log_cli parameter in pytest configuration to use boolean …
a-klos Sep 8, 2025
2192a84
Refactor dependencies in pyproject.toml:
a-klos Sep 9, 2025
58de48e
refactor: project dependencies and configurations across services
a-klos Sep 10, 2025
9138352
refactor: dependencies in pyproject.toml and poetry.lock
a-klos Sep 10, 2025
a5b8302
refactor: Add local dependencies for rag-core-api and rag-core-lib in…
a-klos Sep 10, 2025
5ed3069
refactor: Update README for development and production modes; enhance…
a-klos Sep 10, 2025
dc6b9c9
Merge branch 'refactor/prod-and-dev-Dockerfiles' into ci/refactor-ghas
a-klos Sep 10, 2025
ba5b13b
chore: merge main
a-klos Oct 7, 2025
8d2530a
chore: update lock file
a-klos Oct 7, 2025
934a638
refactor: reorganize cleanup steps and user configuration in Dockerfiles
a-klos Oct 7, 2025
b035d17
Update services/admin-backend/Dockerfile.dev
a-klos Oct 7, 2025
9c0da53
Update services/document-extractor/pyproject.toml
a-klos Oct 7, 2025
7eea608
fix: correct file copy command for extractor-api-lib source in Docker…
a-klos Oct 7, 2025
d057974
Merge branch 'refactor/prod-and-dev-Dockerfiles' of github.com:stacki…
a-klos Oct 7, 2025
3d640aa
fix(admin-api-lib): resolve G200 logging violations by using logger.e…
a-klos Oct 8, 2025
8e841af
fix: update docstrings for clarity in uploader classes and methods
a-klos Oct 8, 2025
c257c21
fix: enhance docstrings for clarity and improve logging practices acr…
a-klos Oct 8, 2025
47bdf3d
fix: improve error logging and enhance docstrings across multiple mod…
a-klos Oct 8, 2025
b3a9438
chore: merge base branch
a-klos Oct 8, 2025
0a518ac
Merge branch 'main' into refactor/prod-and-dev-Dockerfiles
NewDev16 Oct 31, 2025
9afc0b9
fix: remove duplicate detail in HTTPException for metadata parsing error
NewDev16 Oct 31, 2025
cf14c4f
chore: update project metadata and dependencies in pyproject.toml; ad…
a-klos Nov 25, 2025
df75192
fix: improve logging messages in PDFExtractor for table conversion er…
a-klos Nov 25, 2025
98c54d6
fix: correct indentation in chat_with_history method signature
a-klos Nov 25, 2025
2e6abca
chore: update dependencies and improve documentation
a-klos Nov 25, 2025
5fe07b7
chore: update fastapi dependency to version ^0.121.2
a-klos Nov 25, 2025
171bc8c
chore: add README.md files for local packages in Dockerfiles
a-klos Nov 25, 2025
9cb93e1
chore: fix poetry installation command in Dockerfile for testing
a-klos Nov 25, 2025
83f1810
chore: update dependencies in poetry.lock for consistency
a-klos Nov 25, 2025
76b0416
chore: refine logging messages in PDFExtractor for consistency
a-klos Nov 25, 2025
f59203a
chore: Merge branch 'refactor/prod-and-dev-Dockerfiles' into ci/refac…
a-klos Nov 25, 2025
969fbd0
chore: update poetry.lock files to refine package groups and versions
a-klos Nov 25, 2025
de2391c
chore: streamline Dockerfile environment variable settings for nonroo…
a-klos Nov 25, 2025
1218655
chore: update Dockerfiles and pyproject.toml for improved virtualenv …
a-klos Nov 25, 2025
8172b23
Merge branch 'refactor/prod-and-dev-Dockerfiles' into ci/refactor-ghas
a-klos Nov 25, 2025
74e2a53
chore: update starlette version to 0.50.0 and adjust python version r…
a-klos Nov 25, 2025
13abb2d
Merge branch 'refactor/prod-and-dev-Dockerfiles' into ci/refactor-ghas
a-klos Nov 25, 2025
582b858
chore: update Python version in Dockerfiles and align non-root user U…
a-klos Nov 25, 2025
26b4f63
chore: update README.md to improve formatting and add missing system …
a-klos Nov 25, 2025
778cca6
Merge branch 'refactor/prod-and-dev-Dockerfiles' into ci/refactor-ghas
a-klos Nov 25, 2025
70d5d88
chore: refactor workflows and scripts for improved version management…
a-klos Nov 25, 2025
439ea44
chore: enhance promote-clean-semver workflow with dry run option and …
a-klos Nov 25, 2025
d6dcc27
chore: add peer dependencies to package-lock.json for improved compat…
a-klos Nov 26, 2025
d26876a
chore: update Node.js version to 25 in prepare-release workflow
a-klos Nov 26, 2025
f2a5d7f
chore: update workflows to use PR_AUTOMATION_TOKEN for improved secur…
a-klos Nov 26, 2025
6c13c00
chore: add workflow_dispatch inputs for clean version promotion and d…
a-klos Nov 26, 2025
ceb9703
chore: refactor QA workflow and update deployment values handling
a-klos Nov 27, 2025
c802f98
chore: update frontend dependencies and configuration
a-klos Jan 15, 2026
32413a8
chore: update Dockerfiles to include README.md for dependencies and a…
a-klos Jan 15, 2026
e9790fe
Merge branch 'refactor/prod-and-dev-Dockerfiles' into ci/refactor-ghas
a-klos Jan 15, 2026
60fbaa2
chore: update torch and torchvision versions in poetry.lock and pypro…
a-klos Jan 15, 2026
eb1c751
chore: update package-lock.json to remove duplicate @sit-onyx/icons e…
a-klos Jan 15, 2026
c004e49
chore: add @tailwindcss/oxide-wasm32-wasi dependencies to package-loc…
a-klos Jan 15, 2026
b3ab93e
chore: update Dockerfile paths in publish-pre-and-qa workflow for con…
a-klos Jan 15, 2026
febb1ff
chore: update condition in publish-pre job to allow manual workflow d…
a-klos Jan 15, 2026
a22de60
chore: add support for manual version input in workflow_dispatch event
a-klos Jan 15, 2026
bdd6358
chore: remove unused @nrwl/eslint-plugin-nx dependency from frontend …
a-klos Jan 15, 2026
6862256
chore: normalize version input by removing leading "v" in create-rele…
a-klos Jan 16, 2026
a9016eb
chore: add minimal update step for refreshing lib lockfiles in promot…
a-klos Jan 16, 2026
a9dc015
chore: simplify lockfile refresh step by removing redundant flags
a-klos Jan 16, 2026
6df594a
chore: conditionally refresh lib and service lockfiles based on dry_r…
a-klos Jan 16, 2026
c4268c6
chore: update GHCR login token to use PR_AUTOMATION_TOKEN
a-klos Jan 16, 2026
5dff309
chore: add TestPyPI supplemental source for dry-run locking in promot…
a-klos Jan 16, 2026
22884c3
chore: update TestPyPI source configuration for dry-run locking and i…
a-klos Jan 16, 2026
ffd1bea
chore: refactor promote-clean-semver workflow to use lib_pyprojects f…
a-klos Jan 16, 2026
54ee8b9
chore: refactor add TestPyPI source logic into a separate script
a-klos Jan 16, 2026
08241eb
chore: update GHCR login command to use PR_AUTOMATION_TOKEN
a-klos Jan 16, 2026
a741f80
chore: add conditional check for deploy-pages job to trigger on workf…
a-klos Jan 16, 2026
8b01f6e
chore: refactor publish-chart-packages workflow and add allow_chart_b…
a-klos Jan 16, 2026
268c322
chore: add checkout step in gate job for publish-chart-packages workflow
a-klos Jan 16, 2026
50c2b92
chore: refactor allow_chart_bump script to improve PR number parsing …
a-klos Jan 16, 2026
2319110
chore: refactor TestPyPI source handling for internal libraries and r…
a-klos Jan 19, 2026
8d3cd6d
chore: refactor wait_for_index function to improve curl command outpu…
a-klos Jan 19, 2026
f488236
chore: enhance prepare-release workflow to support manual version ove…
a-klos Jan 19, 2026
2b366d2
chore: add TestPyPI source configuration to pyproject.toml for admin-…
a-klos Jan 19, 2026
2c70423
chore: update dependency versions and enhance YAML handling in workfl…
a-klos Jan 19, 2026
bee4fb4
chore: enhance workflows and scripts with improved error handling, ve…
a-klos Jan 21, 2026
5b551fc
chore: comment out unused service configurations and update deploymen…
a-klos Jan 21, 2026
51b81d6
chore: update workflow inputs to require pre-release version and remo…
a-klos Jan 21, 2026
7861156
chore: update clean version extraction logic in publish workflow
a-klos Jan 21, 2026
0c96d93
chore: enhance Git credential setup for deployment with domain extrac…
a-klos Jan 21, 2026
2c9fc05
chore: streamline Git credential setup by using printf for domain ext…
a-klos Jan 21, 2026
c20d152
chore: remove dry_run input and uncomment service configurations in p…
a-klos Jan 21, 2026
d1ec4d2
feat(settings): add authentication and SSL options to KeyValueSettings
a-klos Jan 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: build-images
run-name: build-images ${{ github.event.release.tag_name }}
on:
release:
types: [published]

permissions:
contents: read
packages: write

jobs:
prepare:
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.release_tag.outputs.tag }}
version: ${{ steps.release_tag.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Resolve release tag & version
id: release_tag
run: |
git fetch --tags --force
TAG="${{ github.event.release.tag_name }}"
if [ -z "$TAG" ]; then
echo "No Git tag found to check out" >&2
exit 1
fi
VER_NO_V="${TAG#v}"
echo "tag=$TAG" >> $GITHUB_OUTPUT
echo "version=$VER_NO_V" >> $GITHUB_OUTPUT

build-image:
needs: prepare
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: rag-backend
dockerfile: services/rag-backend/Dockerfile
- name: admin-backend
dockerfile: services/admin-backend/Dockerfile
- name: document-extractor
dockerfile: services/document-extractor/Dockerfile
- name: mcp-server
dockerfile: services/mcp-server/Dockerfile
- name: frontend
dockerfile: services/frontend/apps/chat-app/Dockerfile
- name: admin-frontend
dockerfile: services/frontend/apps/admin-app/Dockerfile
env:
REGISTRY: ghcr.io
IMAGE_NS: ${{ github.repository }}
VERSION: ${{ needs.prepare.outputs.version }}
TAG: ${{ needs.prepare.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout release tag
run: git checkout "$TAG"
- name: Normalize IMAGE_NS to lowercase
run: echo "IMAGE_NS=$(echo '${{ env.IMAGE_NS }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PR_AUTOMATION_TOKEN }}
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Build & push ${{ matrix.name }}
run: |
docker buildx build --push \
-t "$REGISTRY/$IMAGE_NS/${{ matrix.name }}:${VERSION}" \
-t "$REGISTRY/$IMAGE_NS/${{ matrix.name }}:latest" \
-f "${{ matrix.dockerfile }}" .
- name: Capture digest
run: |
sudo apt-get update && sudo apt-get install -y jq
ref="$REGISTRY/$IMAGE_NS/${{ matrix.name }}:${VERSION}"
digest=$(docker buildx imagetools inspect "$ref" --format '{{json .Manifest.Digest}}' | jq -r . || true)
jq -n --arg name "${{ matrix.name }}" --arg tag "$VERSION" --arg digest "$digest" '{($name): {tag: $tag, digest: $digest}}' > digest.json
- name: Upload digest artifact
uses: actions/upload-artifact@v4
with:
name: image-digest-${{ matrix.name }}
path: digest.json

collect-digests:
needs: [build-image]
runs-on: ubuntu-latest
steps:
- name: Download digest artifacts
uses: actions/download-artifact@v4
with:
pattern: image-digest-*
merge-multiple: false
- name: Merge digests
run: |
sudo apt-get update && sudo apt-get install -y jq
jq -s 'reduce .[] as $item ({}; . * $item)' image-digest-*/digest.json > image-digests.json
- name: Upload merged digests
uses: actions/upload-artifact@v4
with:
name: image-digests
path: image-digests.json
59 changes: 59 additions & 0 deletions .github/workflows/bump-chart-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: bump-chart-version
on:
workflow_dispatch:
inputs:
chart_version:
description: "Chart version to set (does not touch appVersion)"
required: true
type: string
ref:
description: "Git ref to bump (default: main)"
required: false
type: string

permissions:
contents: write
pull-requests: write

jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.ref || 'main' }}

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Install deps
run: |
python -m pip install --upgrade pip
python -m pip install "packaging==25.0" "ruamel.yaml==0.18.6"

- name: Bump chart version only
env:
CHART_VERSION: ${{ inputs.chart_version }}
run: |
if [ -z "${CHART_VERSION}" ]; then
echo "chart_version input is required" >&2
exit 1
fi
python tools/bump_chart_versions.py --mode chart-only --chart-version "$CHART_VERSION"

- name: Open PR for chart version bump
uses: peter-evans/create-pull-request@v6
with:
base: main
branch: chore/chart-bump-${{ inputs.chart_version }}
title: "chore(release): bump chart version to ${{ inputs.chart_version }}"
body: |
Bump Chart.yaml version to ${{ inputs.chart_version }} (appVersion unchanged).
commit-message: "chore(release): bump chart version to ${{ inputs.chart_version }}"
add-paths: |
infrastructure/**/Chart.yaml
token: ${{ secrets.PR_AUTOMATION_TOKEN }}
labels: chart-bump
68 changes: 68 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: create-release
on:
pull_request_target:
types: [closed]
branches: [main]

permissions:
contents: write

jobs:
release:
if: >-
${{
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'refresh-locks')
}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PR_AUTOMATION_TOKEN }}

- name: Derive version from PR title
id: ver
run: |
TITLE="${{ github.event.pull_request.title }}"
VERSION=$(echo "$TITLE" | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+(\.post[0-9]+)?).*/\1/p' || true)
if [ -z "$VERSION" ]; then
echo "Could not extract version from PR title: $TITLE" >&2
exit 1
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Verify appVersion matches release version (clean semver)
env:
RELEASE_VERSION: ${{ steps.ver.outputs.version }}
run: |
if echo "$RELEASE_VERSION" | grep -q '\.post'; then
echo "Release version must be clean semver (no .post): $RELEASE_VERSION" >&2
exit 1
fi
APP_VERSION=$(awk '/^appVersion:/ {print $2}' infrastructure/rag/Chart.yaml | tr -d "\"'")
if [ -z "$APP_VERSION" ]; then
echo "Could not read appVersion from infrastructure/rag/Chart.yaml" >&2
exit 1
fi
NORMALIZED_APP_VERSION="${APP_VERSION#v}"
NORMALIZED_APP_VERSION="${NORMALIZED_APP_VERSION#V}"
if [ "$NORMALIZED_APP_VERSION" != "$RELEASE_VERSION" ]; then
echo "Chart appVersion ($APP_VERSION) does not match release version ($RELEASE_VERSION)" >&2
exit 1
fi

- name: Create Git tag
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git tag -a "v${{ steps.ver.outputs.version }}" -m "Release v${{ steps.ver.outputs.version }}"
git push origin "v${{ steps.ver.outputs.version }}"

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.ver.outputs.version }}
name: v${{ steps.ver.outputs.version }}
generate_release_notes: true
token: ${{ secrets.PR_AUTOMATION_TOKEN }}
6 changes: 6 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ env:

jobs:
changes:
if: >-
${{
!contains(github.event.pull_request.labels.*.name, 'prepare-release') &&
!contains(github.event.pull_request.labels.*.name, 'refresh-locks') &&
!contains(github.event.pull_request.labels.*.name, 'chart-bump')
}}
name: Detect Changes
runs-on: ubuntu-latest
outputs:
Expand Down
116 changes: 116 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: prepare-release
on:
pull_request:
types: [closed]
branches:
- main
workflow_dispatch:
inputs:
version:
description: "Override release version (e.g., 3.5.0.postYYYYMMDDHHMMSS). If empty, semantic-release dry-run is used."
required: false
type: string

permissions:
contents: write
pull-requests: write

jobs:
changes:
if: >-
${{
github.event_name == 'workflow_dispatch' ||
(
github.event.pull_request.merged &&
!contains(github.event.pull_request.labels.*.name, 'prepare-release') &&
!contains(github.event.pull_request.labels.*.name, 'refresh-locks') &&
!contains(github.event.pull_request.labels.*.name, 'chart-bump')
)
}}
name: Detect release-relevant changes
runs-on: ubuntu-latest
outputs:
releasable: ${{ steps.manual.outputs.releasable || steps.filter.outputs.releasable }}
steps:
- name: Allow manual run
id: manual
if: ${{ github.event_name == 'workflow_dispatch' }}
run: echo "releasable=true" >> "$GITHUB_OUTPUT"

- uses: actions/checkout@v4
if: ${{ github.event_name == 'pull_request' }}
with:
fetch-depth: 0

- name: Filter paths
id: filter
if: ${{ github.event_name == 'pull_request' }}
uses: dorny/paths-filter@v2
with:
filters: |
releasable:
- 'services/**'
- 'libs/**'

prepare:
if: ${{ needs.changes.outputs.releasable == 'true' }}
runs-on: ubuntu-latest
needs: [changes]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '25'

- name: Install semantic-release deps
run: npm ci

- name: verify-dependencies-integrity
run: npm audit signatures

- name: Compute next version (dry-run)
id: semrel
env:
GITHUB_TOKEN: ${{ secrets.PR_AUTOMATION_TOKEN }}
run: |
if [ -n "${{ github.event.inputs.version }}" ]; then
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
exit 0
fi
npx semantic-release --dry-run --no-ci | tee semrel.log
BASE_VERSION=$(grep -Eo "next release version is [0-9]+\.[0-9]+\.[0-9]+" semrel.log | awk '{print $5}')
if [ -z "$BASE_VERSION" ]; then echo "No new release required"; exit 1; fi
VERSION="${BASE_VERSION}.post$(date +%Y%m%d%H%M%S)"
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Install bump script deps
run: |
python -m pip install --upgrade pip
python -m pip install "tomlkit==0.13.3" "pyyaml==6.0.2" "packaging==25.0"

- name: Bump internal libs only (no service pins)
run: |
python tools/bump_pyproject_deps.py --version "${{ steps.semrel.outputs.version }}" --bump-libs

- name: Commit and open PR
uses: peter-evans/create-pull-request@v6
with:
branch: chore/release-${{ steps.semrel.outputs.version }}
title: "chore(release): prepare ${{ steps.semrel.outputs.version }}"
body: |
Prepare release ${{ steps.semrel.outputs.version }}
- bump internal libs versions only
commit-message: "chore(release): prepare ${{ steps.semrel.outputs.version }}"
add-paths: |
libs/**/pyproject.toml
labels: prepare-release
token: ${{ secrets.PR_AUTOMATION_TOKEN }}
Loading