Command: python -c "from pathlib import Path;import hashlib,shutil,subprocess,time,py_compile;root=Path(r'C:\\Users\\ash\\Documents\\ShopeeApi');main=root/'app'/'main.py';db=root/'app'/'db.py';exp={main:'9fb33b2e7e6467df6341fbd7cdbdb8ecb76d60807a5960e69bd6c8c9e431deab',db:'1198bf2b9d3e138d8a610cff41381c735d4f52ff75a7625e67a160e4abd5ac53'};[(lambda p,e: (_ for _ in ()).throw(SystemExit(f'SHA_PRECONDITION_FAILED {p}')) if hashlib.sha256(p.read_bytes()).hexdigest()!=e else None)(p,e) for p,e in exp.items()];patch=Path('auto_ready_guarded.patch').resolve();check=subprocess.run(['git','-C',str(root),'apply','--check',str(patch)],capture_output=True,text=True);print('APPLY_CHECK_RC='+str(check.returncode));print(check.stdout+check.stderr);check.check_returncode();stamp=time.strftime('%Y%m%dT%H%M%S');[shutil.copy2(p,p.with_name(p.name+'.pre-auto-ready-'+stamp+'.bak')) for p in exp];apply=subprocess.run(['git','-C',str(root),'apply',str(patch)],capture_output=True,text=True);print('APPLY_RC='+str(apply.returncode));print(apply.stdout+apply.stderr);apply.check_returncode();py_compile.compile(str(main),doraise=True);py_compile.compile(str(db),doraise=True);print('SERVER_AUTO_READY_PATCH_OK');print('MAIN_SHA='+hashlib.sha256(main.read_bytes()).hexdigest());print('DB_SHA='+hashlib.sha256(db.read_bytes()).hexdigest())"
Directory: projects
Status: FAILED
Exit code: 1
Cancel Job Rerun Command Refresh
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ash\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 502, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
---
File "<string>", line 1, in <module>
File "C:\Users\ash\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 502, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['git', '-C', 'C:\\Users\\ash\\Documents\\ShopeeApi', 'apply', '--check', 'C:\\Users\\ash\\Documents\\Codex\\2026-08-26\\worked-for-1m-5s-inference-ya\\projects\\auto_ready_guarded.patch']' returned non-zero exit status 1.
APPLY_CHECK_RC=1
error: patch failed: app/main.py:78
---
File "C:\Users\ash\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 502, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['git', '-C', 'C:\\Users\\ash\\Documents\\ShopeeApi', 'apply', '--check', 'C:\\Users\\ash\\Documents\\Codex\\2026-08-26\\worked-for-1m-5s-inference-ya\\projects\\auto_ready_guarded.patch']' returned non-zero exit status 1.
APPLY_CHECK_RC=1
error: patch failed: app/main.py:78
error: app/main.py: patch does not apply
---
subprocess.CalledProcessError: Command '['git', '-C', 'C:\\Users\\ash\\Documents\\ShopeeApi', 'apply', '--check', 'C:\\Users\\ash\\Documents\\Codex\\2026-08-26\\worked-for-1m-5s-inference-ya\\projects\\auto_ready_guarded.patch']' returned non-zero exit status 1.
APPLY_CHECK_RC=1
error: patch failed: app/main.py:78
error: app/main.py: patch does not apply
error: patch failed: app/db.py:7727
error: app/db.py: patch does not apply
---
APPLY_CHECK_RC=1
error: patch failed: app/main.py:78
error: app/main.py: patch does not apply
error: patch failed: app/db.py:7727
error: app/db.py: patch does not apply
---
error: patch failed: app/main.py:78
error: app/main.py: patch does not apply
error: patch failed: app/db.py:7727
error: app/db.py: patch does not apply
---
error: app/main.py: patch does not apply
error: patch failed: app/db.py:7727
error: app/db.py: patch does not apply
---Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ash\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 502, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['git', '-C', 'C:\\Users\\ash\\Documents\\ShopeeApi', 'apply', '--check', 'C:\\Users\\ash\\Documents\\Codex\\2026-08-26\\worked-for-1m-5s-inference-ya\\projects\\auto_ready_guarded.patch']' returned non-zero exit status 1.
APPLY_CHECK_RC=1
error: patch failed: app/main.py:78
error: app/main.py: patch does not apply
error: patch failed: app/db.py:7727
error: app/db.py: patch does not apply