fix(agent): Linux setup without system packages, the farm's clock for tickets, a job's own errors reported #56
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!56
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/linux-setup-clock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
In the last three days only 3 of 22 reports were real results. The others stopped in the tester's setup, before any game ran. These are the four causes in the queue now:
python3had no pip ("No module named pip").lz4andzstandardfrom source and failed, because there's no compiler..nup) didn't build.nx2/zbic.pycompiles with the fetched clang but without the sysroot or lld, so it needs the system's C headers and linker, which SteamOS doesn't have.What changed
LinuxPython): when the system'spython3lacks Longshot's modules, the agent fetches the CPython (python-build-standalone) that main'sscripts/linux/deps.shpins for the AppImage (PY_TAG,PY_VER,PY_SHA256).<work>/pythonin place of the old venv, and installsrequirements.txtwith--only-binary :all:.<work>/.cache/python.Workspace.ZbicLinuxCommand): the same compile aszbic.py, plus--sysroot=<fetched sysroot> -fuse-ld=lld, asnx2/build.pylinks the game. Off Linux, or without the fetched emsdk and sysroot,zbic.py's own build is used as before.Workspace.ErrorLines): a failed compile or pip install now quotes itserrorlines instead of the end of the traceback, which only showed the command.CoordinatorClient.ClockOffset): the offset comes from the Date header of the coordinator's answers, counted only when it's over 2 minutes. Tickets are checked against the coordinator's time, and the agent logs that the PC's clock is off.agent.logwith its stack trace. Before, it went unreported and the lease simply ran out. The heartbeat loop now treats any error the way it treats a coordinator error, instead of ending, and it never sends a non-finite progress.Testing
setupsection (21 checks) covers:bin/python3link;dotnet build agent/App -c Release: 0 warnings.deps.sh) and installed main'srequirements.txtwith--only-binary :all:. All of lz4, numpy, capstone, unicorn and zstandard come as wheels and import.agent.logwill show the error.