Описывайте намерение
Версионированные YAML-манифесты определяют состав системы. Точные входы сборки закрепляются отдельно.
diff --git a/STATUS.md b/STATUS.md index ae25ce0..3d2e43f 100644 --- a/STATUS.md +++ b/STATUS.md @@ -2,6 +2,16 @@ Updated 2026-11-07. Architectural acceptance is separate from implementation. +## English hacker-style portal + +The portal now uses a dark monospace layout, cyan/turquoise accents with Arch blue, +an illustrative composition map, three release cards and English copy throughout. +Pipeline stages, including KDE and publication/cleanup recovery, have English +labels. API endpoint names, schemas, state tokens and artifact identities are +preserved. `pipeline-status.py` exports an English public projection so the active +older coordinator can continue without a restart or historical evidence rewrite. +Deployment instructions: `deploy/RELEASE-CYCLE.md`. + ## KDE publication — D-091 The user confirmed KDE Desktop hardware readiness and authorized publication on diff --git a/deploy/Caddyfile b/deploy/Caddyfile index a1a6583..f1c09fb 100644 --- a/deploy/Caddyfile +++ b/deploy/Caddyfile @@ -14,7 +14,7 @@ } handle /archipelago/pipeline.json { root * /srv/artifacts - rewrite * /pipeline.json + rewrite * /pipeline-public.json header Cache-Control "no-cache" file_server } diff --git a/deploy/RELEASE-CYCLE.md b/deploy/RELEASE-CYCLE.md index c574669..23d0606 100644 --- a/deploy/RELEASE-CYCLE.md +++ b/deploy/RELEASE-CYCLE.md @@ -1,5 +1,27 @@ # Daily release cycle +## English public status and portal (2026-11-07) + +The portal uses an English-only dark terminal design. Public URLs and JSON field +names/state tokens remain unchanged. `/archipelago/pipeline.json` now serves +`data/public/pipeline-public.json`, an English projection of private `latest.json`. +`pipeline/pipeline-status.py` translates presentation fields, preserving identities, +timestamps, releases and original private run evidence. New drivers also emit +English private/text status. A running older driver can finish unchanged: a systemd +path unit exports its status transitions without rewriting its evidence or restarting it. + +Deploy `archipelago-pipeline-status.{path,service}` to `/etc/systemd/system/`, run +`systemctl daemon-reload`, enable/start the path unit and run the service once to +seed the public file **before** loading the updated Caddyfile. The path watcher is +not a release schedule; the release-cycle timer remains disabled under D-090. +The new driver's normal writer also invokes the exporter, so standalone driver +use does not rely solely on the watcher. Keep `pipeline.json` on disk for legacy +internal consumers; the HTTPS endpoint is the normalized projection. + +The page reads the existing `releases.json` catalog and polls `pipeline.json` every +30 seconds while visible, with one request at a time. Download links remain +same-origin `/archipelago/iso/` URLs and checksums come directly from the catalog. + ## D-088 restart The user cancelled run `20261106T152122Z` during Core build to include the new diff --git a/deploy/archipelago-pipeline-status.path b/deploy/archipelago-pipeline-status.path new file mode 100644 index 0000000..d13573c --- /dev/null +++ b/deploy/archipelago-pipeline-status.path @@ -0,0 +1,11 @@ +[Unit] +Description=Watch Archipelago release status for public export + +[Path] +PathChanged=/opt/archipelago/data/private/release-cycle/latest.json +Unit=archipelago-pipeline-status.service +TriggerLimitIntervalSec=60 +TriggerLimitBurst=200 + +[Install] +WantedBy=multi-user.target diff --git a/deploy/archipelago-pipeline-status.service b/deploy/archipelago-pipeline-status.service new file mode 100644 index 0000000..cffabf0 --- /dev/null +++ b/deploy/archipelago-pipeline-status.service @@ -0,0 +1,8 @@ +[Unit] +Description=Export English Archipelago public pipeline status +StartLimitIntervalSec=0 + +[Service] +Type=oneshot +ExecStart=/usr/bin/python3 /opt/archipelago/src/infrastructure/pipeline/pipeline-status.py +UMask=0022 diff --git a/pipeline/cycle-terminal.py b/pipeline/cycle-terminal.py index f914c50..7a86bf3 100644 --- a/pipeline/cycle-terminal.py +++ b/pipeline/cycle-terminal.py @@ -16,7 +16,7 @@ latest = parent / 'latest.json' if latest.exists(): state = json.loads(latest.read_text()) if state.get('invocation_id') == os.environ.get('INVOCATION_ID') and state['state'] not in ('complete', 'failed'): - state.update(failed_phase=state['state'], state='failed', stage_title='Ошибка', + state.update(failed_phase=state['state'], state='failed', stage_title='Release cycle failed', error='Coordinator terminated: ' + os.environ.get('SERVICE_RESULT', 'unknown'), updated=datetime.now(timezone.utc).isoformat()) cycle.write_status(base, state) diff --git a/pipeline/pipeline-status.py b/pipeline/pipeline-status.py new file mode 100644 index 0000000..c7ed5f6 --- /dev/null +++ b/pipeline/pipeline-status.py @@ -0,0 +1,70 @@ +#!/usr/bin/env python3 +"""Export English public pipeline status without changing run evidence or API keys.""" +import argparse +import fcntl +import json +from pathlib import Path +import re + +TITLES = { + 'starting': 'Starting release cycle', + 'preflight': 'Checking build environment', + 'freezing-and-compiling-source': 'Freezing sources and building CLI', + 'updating-flatpak-cache': 'Refreshing GNOME Flatpak cache', + 'updating-kde-flatpak-cache': 'Refreshing KDE Flatpak cache', + 'building-software-adapter': 'Building GNOME Software adapter', + 'building-discover-adapter': 'Building Discover adapter', + 'building-core': 'Building Core', + 'building-core-then-purpose': 'Building Core and Purpose', + 'building-gnome-purpose-and-iso': 'Building GNOME Purpose and ISO', + 'building-kde-purpose-and-iso': 'Building KDE Purpose and ISO', + 'core-installed-acceptance': 'Core installed-VM acceptance', + 'gnome-installed-acceptance': 'GNOME installed-VM acceptance', + 'kde-installed-acceptance': 'KDE installed-VM acceptance', + 'archiving-artifacts': 'Archiving artifacts on terra', + 'preparing-publication': 'Validating release evidence', + 'signing-and-publishing': 'Signing and publishing', + 'verifying-public-endpoints': 'Verifying public downloads', + 'cleaning-worker': 'Cleaning build workspace', + 'complete': 'Release cycle complete', + 'failed': 'Release cycle failed', +} + + +def english_status(state): + state = dict(state) + name = state['state'] + state['stage_title'] = TITLES.get(name, name.replace('-', ' ').capitalize()) + if name == 'failed' and state.get('published'): + state['stage_title'] = ('Images published; workspace cleanup failed' + if state.get('failed_phase') == 'cleaning-worker' + else 'Images published; post-publication step failed') + elif name == 'complete' and state.get('recovery'): + state['stage_title'] = 'Images published; cleanup recovered; cycle complete' + # Translate the old driver's structured error without altering raw evidence. + if state.get('error'): + state['error'] = re.sub(r'^Команда этапа завершилась с кодом (\d+)$', + r'Stage command exited with code \1', state['error']) + return state + + +def export(base): + public = base / 'data/public' + public.mkdir(parents=True, exist_ok=True) + with (public / '.pipeline-status.lock').open('a') as lock: + fcntl.flock(lock, fcntl.LOCK_EX) + latest = base / 'data/private/release-cycle/latest.json' + if not latest.exists(): + return + state = english_status(json.loads(latest.read_text())) + target = public / 'pipeline-public.json' + temp = target.with_suffix('.tmp') + temp.write_text(json.dumps(state, indent=2) + '\n') + temp.chmod(0o644) + temp.replace(target) + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--base', type=Path, default=Path('/opt/archipelago')) + export(parser.parse_args().base) diff --git a/pipeline/reconcile-cleanup.py b/pipeline/reconcile-cleanup.py index 28df651..6da6562 100644 --- a/pipeline/reconcile-cleanup.py +++ b/pipeline/reconcile-cleanup.py @@ -50,7 +50,7 @@ def main(): evidence='cleanup-recovery.json', original_state='state-before-recovery.json') for key in ('error', 'error_details', 'failed_phase'): state.pop(key, None) - state.update(state='complete', stage_title='Готово; очистка восстановлена', updated=now, finished=now) + state.update(state='complete', stage_title='Complete; cleanup recovered', updated=now, finished=now) cycle.write_status(args.base, state) print(json.dumps(state, ensure_ascii=False, indent=2)) diff --git a/pipeline/release-cycle.py b/pipeline/release-cycle.py index c113dcc..6c86553 100644 --- a/pipeline/release-cycle.py +++ b/pipeline/release-cycle.py @@ -23,6 +23,10 @@ cleanup_spec = importlib.util.spec_from_file_location('cleanup_cycle', Path(__fi cleanup_module = importlib.util.module_from_spec(cleanup_spec) cleanup_spec.loader.exec_module(cleanup_module) +status_spec = importlib.util.spec_from_file_location('pipeline_status', Path(__file__).with_name('pipeline-status.py')) +status_module = importlib.util.module_from_spec(status_spec) +status_spec.loader.exec_module(status_module) + def atomic(path, value): path.parent.mkdir(parents=True, exist_ok=True) @@ -32,22 +36,21 @@ def atomic(path, value): def write_status(base, state): + state.update(status_module.english_status(state)) parent = base / 'data/private/release-cycle' run = parent / state['run'] - if state['state'] == 'failed' and state.get('published'): - state['stage_title'] = ('Образы опубликованы; ошибка очистки' if state.get('failed_phase') == 'cleaning-worker' - else 'Образы опубликованы; ошибка после публикации') atomic(run / 'state.json', state) atomic(parent / 'latest.json', state) atomic(base / 'data/public/pipeline.json', state) - text = f"Прогон: {state['run']}\nСтенд: {state['worker']}\nЭтап: {state['stage_title']}\nОбновлено: {state['updated']}\nОпубликовано: {'да' if state['published'] else 'нет'}\n" + status_module.export(base) + text = f"Run: {state['run']}\nWorker: {state['worker']}\nStage: {state['stage_title']}\nUpdated: {state['updated']}\nPublished: {'yes' if state['published'] else 'no'}\n" if state.get('flatpak'): text += 'Flatpak: ' + state['flatpak']['state'] + '\n' if state.get('error'): - text += 'Причина: ' + state['error'] + '\n' + text += 'Error: ' + state['error'] + '\n' if state.get('recovery'): - text += 'Восстановление: очистка завершена; исходная ошибка сохранена в state-before-recovery.json\n' - text += f"Результаты и логи: {run}\n" + text += 'Recovery: cleanup completed; original failure preserved in state-before-recovery.json\n' + text += f"Results and logs: {run}\n" (parent / 'latest.txt.tmp').write_text(text) (parent / 'latest.txt.tmp').replace(parent / 'latest.txt') @@ -97,18 +100,7 @@ def main(): reason=os.environ.get('ARCHIPELAGO_RELEASE_REASON', 'Daily release cycle')) step = 0 worker_units = [] - titles = {'preflight': 'Проверка стенда', 'freezing-and-compiling-source': 'Подготовка исходников и CLI', - 'updating-flatpak-cache': 'Обновление кэша Flatpak', 'building-core': 'Сборка Core', - 'building-software-adapter': 'Сборка адаптера GNOME Software', - 'building-gnome-purpose-and-iso': 'Сборка GNOME', 'archiving-artifacts': 'Передача артефактов на terra', - 'core-installed-acceptance': 'Приёмка Core в VM', 'gnome-installed-acceptance': 'Приёмка GNOME в VM', - 'preparing-publication': 'Проверка результатов', 'signing-and-publishing': 'Подпись и публикация', - 'verifying-public-endpoints': 'Проверка сайта', 'cleaning-worker': 'Очистка временных файлов', - 'complete': 'Готово', 'failed': 'Ошибка'} - titles.update({'updating-kde-flatpak-cache': 'Обновление кэша Flatpak KDE', - 'building-discover-adapter': 'Сборка адаптера Discover', - 'building-kde-purpose-and-iso': 'Сборка KDE', - 'kde-installed-acceptance': 'Приёмка KDE в VM'}) + titles = status_module.TITLES def phase(name, **extra): state.update(state=name, stage_title=titles.get(name, name), updated=datetime.now(timezone.utc).isoformat(), **extra) write_status(base, state) @@ -427,7 +419,7 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra cleanup_module.cleanup(parent, None) except BaseException as error: detail = str(error) - concise = ('Команда этапа завершилась с кодом ' + str(error.returncode)) if isinstance(error, subprocess.CalledProcessError) else detail + concise = ('Stage command exited with code ' + str(error.returncode)) if isinstance(error, subprocess.CalledProcessError) else detail phase('failed', error=concise, error_details=detail, failed_phase=state['state']) # Stop this run's VM before archiving diagnostics; never select host VMs # by broad process/name patterns. Preserve artifact bytes and evidence, diff --git a/pipeline/release.sh b/pipeline/release.sh index ce6cd53..98eed3a 100644 --- a/pipeline/release.sh +++ b/pipeline/release.sh @@ -3,10 +3,10 @@ set -eu case "${1:-status}" in run) systemctl start --no-block archipelago-release-cycle.service - echo 'Запуск принят. Статус: archipelago-release status; журнал: archipelago-release logs' ;; + echo 'Run requested. Status: archipelago-release status; logs: archipelago-release logs' ;; status) cat /opt/archipelago/data/private/release-cycle/latest.txt systemctl list-timers archipelago-release-cycle.timer --no-pager ;; logs) journalctl -u archipelago-release-cycle.service -n 80 --no-pager ;; follow) journalctl -fu archipelago-release-cycle.service ;; - *) echo 'Использование: archipelago-release [run|status|logs|follow]' >&2; exit 2 ;; + *) echo 'Usage: archipelago-release [run|status|logs|follow]' >&2; exit 2 ;; esac diff --git a/portal/index.html b/portal/index.html index fb6cb71..fda3d7c 100644 --- a/portal/index.html +++ b/portal/index.html @@ -1,20 +1,58 @@ - +
- - - -ARCH LINUX · OSTREE · DECLARATIVE
Archipelago объединяет экосистему Arch Linux с декларативной композицией и управляемыми образами ОС. От минимального Core до рабочего стола — с явными обновлениями и возможностью отката.
Выбрать образ Изучить архитектуру ↗Версионированные YAML-манифесты определяют состав системы. Точные входы сборки закрепляются отдельно.
Новый deployment готовится отдельно. Текущая система продолжает работать до вашей явной перезагрузки.
Host Extensions предназначены для локальных пакетов и аппаратных адаптаций. Такие композиции находятся вне официальной поддержки.
ISO PORTAL
Актуальные ISO после установочных VM-проверок публикуются в stable по решениям D-087 и D-091. Полная воспроизводимость и все критерии допуска ещё не подтверждены; ограничения указаны в API релизов, где доступны до трёх сохранённых версий.
Исправления выпускаются оперативно. Плановые пересборки: 15-го и 30-го числа, 00:00 UTC / 03:00 МСК; включение расписания ожидает перехода на snapshots. Статус JSON. Загружаем состояние…
Проверяем каталог образов…
OPEN BY DESIGN
Контракты, решения и исходники доступны в организации Archipelago. Готовность отдельных компонентов подтверждается проверками, а не только наличием спецификации.
RFC и реестр контрактов ↗ARCH LINUX / OSTREE / DECLARATIVE
+The Arch ecosystem. A composed operating system. Start with a minimal Core or a complete desktop, then make the system yours.
+ + +archipelago ~/system
+# An OS built from explicit choices
+one complete OSTree deployment
+Architecture view, not a live system report.
+01 / DECLARE
Versioned manifests describe the system. Locked inputs identify exactly what goes into a composition.
02 / DEPLOY
A new deployment is prepared alongside the running system. Reboot when you choose. Keep a rollback path.
03 / EXTEND
Use managed layers or local Host Extensions. Package origin and effective changes remain visible in the system's support status.
/ RELEASE REGISTRY
Reading the release registry…
RELEASE SCOPE Stable images are published after installed-VM checks under D-087 and D-091. Full reproducibility and all admission gates are not yet verified. Exact limitations and up to three retained versions are recorded in the release API.
CADENCE Fixes ship promptly. Scheduled rebuilds are planned for the 15th and 30th at 00:00 UTC; scheduling awaits the repository snapshot rollout.
/ OPEN BY DESIGN
The architecture, contracts and implementation live in the open. Follow the RFCs from an accepted decision to evidence of working software.
Explore the RFC repository ↗