Compare commits
No commits in common. "4a5045f12631452ba0a7adff641154bfc07b93ac" and "598e1ef65b054809c00bccc05bda99d5b73e04ef" have entirely different histories.
4a5045f126
...
598e1ef65b
@ -3,21 +3,7 @@ import os
|
|||||||
|
|
||||||
DISPLAY = ":0"
|
DISPLAY = ":0"
|
||||||
XAUTHORITY = "/run/user/1000/gdm/Xauthority"
|
XAUTHORITY = "/run/user/1000/gdm/Xauthority"
|
||||||
# Steam has no autostart here, so after a reboot it's the first cron run that
|
ENV = {**os.environ, "DISPLAY": DISPLAY, "XAUTHORITY": XAUTHORITY}
|
||||||
# starts it, and every game Steam launches inherits that environment. cron
|
|
||||||
# sets neither of these. Real incident (2026-11-06): without XDG_RUNTIME_DIR,
|
|
||||||
# the Pulse socket never got mounted into the Proton container, so Persona 3
|
|
||||||
# Reload fell back to ALSA and crashed on launch in xaudio2_9 until Steam was
|
|
||||||
# restarted from the desktop.
|
|
||||||
XDG_RUNTIME_DIR = "/run/user/1000"
|
|
||||||
DBUS_SESSION_BUS_ADDRESS = f"unix:path={XDG_RUNTIME_DIR}/bus"
|
|
||||||
ENV = {
|
|
||||||
**os.environ,
|
|
||||||
"DISPLAY": DISPLAY,
|
|
||||||
"XAUTHORITY": XAUTHORITY,
|
|
||||||
"XDG_RUNTIME_DIR": XDG_RUNTIME_DIR,
|
|
||||||
"DBUS_SESSION_BUS_ADDRESS": DBUS_SESSION_BUS_ADDRESS,
|
|
||||||
}
|
|
||||||
|
|
||||||
WINDOW_NAME = "BlueArchive"
|
WINDOW_NAME = "BlueArchive"
|
||||||
|
|
||||||
|
|||||||
@ -553,17 +553,4 @@ def run(driver, config):
|
|||||||
if attempt < config.LOGIN_MAX_RELAUNCHES:
|
if attempt < config.LOGIN_MAX_RELAUNCHES:
|
||||||
_recover(driver, config)
|
_recover(driver, config)
|
||||||
|
|
||||||
# Raise rather than print-and-return (real incident, 2026-10-29): the
|
print(f"[login] warning: could not reach home after {config.LOGIN_MAX_RELAUNCHES} attempts -- manual check needed")
|
||||||
# game window still exists here, so _run_sequence's own window_exists()
|
|
||||||
# check never fired -- every later task then failed its own first
|
|
||||||
# click-verify step and aborted safely, the run exited 0, and
|
|
||||||
# ba_cron_run.sh logged and Discord-alerted "finished OK" for runs that
|
|
||||||
# did nothing at all (18 of them over 10/26-10/29). Raising makes the
|
|
||||||
# run exit non-zero, so cron logs FAILED and sends the error alert. The
|
|
||||||
# game is killed first: it's stuck somewhere short of home, and this
|
|
||||||
# abort skips the exit_game task that would otherwise have closed it.
|
|
||||||
driver.kill_game()
|
|
||||||
raise RuntimeError(
|
|
||||||
f"[login] could not reach home after {config.LOGIN_MAX_RELAUNCHES} attempts -- "
|
|
||||||
"aborting the rest of this run (check nik-gpu manually)"
|
|
||||||
)
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user