forge
Explore
Log in

Don't you dare go Hollow

Commits

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

2026-09-25

🐛 fix(ci): cancel the run when Clippy failsAhmet Kaan Gümüş · 57527df
🐛 fix(ci): cancel the run when Clippy fails

A red Clippy left Build-and-test running to its 90-minute ceiling even
though the deploy gates on both, so the outcome was already decided.
New clippy-guard job (needs: clippy, if: failure()) cancels the run via
the API the moment Clippy concludes red; parallelism is untouched since
the guard only ever runs on the failure path.

2026-09-17

🐛 fix(deploy): the operator-secret assertion named an unbound variableAhmet Kaan Gümüş · c2ac4f8
🐛 fix(deploy): the operator-secret assertion named an unbound variable

The post-up env assertion aborted the deploy script with 'container: unbound
variable' AFTER the new stack was already healthy, so every deploy reported
failure while the correct build stayed live. Bind the container name before
the inspect, and translate the block's comments (this repo is English-only).
Local-Gate: 6992a743739affc85cebb7777608ffc3eb73a386 (1469 passed, 542s)
🚀 ci: a local full-suite gate lets a verified push skip the runner suiteAhmet Kaan Gümüş · 125a9b4
🚀 ci: a local full-suite gate lets a verified push skip the runner suite

The suite is 565s on this machine and ~55min on a 4-core runner, so the
default path is unchanged (GitHub runs Clippy, the suite, the release build,
the pack and the deploy) and a second path runs the suite here instead:

- scripts/gate-local.sh: clippy + the whole nextest suite + the doc gate with
  CI's env, then a stamp in .git/local-gate/<tree>.ok and a
  `Local-Gate: <tree> (<n> passed, <t>s)` trailer. --scope is quick iteration
  and never produces the trailer; Postgres and cargo-nextest are checked first
  with the exact command that fixes each.
- .github/workflows/main.yml: a 'Decide test gate' step verifies that trailer
  against HEAD^{tree} and skips the test steps only when it matches, so a
  stale or copy-pasted trailer falls back to running the suite. The job-level
  if and the Deploy gate accept the skipped-dispatch variants, and the
  dispatch gains a `tests` input (auto/skip/force).
- .githooks/pre-push: refuses a forged or stale trailer; an ordinary untested
  push stays legitimate. SKIP_LOCAL_GATE=1 bypasses it loudly.
- AGENTS.md documents both paths.
Local-Gate: 76d42499f683a9315fd9daa3325dde5c859676c8 (1469 passed, 536s)
⏱️ ci: a stalled run now fails in ninety minutes and names its testAhmet Kaan Gümüş · a39278e
⏱️ ci: a stalled run now fails in ninety minutes and names its test

The Build-and-test job gets a 90-minute timeout-minutes (default 360 min,
since the run holds the serial deploy lock) and the Test step gets a
shell-level timeout --foreground 4200 - above the 41m18s/60m25s green Test
steps, below the job limit. Before Test: df/free/nproc/nextest
version/.config/nextest.toml + show-config test-groups; then, via if: always(),
the docker log, df/free, docker system df and the pg_stat_activity breakdown +
the 20 longest queries: if the stall is on the DB side, its name stays in the
log.
fix(deploy): a two-file --env-file dropped the operator file; single channel + envZekaDeploy · 4a2411d
fix(deploy): a two-file --env-file dropped the operator file; single channel + env

In podman-compose 1.6.0, `--env-file` is a SINGLE-valued argument and only the
LAST file is resolved (podman_compose.py:2941-2946, :2559). The unit's and the
deploy's two-file call (operator first, then stack.env) therefore never read
the operator file at all: the stack ran with the compose defaults
(DATABASE_URL password `hezarfen`, bridge token `change-me`) and the deploy's
"cannot be empty" gate only inspected the file, so nothing went red (hit in
production, 2026-09-17).

- unit: the operator file enters the unit's environment via `EnvironmentFile=`,
  and the single `--env-file` passed to compose is stack.env (ExecStart + ExecStop).
- deploy remote script: the operator file is read line by line into the process
  (no shell expansion), and the compose calls use a single `--env-file`.
- new gate: once the stack is up, the container's environment must carry the
  operator file's VALUES verbatim (AI_SHARED_TOKEN, POSTGRES_PASSWORD,
  AI_QUIC_ADDR, BUILDER_USERNAME); otherwise rollback.
- AI_SHARED_TOKEN and AI_QUIC_ADDR were added to the required-key list.

The environment variable overrides --env-file values (podman_compose.py:2562),
so the two channels cannot clash; Docker Compose v2's "the later file wins on a
clashing key" behaviour does not apply to this provider.

2026-09-14

🔧 chore: nextest never fail-fastAhmet Kaan Gümüş · 5ea87b2
🔧 chore: nextest never fail-fast

One load-luck assert must not skip the rest of the suite. Deploy still
requires the Test job green.
⚡ chore: parallel clippy/test runners, cancel stale CIAhmet Kaan Gümüş · b3168eb
⚡ chore: parallel clippy/test runners, cancel stale CI

Clippy and Build and test on separate runners. A new push cancels
in-flight CI on the same ref. Deploy stays serial.
🔧 chore: underscore names hezarfen_backend_*Ahmet Kaan Gümüş · 6fecf55
🔧 chore: underscore names hezarfen_backend_*

Containers, image, volumes, and the compose user unit follow the crate
name. Hyphenated leftovers (hezarfen.service, hezarfen-compose.service)
are disabled on deploy.
✨ feat: compose-stack deploy plus in-tree schema workAhmet Kaan Gümüş · 57fad2c
✨ feat: compose-stack deploy plus in-tree schema work

Production deploy is podman compose (postgres + backend + openobserve)
instead of a systemd binary. CI stays a throwaway postgres sidecar.
Operator credentials live in ~/hezarfen_backend/hezarfen_backend.env
(0600); the deploy never writes that file.

Also lands the working-tree schema/junction and .sqlx updates that were
already sitting next to this change.
🔧 chore: deploy home is hezarfen_backendAhmet Kaan Gümüş · 2d278c6
🔧 chore: deploy home is hezarfen_backend

VPS layout is ~/hezarfen_backend/ with hezarfen_backend.env.
The systemd unit name stays hezarfen.
🔧 chore: default HTTP bind port 7656Ahmet Kaan Gümüş · 81ac0fb
🔧 chore: default HTTP bind port 7656

Unset PORT now binds 7656 instead of 8080: parse_port, the
user unit, compose, Containerfile, CI health-gate fallback,
and README.

2026-09-13

🔧 chore: split deploy into build+deploy jobs; fix CI disk exhaustionAhmet Kaan Gümüş · ef463c1
🔧 chore: split deploy into build+deploy jobs; fix CI disk exhaustion

Run 34736185339 died linking the test binaries — `ld terminated with
signal 7`, the runner-disk-full SIGBUS: 41 debug-info binaries linking
the whole tonic/otlp/axum/sqlx stack do not fit the ~14GB the runner
has free. The build job now frees the preinstalled Android/.NET/ghc/
CodeQL blobs first (~20GB, with df evidence printed) and builds tests
without debug info (CARGO_PROFILE_TEST_DEBUG/DEV_DEBUG=0) or incremental
artifacts (CARGO_INCREMENTAL=0); the only cost is line-number
backtraces.

The workflow is also split into two jobs so failure recovery is cheap:
Deploy downloads the release artifact from the run (push) or from the
newest run with a green Build-and-test job (workflow_dispatch — the
manual redeploy door; "Re-run failed jobs" covers deploy-side failures
without rebuilding).
🗃️ feat: VPS deploy workflow + exe-relative migrations + CORS anywhere modeAhmet Kaan Gümüş · b2780eb
🗃️ feat: VPS deploy workflow + exe-relative migrations + CORS anywhere mode

- .github/workflows/main.yml: im-style deploy on push to main — pinned
  ubuntu-24.04 runner, Postgres sidecar (max_connections=500) for the
  per-test-database suite, clippy -D warnings + full nextest gate,
  --release build under SQLX_OFFLINE, SSH release-dir swap + systemd user
  unit restart, /health gated on THIS build's process (MainPID exe) with
  rollback, independent after-the-fact verify.
- deploy/hezarfen.service: the shipped user unit; secrets and deployment
  knobs live in ~/hezarfen/hezarfen.env on the server (never in-repo).
- migrations_path: fall back to migrations/ beside the executable when the
  compile-time CARGO_MANIFEST_DIR path is absent — a deployed binary was
  looking for its schema on the build machine and aborting boot.
- CORS_ALLOWED_ORIGINS=*: anywhere-mode, every origin mirrored WITH
  credentials ("allow CORS to anywhere for now"); SameSite=Lax stays the
  cross-site guard. Default mirror mode unchanged; test pins star mode.