| workflow_payload |
name: Rehearse genuine R1 run attempts in private name: Rehearse genuine R1 run attempts in private network
"on":
workflow_dispatch:
inputs:
inspect_run:
description: Read only screened failure lines from an owned rehearsal; empty runs a fresh rehearsal
required: false
default: ''
jobs:
validate:
name: validate
runs-on: ubuntu-latest
if: github.repository == 'luoanwu/enterprise-platform'
steps:
- name: Verify fixed R1 binaries with synthetic data and adjacent attempts
run: |
set -eu
python3 <<'PY'
import ast,os,pathlib,re,subprocess,tempfile
sha=os.environ.get('GITHUB_SHA','')
if not re.fullmatch('[0-9a-f]{40}',sha):raise RuntimeError('FIXED_SOURCE_SHA_REQUIRED')
with tempfile.TemporaryDirectory(prefix='real-attempt-probe-',dir='/var/lib/eios-r1-maintenance') as td:
for name in ['rehearse-run-attempt.py','test-rehearse-run-attempt.py']:
p=subprocess.run(['git','-c','safe.directory=/home/git/repositories/luoanwu/enterprise-platform.git','-c','core.hooksPath=/dev/null','-C','/home/git/repositories/luoanwu/enterprise-platform.git','show',sha+':ci/'+name],capture_output=True,timeout=30)
if p.returncode:raise RuntimeError('FIXED_PROBE_SOURCE_UNAVAILABLE')
ast.parse(p.stdout);pathlib.Path(td,name).write_bytes(p.stdout)
subprocess.run(['python3','-B',str(pathlib.Path(td,'test-rehearse-run-attempt.py'))],check=True,timeout=30)
inspect=os.environ.get('INSPECT_REHEARSAL_RUN','')
args=['--inspect-failure',inspect] if inspect else []
subprocess.run(['python3','-B',str(pathlib.Path(td,'rehearse-run-attempt.py')),*args],check=True,timeout=700)
PY
shell: bash
env:
INSPECT_REHEARSAL_RUN: ${{ inputs.inspect_run }}
timeout-minutes: "15"
permissions:
contents: read
... |