feat(agent): update itself between tests, asked in Setup and on by default #19
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!19
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:feat/auto-update"
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: testers shouldn't have to press Update Beanstalk to stay current. The farm works best when every agent runs the newest version.
What changed
auto_update, inconfig.json. Setup asks "Update Beanstalk by itself", with a hint, beside the tray setting; it is in both the first setup and Settings. It is on by default, and aconfig.jsonfrom before the setting reads as on.AgentUpdate.AutoEvery) instead of every 6 hours.ShouldAutoUpdate, then the button's command), so the banner shows the download and each step. With no test running, it updates at once. With one running, the runner is held so no new test starts, and the update comes once the test ends.CheckDuedecides whether a check is due; the timer ticks every hour.agent/README.md(Updates) anddocs/using.md.Testing
test_agent_core.py: 1560 checks pass. New checks:auto_updatedefaults to on, including for an olderconfig.json, and off is kept on save;ShouldAutoUpdateonly when the setting is on and the offer is newer, never for a channel switch or a development build;dotnet build App).Risks
beanstalk-agent serve(no window) doesn't update itself.self-updatecovers it there, and it can be added later.