Skip to content

Agent tests reduce sleeps#804

Open
plars wants to merge 2 commits intocanonical:mainfrom
plars:agent-tests-reduce-sleeps
Open

Agent tests reduce sleeps#804
plars wants to merge 2 commits intocanonical:mainfrom
plars:agent-tests-reduce-sleeps

Conversation

@plars
Copy link
Contributor

@plars plars commented Sep 21, 2025

Description

Some of the unit tests unfortunately require running something with the agent that does a sleep, in order to test timeouts, etc. This is also impacted by the 10s output polling delay, because if you sleep for <10s then the thing the agent runs will exit before it gets a chance to timeout. This allows adjusting that output polling delay through a config option, which you may want to do anyway if you don't like that default.

And no, this isn't something you can just get around with things like freezegun. It's relying on a long running subprocess kicked off by the agent.

It also improves the time it takes to run the unit tests that require sleeps.

Resolved issues

No real issue, just trying to speed things up a bit

Documentation

Added docs to the agent reference section for the new output_polling_interval option, and adjusted the one for "polling_interval" to make it clear that it was about polling the server for new jobs. Hopefully this makes the difference pretty clear.

Web service API changes

N/A

Tests

This allowed adjusting the unit tests, so that was the point :)

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in a week.

@github-actions github-actions bot added the Stale label Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant