forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to .github/workflows/main.ymlClear filter

2026-09-23

ci: deploy on a green push to mainAhmet Kaan Gümüş · f1d5ed2
ci: deploy on a green push to main

A push whose Validate and Build jobs both succeed now deploys that
run's own release artifact. workflow_dispatch keeps the newest-green
redeploy (tests=force still deploys the artifact that run just built).
The capacity gate is unchanged and still read from compose x-rag-envelope.
Local-Gate: 206369ac9e4deb52af2d99733a2f1d70dfd4c15b (1410 passed, 32s)

2026-09-18

ci: 🐛 the image proof asserted a refusal through pipefailAhmet Kaan Gümüş · 4a533be
ci: 🐛 the image proof asserted a refusal through pipefail

The suite-skip path exposed a latent defect one step after the gate: "Prove
the default image is API-only and refuses `local` cleanly" ended with

    docker run --rm … "$img" python -m src.service.preflight 2>&1 \
      | grep -q 'provision_local_stack.sh'

under `set -euo pipefail`, and the refusal it asserts on exits 2 by design
(src/service/preflight.py: main() returns 2, enforce() raises SystemExit(2)).
pipefail therefore handed that 2 back as the STEP's own status: job
35303767476 died at exit 2 with the expected line sitting in the log, while
the two checks before it (torch absent, api path green) had passed.

Not introduced by the gate commit: the shape and the exit 2 both came from
1d40da1 (2026-09-17 20:52), which post-dates the last green run (15f1244,
16:48) — the Test-step hang had been masking it ever since.

The assertions are now explicit and separable: the output goes to $local_out,
the exit code to $local_rc; `local` must exit non-zero AND its message must
name the provisioning script; the api path must exit 0; torch must be absent
inside the image. Swept the workflow for the same shape — the only other
pipelines in steps that survive the suite skip are `docker save | gzip` and
`tar | ssh`, where a non-zero producer MUST fail the step (kept as-is,
deliberately), and no surviving step touches the runner's pip environment
(every `python` there runs inside `docker run "$img"`), so the skip cannot
leave a half-provisioned environment.

Proven locally without an engine: the pre-fix step bytes extracted from the
YAML reproduce the failure (exit 2) against a stubbed docker whose refusal
mirrors preflight's real text, and the post-fix bytes are green on the
intended path and non-zero on three mutated stubs (message without the script
name; local path exiting 0 anyway; torch present in the image).
Local-Gate: ebec10c92d0a3f8f23b464d0743940bc3680df9b (1387 passed, 31s)
ci: 🛡️ let a locally-proven push skip the runner suiteAhmet Kaan Gümüş · 4c9d9bb
ci: 🛡️ let a locally-proven push skip the runner suite

The unit suite HANGS on the runner: run 35297989416 sat at 7% for 73
minutes until it was cancelled by hand, and every push since 2026-09-17
17:54 burned the same way (35283445041 3h20m, 35255586903 88min,
35264547756 67min — all cancelled). The identical gate is 32 s here.

Port hezarfen_backend's proven escape hatch, default unchanged:

  DEFAULT   push without a trailer -> GitHub runs everything, suite
            included (now bounded instead of unbounded).
  SPECIAL   scripts/gate-local.sh proves the suite here, writes
            .git/local-gate/<tree>.ok and prints a `Local-Gate: <tree>
            (<n> passed, <t>s)` trailer (--amend appends it); the
            workflow's "Decide test gate" step honours it only on an
            exact HEAD^{tree} match, so CI just builds, packs, uploads.

- scripts/gate-local.sh: the command CI's gate runs, with two measured
  bounds — faulthandler names a hanging test (all-thread dump, exit 1)
  after 120 s, `timeout --foreground 600` bounds the step at ~15x the
  worst green 41 s Test step. Preconditions first (CI's dependency set
  in .venv, exact recipe printed when it is missing), a stamp only from
  a clean tree, --scope runs emit no trailer.
- .githooks/pre-push (opt in: git config core.hooksPath .githooks):
  refuses a stale trailer tree, a trailer with no stamp, a scoped
  stamp, and trailer counts that do not match the stamp; loud escapes
  SKIP_LOCAL_GATE=1 / GATE_ALLOW_SCOPED=1.
- workflow: "Decide test gate" + guards on the suite-only steps, a
  bounded Test step with the faulthandler dump, stall diagnostics, and
  a workflow_dispatch `tests: auto|skip|force` input — force builds and
  tests the dispatched ref, and the deploy job then takes this run's
  own artifact instead of hunting for the newest green one.

Two deliberate deltas from the backend reference, both because a scoped
run must not be able to destroy a full-suite proof: stamps are keyed by
tree AND scope (<tree>.<scope>.ok, its own log too), and the "already
verified, reuse it" fast path is keyed the same way — in the reference a
plain `--scope` run is answered by the full stamp (suite never runs) and
overwrites it (trailer silently refused afterwards).

The new comments are English while the surrounding prose is Turkish:
that is the language the change was built under, not an oversight.
Local-Gate: 08165e108e8b490c5b0498f65411fcdf98c39891 (1387 passed, 34s)

2026-09-17

feat(deploy): 🧱 küçük varsayılan imge + API sağlayıcı varsayılanı, yerel yığın volume'uAhmet Kaan Gümüş · 1d40da1
feat(deploy): 🧱 küçük varsayılan imge + API sağlayıcı varsayılanı, yerel yığın volume'u

- Dağıtım varsayılanı API: Containerfile ENV RAG_EMBED_PROVIDER=api /
  RAG_RERANK_PROVIDER=api; operatör şablonu deploy/hezarfen_rag.env.example.
  Yerel yol silinmedi — .env ile seçilir.
- Fail-closed açılış ön denetimi (src/service/preflight.py): eksik taban
  adresi/model/anahtar servisi ayağa kaldırmaz (SystemExit 2), eksiği adıyla
  ve çalıştırılacak komutla söyler; anahtar RAG_*_API_KEY ya da
  RAG_*_API_KEY_ENV ile verilebilir.
- Zarf tek kaynak: compose x-rag-envelope (mem_limit_mb 3072, disk_min_gb 8);
  ürün servisi mem_limit 3 GiB; CI kapasite kapısı bu değerleri compose'dan
  okur (eski 12 GB / 20 GB model çağından kalmaydı).
- Küçük imge: requirements üçe bölündü (servis / yerel yığın / eval); yerel
  yığın imaja girmez, eklenti volume'den gelir (deploy/provision_local_stack.sh,
  pip imge içinde, idempotent, PROVISIONED işareti). Geçiş: .env + restart.
- cuda_status torch'u yalnız kuruluysa import eder → API yolu torch'suz koşar.
- Korpus yolu kiracılık düzenine çekildi (okul segmenti zorunlu: compose/env
  varsayılanları açık hata veriyordu).
- Testler: tests/unit/test_providers_deploy.py (25 test) + test_deployment
  mount beklentisi; kapı 1323 geçti / 34 atlandı.
feat(llm): 🧹 sağlayıcı adı temiz kesimi, --env-file düzeltmesi ve kapasite hükmüAhmet Kaan Gümüş · 5d06e87
feat(llm): 🧹 sağlayıcı adı temiz kesimi, --env-file düzeltmesi ve kapasite hükmü

- src/providers/deepseek.py -> src/providers/llm.py; DeepSeek -> LLMClient;
  `deepseek=` kwarg -> `llm=`; bütün çağıranlar güncellendi (kalan tek opsiyonel
  modül adı README/tarih notlarında).
- DEEPSEEK_API_KEY / NVIDIA_API_KEY KALDIRILDI: biri ortamda varsa yapılandırma
  REDDEDER (LLMConfigError; suçlu adı + yerine geçen LLM_API_KEY'i söyler).
  vlm.py de artık LLM_API_KEY okur. Tek adlar: LLM_BASE_URL/LLM_MODEL/LLM_API_KEY.
- deploy unit: operatör dosyası `EnvironmentFile=` ile unit ortamına, compose'a
  TEK `--env-file stack.env`. Yanlış "sonraki dosya kazanır" yorumu podman-compose
  gerçeğiyle değiştirildi (podman_compose.py:2941-2946, :2559, :2562); RAG'daki
  semptom sessiz yanlış-korustu (BOOK_PATH interpolasyonu varsayılana düşüyordu).
- CI: operatör env satır satır ortama alınır (kabuk genişletmesi yok); rollback ve
  ilk-deploy `down` tek dosyaya indi; Kapı 3 konteyner env'inde LLM_API_KEY dolu ve
  BOOK_PATH operatörünkiyle aynı mı diye bakar. Düzeltilmiş/bozuk yol gerçek bir
  konteynerle iki yönlü kanıtlandı (bozuk yol Kapı 3'ü düşürüyor).
- docs: API-CONTRACT §0.3 + BACKEND-INTEGRATION §4.1 okul kapsamı sözleşmesi;
  PROJECT_STATE hab/1 -> hab/2, servis/dağıtıcı gerçeği, §11 kapasite hükmü
  (API gömme + API rerank ile 7,6 GiB'e sığar) + türev-store veri sahipliği kuralı.
- Testler: 1278 passed / 34 skipped.
docs(ci): adı geçen test koşucusunu gerçek olanla hizala (pytest tests/unit)Ahmet Kaan Gümüş · 68633fd
docs(ci): adı geçen test koşucusunu gerçek olanla hizala (pytest tests/unit)

README'nin CI deploy bölümü ve workflow başlık yorumu süiti 'unittest'
diye anıyordu; validate işi 'katalog/uygulama doğrulaması' vaat ediyordu.
Workflow ise python -m pytest tests/unit -q koşar, katalog doğrulaması
tests/unit/test_corpus_catalog.py içindedir ve validate yalnız derler.
Prose workflow'un gerçekte koştuğunu anlatsın.

2026-09-15

chore: 🔧 compose stack, systemd unit and VPS deploy workflow - compose.yaml: env-file driven service (hezarfen_rag.env, operator-owned, from the repo's .env.example); the only environment: block left carries the host-specific corpus choice (BOOK_PATH/SINIF/DERS) as interpolations, so no secret or operator value can be shadowed - Containerfile: ENV block is the single source of the image defaults (HF_HOME/HOST/PORT); CMD now drives the uvicorn factory from $HOST/$PORT instead of hardcoding 0.0.0.0:8000 (a PORT in the env file was ignored) - gpu profile: YAML anchor instead of extends — podman-compose 1.6 crashed with KeyError: _deps whenever the base service was excluded by a profile (podman compose --profile gpu config died outright) - deploy/hezarfen_rag_compose.service: systemd user unit running podman compose --profile product with both --env-file arguments - CI: validate (compileall) ∥ build-and-test (pytest tests/unit, 1240 green in the image) then an SSH deploy gated on /health and /ready, with a capacity preflight (>= 12 GB free RAM, >= 20 GB disk) and rollback to previous_tag; deploy opens only on workflow_dispatch because the service needs ~4.5 GB of models and a GPU to meet the O-05 latency gate - tests/unit/test_deployment.py: two pins follow the new mechanism (operator env file instead of compose environment:; skip when the corpus is absent from the checkout) with the original intent keptAhmet Kaan Gümüş · 723c33f
chore: 🔧 compose stack, systemd unit and VPS deploy workflow
- compose.yaml: env-file driven service (hezarfen_rag.env, operator-owned, from
  the repo's .env.example); the only environment: block left carries the
  host-specific corpus choice (BOOK_PATH/SINIF/DERS) as interpolations, so no
  secret or operator value can be shadowed
- Containerfile: ENV block is the single source of the image defaults
  (HF_HOME/HOST/PORT); CMD now drives the uvicorn factory from $HOST/$PORT
  instead of hardcoding 0.0.0.0:8000 (a PORT in the env file was ignored)
- gpu profile: YAML anchor instead of extends — podman-compose 1.6 crashed with
  KeyError: _deps whenever the base service was excluded by a profile
  (podman compose --profile gpu config died outright)
- deploy/hezarfen_rag_compose.service: systemd user unit running
  podman compose --profile product with both --env-file arguments
- CI: validate (compileall) ∥ build-and-test (pytest tests/unit, 1240 green in
  the image) then an SSH deploy gated on /health and /ready, with a capacity
  preflight (>= 12 GB free RAM, >= 20 GB disk) and rollback to previous_tag;
  deploy opens only on workflow_dispatch because the service needs ~4.5 GB of
  models and a GPU to meet the O-05 latency gate
- tests/unit/test_deployment.py: two pins follow the new mechanism (operator
  env file instead of compose environment:; skip when the corpus is absent
  from the checkout) with the original intent kept