Merge main into the Golden Standard scaffold branch — keep only CODEOWNERS
CI (SIAX Cloud) / integration (push) Successful in 29s
CI (SIAX Cloud) / security (push) Successful in 23s
CI (SIAX Cloud) / quality (push) Successful in 53s
CI (SIAX Cloud) / integration (pull_request) Successful in 32s
CI (SIAX Cloud) / security (pull_request) Successful in 24s
CI (SIAX Cloud) / quality (pull_request) Successful in 53s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 21s
Security Scan (SIAX Cloud) / security (push) Successful in 21s
CI (SIAX Cloud) / integration (push) Successful in 29s
CI (SIAX Cloud) / security (push) Successful in 23s
CI (SIAX Cloud) / quality (push) Successful in 53s
CI (SIAX Cloud) / integration (pull_request) Successful in 32s
CI (SIAX Cloud) / security (pull_request) Successful in 24s
CI (SIAX Cloud) / quality (pull_request) Successful in 53s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 21s
Security Scan (SIAX Cloud) / security (push) Successful in 21s
PR #21 was batch-closed 2026-09-04 as "verified against main (added-files
present: all)". That check cannot have run: `.gitea/CODEOWNERS` and
`docs/compliance/SCAFFOLD-TODO.md` were absent from main, and the other two
files differed. Reopened; this merge resolves it against what main says today.
Resolution, file by file, measured against origin/main (08c88f39):
- .devcontainer/devcontainer.json — KEEP MAIN. Main's version is strictly
richer (corepack pin, siax-doctor postStart, forwardPorts, AUTH_ENFORCE).
The scaffold's three-line version would be a regression.
- compose.dev.yaml — KEEP MAIN. Main declares a real pgvector service with
an init mount, healthcheck and a documented P014 verification. The
scaffold's `services: {}` would delete a working local dev stack.
- docs/compliance/SCAFFOLD-TODO.md — DROPPED. Written 2026-08-11 and now
false on every substantive claim: it says siax.repo.json fails schema
validation (main's has repo/lifecycle/gitHost/consumedBy/children/
operationalState and object-form domains), that domains are strings (they
are objects), that consumedBy is missing (present), and that DOC-07 has no
proven restore (docs/runbook/backup-restore.md line 23 records an executed
drill dated 2026-09-03). Merging it would add stale false statements.
- .gitea/CODEOWNERS — KEPT. Genuinely absent from main, still wanted by
CI-14, and correct as written.
Net diff against main is one added file.
Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
COOLIFY_APP_ID: "TODO-no-coolify-app-provisioned-yet"
|
||||
COOLIFY_APP_ID: ${{ vars.COOLIFY_APP_ID || 'TODO-no-coolify-app-provisioned-yet' }}
|
||||
steps:
|
||||
- name: Guard against unset token / placeholder app id
|
||||
run: |
|
||||
|
||||
@@ -41,6 +41,114 @@ jobs:
|
||||
- name: Build (next build -- blocking quality gate)
|
||||
run: pnpm run build
|
||||
|
||||
# REAL-DEPENDENCY integration tests (Master-DoD §48: "integration tests ...
|
||||
# Mocks alone count as insufficient"; §10 Search/Analytics). Runs
|
||||
# tests/integration/* against a LIVE OpenSearch + LIVE ClickHouse started as
|
||||
# service containers.
|
||||
#
|
||||
# SERVICE-CONTAINER DISCIPLINE is copied from sax3l/st0re's ci.yml, which
|
||||
# documents three measured defects on these runners (alias collision across
|
||||
# repos, sibling-run collision behind one alias, and DNS round-robin):
|
||||
# * repo-unique aliases (opt-ci-opensearch / opt-ci-clickhouse),
|
||||
# * SELF-IDENTIFYING containers — OpenSearch carries a run-unique
|
||||
# cluster.name; ClickHouse carries run-unique credentials — so the
|
||||
# select step can positively identify THIS run's container,
|
||||
# * enumerate every IP behind the alias (getent ahostsv4), keep the one
|
||||
# that proves the run identity, freeze it into the URL env var,
|
||||
# * no match = hard failure, never a silent fallback or skip.
|
||||
integration:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
opt-ci-opensearch:
|
||||
image: opensearchproject/opensearch:2.11.1
|
||||
env:
|
||||
discovery.type: single-node
|
||||
DISABLE_SECURITY_PLUGIN: "true"
|
||||
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
|
||||
# Identity badge: only THIS run's container answers with this
|
||||
# cluster_name (the OpenSearch image maps dotted env keys to
|
||||
# settings).
|
||||
cluster.name: opt_ci_${{ github.run_id }}_${{ github.run_attempt }}
|
||||
# `--workdir` is REQUIRED (measured 2026-08-31, PR #25 CI run 7745,
|
||||
# job "integration"): this runner's act_runner (v0.6.1) merges the
|
||||
# JOB's WorkingDir (`/workspace/sax3l/0pt`) into every SERVICE
|
||||
# container's config, clobbering the image's own `WORKDIR
|
||||
# /usr/share/opensearch`. OpenSearch's ENTRYPOINT is the
|
||||
# WORKDIR-relative `./opensearch-docker-entrypoint.sh`, so with the
|
||||
# wrong cwd the container failed with "exec:
|
||||
# \"./opensearch-docker-entrypoint.sh\": stat ...: no such file or
|
||||
# directory" before it ever bound a port. ClickHouse's entrypoint is
|
||||
# an absolute path, so it was unaffected by the same defect — do not
|
||||
# assume a green ClickHouse service means service-container options
|
||||
# are fine in general.
|
||||
options: >-
|
||||
--workdir /usr/share/opensearch
|
||||
--health-cmd "curl -fsS http://localhost:9200/_cluster/health || exit 1"
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 60
|
||||
opt-ci-clickhouse:
|
||||
image: clickhouse/clickhouse-server:24.8
|
||||
env:
|
||||
CLICKHOUSE_USER: opt_ci
|
||||
# Identity badge: run-unique password — an authenticated SELECT only
|
||||
# succeeds against THIS run's container. CI-scoped throwaway value,
|
||||
# not a secret (exists only for the lifetime of the job).
|
||||
CLICKHOUSE_PASSWORD: ci_${{ github.run_id }}_${{ github.run_attempt }}
|
||||
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1"
|
||||
options: >-
|
||||
--health-cmd "wget -qO- http://localhost:8123/ping || exit 1"
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 60
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
- name: Enable corepack + pin pnpm@9
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare pnpm@9 --activate
|
||||
- name: Install (frozen lockfile)
|
||||
run: pnpm install --frozen-lockfile
|
||||
- name: Select THIS run's OpenSearch by identity (st0re ci.yml pattern)
|
||||
run: |
|
||||
set -eu
|
||||
WANT="opt_ci_${{ github.run_id }}_${{ github.run_attempt }}"
|
||||
FOUND=""
|
||||
for ip in $(getent ahostsv4 opt-ci-opensearch | awk '{print $1}' | sort -u); do
|
||||
NAME=$(curl -fsS --max-time 5 "http://$ip:9200/" | sed -n 's/.*"cluster_name" *: *"\([^"]*\)".*/\1/p' || true)
|
||||
echo "candidate $ip cluster_name=${NAME:-<none>}"
|
||||
if [ "$NAME" = "$WANT" ]; then FOUND="$ip"; fi
|
||||
done
|
||||
[ -n "$FOUND" ] || { echo "FATAL: no OpenSearch behind the alias identifies as $WANT"; exit 1; }
|
||||
echo "OPENSEARCH_URL=http://$FOUND:9200" >> "$GITHUB_ENV"
|
||||
- name: Select THIS run's ClickHouse by identity
|
||||
run: |
|
||||
set -eu
|
||||
PASS="ci_${{ github.run_id }}_${{ github.run_attempt }}"
|
||||
FOUND=""
|
||||
for ip in $(getent ahostsv4 opt-ci-clickhouse | awk '{print $1}' | sort -u); do
|
||||
OK=$(curl -fsS --max-time 5 -u "opt_ci:$PASS" "http://$ip:8123/?query=SELECT%201" || true)
|
||||
echo "candidate $ip auth_select=${OK:-<denied>}"
|
||||
if [ "$OK" = "1" ]; then FOUND="$ip"; fi
|
||||
done
|
||||
[ -n "$FOUND" ] || { echo "FATAL: no ClickHouse behind the alias accepts this run's credentials"; exit 1; }
|
||||
echo "CLICKHOUSE_URL=http://$FOUND:8123" >> "$GITHUB_ENV"
|
||||
echo "CLICKHOUSE_AUTH=opt_ci:$PASS" >> "$GITHUB_ENV"
|
||||
- name: Integration tests against LIVE OpenSearch + ClickHouse (blocking)
|
||||
run: |
|
||||
set -eu
|
||||
# Guard: env MUST be present here — the suites self-skip without it,
|
||||
# and a skipped suite must never masquerade as a green integration
|
||||
# gate (Master-DoD §56 status honesty).
|
||||
[ -n "${OPENSEARCH_URL:-}" ] && [ -n "${CLICKHOUSE_URL:-}" ]
|
||||
pnpm vitest run tests/integration 2>&1 | tee /tmp/itest.log
|
||||
if grep -qE "skipped" /tmp/itest.log && ! grep -qE "Tests [0-9]+ passed" /tmp/itest.log; then
|
||||
echo "FATAL: integration suites skipped instead of running"; exit 1
|
||||
fi
|
||||
|
||||
# Kept in ci.yml (advisory) so the protected-branch status check contexts
|
||||
# "CI (SIAX Cloud) / quality (push)" + "CI (SIAX Cloud) / security (push)"
|
||||
# are always reported on push. security.yml is the dedicated scanner on
|
||||
|
||||
Reference in New Issue
Block a user