Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2bfe547
fix(startup): accept bounded CRLF Wine path conversions without expos…
mark-e-deyoung Nov 7, 2026
713f223
fix(startup): normalize only terminal CRLF on winepath stdout and pre…
mark-e-deyoung Nov 7, 2026
a09aaf3
fix(cli): resolve profile catalog from actual repository root
mark-e-deyoung Nov 7, 2026
d4417a0
ci(nightly): pin public Linux runner to qualified Ubuntu 24.04
mark-e-deyoung Nov 7, 2026
6a35746
test(startup): cover CRLF Wine path output on synthetic public fixture
mark-e-deyoung Nov 7, 2026
6fa7589
test(ci): cover correct top-level CLI root and nightly runner pin
mark-e-deyoung Nov 7, 2026
9cc321e
fix(ci): classify unhealthy WineBot startup without publishing raw se…
mark-e-deyoung Nov 7, 2026
a304db9
test(ci): guard sanitized startup log classification on unhealthy con…
mark-e-deyoung Nov 7, 2026
95c2b6f
fix(hygiene): restore tracked winebotctl symlink after checkout-path …
mark-e-deyoung Nov 7, 2026
b45c6f4
fix(cli): resolve symlinked WineBot CLI entrypoint before locating pr…
mark-e-deyoung Nov 7, 2026
e31789e
fix(nightly): reuse exact REL image, honor soak budget and retain job…
mark-e-deyoung Nov 7, 2026
ea53231
test(ci): repair generated nightly safety fixture source
mark-e-deyoung Nov 7, 2026
3ff5b06
test(nightly): qualify true REL BuildKit-to-Compose startup on public…
mark-e-deyoung Nov 7, 2026
811e5fb
security(soak): redact runtime identity from public resource progress…
mark-e-deyoung Nov 7, 2026
b397849
fix(ci): restore executable mode on registered unit-test runner
mark-e-deyoung Nov 7, 2026
9f0da15
fix(soak): retain executable mode for nightly trace resource monitor
mark-e-deyoung Nov 7, 2026
aaa5cfb
test(soak): sample real REL resource bounds and redact failed endpoin…
mark-e-deyoung Nov 7, 2026
e48bdd2
test(runtime): require actual Wine 11 major in scheduled and PR REL b…
mark-e-deyoung Nov 7, 2026
3fbf0a7
build(wine11): qualify source-pinned WineHQ stable base before promotion
mark-e-deyoung Nov 7, 2026
c60c344
test(ci): match source guard to local Wine 11 candidate build topology
mark-e-deyoung Nov 7, 2026
db5644f
diagnostic(wine11): classify Wine path conversion failures with enume…
mark-e-deyoung Nov 11, 2026
5629832
fix(wine11): prepare private regular trace file before Wine path conv…
mark-e-deyoung Nov 11, 2026
71022f6
fix(lint): remove unused import in private trace precreation helper
mark-e-deyoung Nov 11, 2026
f55378d
diagnostic(wine11): distinguish trace path failure from Wine environm…
mark-e-deyoung Nov 12, 2026
82e6ca7
diagnostic(wine11): classify prefix readiness and Windows command via…
mark-e-deyoung Nov 12, 2026
f9d015b
fix(wine11): reconcile newly cloned runtime prefix before mandatory t…
mark-e-deyoung Nov 12, 2026
602cea6
fix(wine11): initialize fresh runtime prefix instead of copying build…
mark-e-deyoung Nov 12, 2026
f3d082f
fix(wine11): initialize new runtime prefix instead of updating absent…
mark-e-deyoung Nov 13, 2026
56c2b4a
fix(wine11): initialize fresh base template prefix explicitly
mark-e-deyoung Nov 13, 2026
efd00a5
test(wine11): distinguish initial prefix creation from legacy update
mark-e-deyoung Nov 13, 2026
0dd390b
test(wine11): isolate fresh WineHQ boot and command viability in disp…
mark-e-deyoung Nov 13, 2026
fce3f66
test(wine11): retain bounded timeout exit category under fail-fast shell
mark-e-deyoung Nov 13, 2026
22c7bf1
ci(wine11): fail fast on source-isolated cold-prefix failure before s…
mark-e-deyoung Nov 13, 2026
da90471
test(ci): assert Wine 11 isolated diagnostic precedes full Compose st…
mark-e-deyoung Nov 13, 2026
67cf379
fix(wine11): make base-prefix prewarming fail closed and Xvfb readine…
mark-e-deyoung Nov 14, 2026
da06a11
test(wine11): assert strict bounded base-prefix verification instead …
mark-e-deyoung Nov 14, 2026
4216fa5
test(wine11): synthesize failed prewarm and assert Docker build canno…
mark-e-deyoung Nov 14, 2026
946ba1f
ci(wine11): trigger bounded base-prefix fail-closed regression on sou…
mark-e-deyoung Nov 14, 2026
f921ef4
ci(wine11): trigger bounded base-prefix fail-closed regression on sou…
mark-e-deyoung Nov 14, 2026
c007eb5
test(ci): execute Wine 11 synthetic base-prewarmer failure regression…
mark-e-deyoung Nov 14, 2026
296422c
style(ci): satisfy Ruff isort block spacing for synthetic prewarmer test
mark-e-deyoung Nov 14, 2026
3c7e23b
fix(wine11): suppress headless Mono/Gecko installers only during fres…
mark-e-deyoung Nov 14, 2026
0a8bb5d
test(wine11): compare valid arch and container capability settings wi…
mark-e-deyoung Nov 14, 2026
e63440e
test(ci): pin six-case Wine 11 offline DOE and target-mode fail-close…
mark-e-deyoung Nov 14, 2026
ade5398
merge(main): reconcile accepted redaction and portable health onto Wi…
mark-e-deyoung Nov 14, 2026
d4dc7cf
test(wine11): isolate cold-prefix failure axis with bounded offline c…
mark-e-deyoung Nov 15, 2026
7809588
fix(ci): reproduce Wine 11 root-to-user prefix ownership before quali…
mark-e-deyoung Nov 15, 2026
d2304d2
ci(wine11): qualify 55-minute sustained trace with redacted failure c…
mark-e-deyoung Nov 15, 2026
2e92231
test(wine11): qualify bounded post-soak openbox restart on public runner
mark-e-deyoung Nov 16, 2026
8c5ed80
test(wine11): reject missing window manager without leaking probe output
mark-e-deyoung Nov 16, 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
12 changes: 11 additions & 1 deletion .github/workflows/base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defaults:

jobs:
publish-base:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 90
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
Expand Down Expand Up @@ -72,6 +72,16 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

# This manual release workflow must never publish an older runtime
# under a Wine 11 base tag, even when an operator supplies custom tags.
- name: Require Wine 11 base identity before image publication
run: |
version="$(docker run --rm --entrypoint wine "winebot-base:${{ steps.meta.outputs.version }}" --version 2>/dev/null | tr -d '\r')"
case "$version" in
wine-11|wine-11.*) echo 'WINE_RUNTIME_DIAGNOSTIC major=11';;
*) echo 'WINE_RUNTIME_DIAGNOSTIC stage=major_mismatch'; exit 1;;
esac

- name: Scan base image (Trivy)
run: |
mkdir -p "${GITHUB_WORKSPACE}/.cache/trivy"
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci-unit-isolation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@ on:
- '.github/workflows/ci.yml'
- '.github/workflows/reusable-build-smoke-gate.yml'
- '.github/workflows/ci-unit-isolation.yml'
- '.github/workflows/nightly-soak.yml'
- '.github/workflows/nightly-rel-startup-qualification.yml'
- 'docker/entrypoint.sh'
- 'scripts/init/20-setup-wine.sh'
- 'scripts/init/30-start-services.sh'
- 'scripts/init/winepath-with-retry.sh'
- 'scripts/ci/wait-for-container-health.sh'
- 'scripts/bin/winebotctl'
- 'scripts/winebotctl'
- 'tests/test_winepath_startup_retry.py'
- 'scripts/ci/test.sh'
- 'scripts/ci/classify-startup-logs.py'
- 'tests/test_ci_unit_isolation.py'
- 'tests/test_wine11_base_prefix_prewarmer.py'
- 'docker/base.Dockerfile'

permissions:
contents: read
Expand All @@ -29,15 +37,16 @@ jobs:
shell: bash
run: |
set -euo pipefail
bash -n docker/entrypoint.sh scripts/init/30-start-services.sh scripts/ci/test.sh
bash -n docker/entrypoint.sh scripts/init/20-setup-wine.sh scripts/init/30-start-services.sh scripts/init/winepath-with-retry.sh scripts/ci/wait-for-container-health.sh scripts/ci/test.sh
python3 tests/test_ci_unit_isolation.py
python3 -m py_compile tests/test_wine11_base_prefix_prewarmer.py
python3 -m py_compile scripts/ci/classify-startup-logs.py
- name: Validate GitHub Actions workflow YAML
shell: bash
run: |
set -euo pipefail
python3 -m pip install --disable-pip-version-check PyYAML==6.0.3
python3 -c 'import yaml; from pathlib import Path; files = (".github/workflows/ci.yml", ".github/workflows/ci-unit-isolation.yml"); [yaml.safe_load(Path(p).read_text(encoding="utf-8")) for p in files]; print("PASS: workflow YAML parsed")'
python3 -c 'import yaml; from pathlib import Path; files = (".github/workflows/ci.yml", ".github/workflows/ci-unit-isolation.yml", ".github/workflows/nightly-soak.yml", ".github/workflows/nightly-rel-startup-qualification.yml"); [yaml.safe_load(Path(p).read_text(encoding="utf-8")) for p in files]; print("PASS: workflow YAML parsed")'

runtime-independent-unit-suite:
runs-on: ubuntu-24.04
Expand Down
162 changes: 162 additions & 0 deletions .github/workflows/nightly-rel-startup-qualification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
name: Nightly REL Startup Qualification

# Build a local Wine 11 base candidate and qualify its REL runtime without publishing images.
# Scheduled production nightly still uses the last promoted base until owner-gated promotion.
on:
pull_request:
paths:
- '.github/workflows/nightly-rel-startup-qualification.yml'
- '.github/workflows/nightly-soak.yml'
- 'docker/base.Dockerfile'
- 'docker/Dockerfile'
- 'scripts/init/winepath-with-retry.sh'
- 'scripts/init/20-setup-wine.sh'
- 'scripts/ci/probe-wine11-prefix.sh'
- 'scripts/ci/wine11-prefix-cell.sh'
- 'scripts/ci/classify-wine11-soak.py'
- 'scripts/ci/qualify-wine11-fault-recovery.sh'
- 'tests/test_wine11_fault_recovery.py'
- 'tests/test_wine11_soak_redaction.py'
- 'scripts/init/30-start-services.sh'
- 'scripts/ci/wait-for-container-health.sh'
- 'scripts/ci/classify-startup-logs.py'
- 'scripts/diagnostics/diagnose-trace-soak.sh'
- 'scripts/diagnostics/soak-resource-bounds.sh'
- 'tests/test_soak_diagnostics_custody.py'
- 'docker/entrypoint.sh'
- 'tests/test_ci_unit_isolation.py'
- 'tests/test_wine11_base_prefix_prewarmer.py'

permissions:
contents: read

env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'
BUILD_INTENT: 'rel'
WINEBOT_IMAGE_VERSION: 'local'
WINEBOT_RECORD: '1'
WINEBOT_INPUT_TRACE_WINDOWS: '1'

defaults:
run:
shell: bash -euo pipefail {0}

concurrency:
group: nightly-rel-startup-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
nightly-rel-startup:
runs-on: ubuntu-24.04
timeout-minutes: 90
steps:
- name: Checkout exact public PR source without retained credentials
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}

- name: Buildx on public runner
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd

- name: Free disposable public runner disk before candidate build
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/share/swift
df -h

- name: Build signed Wine 11 base candidate locally
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f
with:
context: .
file: docker/base.Dockerfile
target: final
load: true
push: false
tags: winebot-base:wine11-candidate
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build REL runtime from local Wine 11 candidate base
env:
WINEBOT_SOURCE_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
docker buildx build --builder default \
--file docker/Dockerfile --target intent-rel \
--build-arg BASE_IMAGE=winebot-base:wine11-candidate \
--build-arg BUILD_INTENT=rel \
--build-arg VCS_REF="$WINEBOT_SOURCE_HEAD_SHA" \
--build-arg BUILD_DATE="$GITHUB_RUN_ID" \
--build-arg SOURCE_REPO="https://github.com/$GITHUB_REPOSITORY" \
--load --tag winebot:local-rel .

- name: Verify exact local image before Compose
run: docker image inspect winebot:local-rel --format 'REL_IMAGE_DIAGNOSTIC image_present=true' >/dev/null

- name: Require verified Wine 11 runtime from exact REL image
run: |
version="$(docker run --rm --entrypoint wine winebot:local-rel --version 2>/dev/null | tr -d '\r')"
case "$version" in
wine-11|wine-11.*) echo 'WINE_RUNTIME_DIAGNOSTIC major=11';;
*) echo 'WINE_RUNTIME_DIAGNOSTIC stage=major_mismatch'; exit 1;;
esac

- name: Probe WineHQ 11 cold prefix in isolated non-root modes
run: bash scripts/ci/probe-wine11-prefix.sh

- name: Start exact nightly Compose service without rebuilding
run: |
if ! docker compose -f compose/docker-compose.yml --profile interactive up --no-build -d winebot-interactive >rel-startup-job-local.log 2>&1; then
echo 'REL_STARTUP_DIAGNOSTIC stage=compose_start_failed'
exit 1
fi

- name: Qualify scheduled container health gate
run: scripts/ci/wait-for-container-health.sh compose/docker-compose.yml interactive winebot-interactive 120 2

# Bounded live sampler exercises the real nightly resource monitor.
# Does not substitute for the separately gated full 55-minute soak.
- name: Sample live REL trace resource bounds for 90 seconds
run: |
docker compose -f compose/docker-compose.yml --profile interactive exec -T --user winebot \
-e DURATION_SECONDS=90 \
-e INTERVAL_SECONDS=15 \
-e MAX_LOG_MB=1024 \
-e MAX_SESSION_MB=8192 \
-e MAX_PID1_RSS_MB=2048 \
winebot-interactive /scripts/diagnostics/soak-resource-bounds.sh nightly

# Independent 55-minute stability gate; keep raw output job-local.
- name: Qualify Wine 11 sustained resource bounds for 55 minutes
run: |
if ! docker compose -f compose/docker-compose.yml --profile interactive exec -T --user winebot \
-e DURATION_SECONDS=3300 \
-e INTERVAL_SECONDS=30 \
-e MAX_LOG_MB=1024 \
-e MAX_SESSION_MB=8192 \
-e MAX_PID1_RSS_MB=2048 \
winebot-interactive /scripts/diagnostics/soak-resource-bounds.sh nightly \
>rel-long-soak-job-local.log 2>&1; then
python3 scripts/ci/classify-wine11-soak.py rel-long-soak-job-local.log
exit 1
fi
echo 'WINE11_SOAK_DIAGNOSTIC stage=passed'

- name: Verify container remains healthy after sustained soak
run: scripts/ci/wait-for-container-health.sh compose/docker-compose.yml interactive winebot-interactive 30 2

- name: Inject bounded openbox fault and verify supervisor recovery
run: bash scripts/ci/qualify-wine11-fault-recovery.sh

- name: Verify runtime health after window manager fault recovery
run: scripts/ci/wait-for-container-health.sh compose/docker-compose.yml interactive winebot-interactive 30 2

- name: Classify failure without printing raw service logs
if: ${{ failure() }}
run: |
docker compose -f compose/docker-compose.yml --profile interactive logs --no-color --tail 200 winebot-interactive 2>/dev/null |
python3 scripts/ci/classify-startup-logs.py

# No artifact publication: raw traces and image records remain job-local.
- name: Tear down REL qualification runtime
if: ${{ always() }}
run: docker compose -f compose/docker-compose.yml --profile interactive down --remove-orphans >/dev/null 2>&1 || true
29 changes: 21 additions & 8 deletions .github/workflows/nightly-soak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ permissions:
# Fail closed on unreviewed automatic Docker BuildKit history artifacts.
env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'
# Keep BuildKit and Compose on exactly the same prebuilt REL image.
WINEBOT_IMAGE_VERSION: 'local'
BUILD_INTENT: 'rel'
WINEBOT_RECORD: '1'

defaults:
run:
Expand All @@ -22,7 +26,7 @@ concurrency:

jobs:
soak-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 90
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
Expand All @@ -39,16 +43,24 @@ jobs:
BUILD_INTENT=rel
load: true
push: false
tags: winebot:rel
tags: winebot:local-rel
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Require verified Wine 11 runtime from exact REL image
run: |
version="$(docker run --rm --entrypoint wine winebot:local-rel --version 2>/dev/null | tr -d '\r')"
case "$version" in
wine-11|wine-11.*) echo 'WINE_RUNTIME_DIAGNOSTIC major=11';;
*) echo 'WINE_RUNTIME_DIAGNOSTIC stage=major_mismatch'; exit 1;;
esac

- name: Start services
env:
BUILD_INTENT: rel
WINEBOT_RECORD: 1
run: |
docker compose -f compose/docker-compose.yml --profile interactive up -d winebot-interactive
docker compose -f compose/docker-compose.yml --profile interactive up --no-build -d winebot-interactive

- name: Wait for service health
run: scripts/ci/wait-for-container-health.sh compose/docker-compose.yml interactive winebot-interactive 120 2
Expand All @@ -63,6 +75,10 @@ jobs:
run: |
# Run the soak diagnostic script inside the container
docker compose -f compose/docker-compose.yml exec -T --user winebot \
-e DURATION_SECONDS="$DURATION_SECONDS" \
-e INTERVAL_SECONDS="$INTERVAL_SECONDS" \
-e MAX_LOG_MB="$MAX_LOG_MB" \
-e MAX_SESSION_MB="$MAX_SESSION_MB" \
winebot-interactive /scripts/diagnostics/soak-resource-bounds.sh nightly

- name: Run fault injection diagnostics
Expand All @@ -88,11 +104,8 @@ jobs:
run: |
scripts/ci/generate-trust-pack.sh artifacts/trust-pack-nightly

- name: Upload trust pack
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: trust-pack-nightly
path: artifacts/trust-pack-nightly
# Security hold: trust-pack evidence stays job-local during nightly runs.
# Only the separately governed release publication gate may upload it.

- name: Collect diagnostics on failure
id: collect_failure_diagnostics
Expand Down
Loading
Loading