Skip to content

Increase Ollama TypeScript health wait timeout - #2297

Merged
afscrome merged 1 commit into
mainfrom
afscrome-ollama-test-flakiness
Oct 27, 2026
Merged

afscrome merged 1 commit into
mainfrom
afscrome-ollama-test-flakiness

Conversation

@afscrome

Copy link
Copy Markdown
Contributor

Summary

Increase the Ollama TypeScript AppHost test's resource health wait from 180 to 600 seconds. This is scoped to ollama and ollama2; the shared default and DbGate tests are unchanged.

In the failing CI job, the health wait expired while Docker was still pulling ollama/ollama:0.34.4. The concurrent C# test's image pull took approximately 4 minutes 13 seconds, after which Ollama started successfully. The extra time accommodates slow cold image pulls without weakening the health requirement.

Validation

  • dotnet build tests\CommunityToolkit.Aspire.Hosting.Ollama.Tests\CommunityToolkit.Aspire.Hosting.Ollama.Tests.csproj --verbosity quiet — passed with zero warnings and zero errors.
  • git diff --check — passed.
  • Docker-backed integration tests were not run locally.

Allow ten minutes for Ollama image pulls before resource readiness times out.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 24, 2026 21:31
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 2297

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 2297"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The narrowly scoped change uses the existing timeout mechanism without weakening health checks or affecting other tests.

No open issues 🎉

What changed in this PR

Increases the Ollama TypeScript AppHost test’s health-wait timeout to accommodate slow cold Docker image pulls.

Changes:

  • Sets a 600-second timeout for ollama and ollama2, up from the shared 180-second default.
  • Preserves health requirements and leaves the shared default and DbGate tests unchanged.
File Description
tests/​CommunityToolkit.Aspire.Hosting.Ollama.Tests/​TypeScriptAppHostTests.cs Adds the Ollama-specific 600-second timeout override.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Branch Rate Complexity Health
CommunityToolkit.Aspire.Hosting.Ollama 79% 67% 265 ➖
Summary 79% (657 / 829) 67% (164 / 246) 265 ➖

@afscrome
afscrome deployed to azure-artifacts October 24, 2026 21:40 — with GitHub Actions Active
@afscrome
afscrome enabled auto-merge (squash) October 24, 2026 21:44
@afscrome
afscrome merged commit f2f5698 into main Oct 27, 2026
20 checks passed
@afscrome
afscrome deleted the afscrome-ollama-test-flakiness branch October 27, 2026 05:07

This branch was successfully deployed

1 active deployment
azure-artifacts — c9e67b5c Deployed Oct 24, 2026 by afscrome via publish-azure-artifacts #4728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants