Skip to content

fix(ci): use llama3.2:1b in CI, increase Ollama timeout, add --model arg#502

Merged
JerrettDavis merged 2 commits intomainfrom
fix/ci-workflow-llama-model
Apr 27, 2026
Merged

fix(ci): use llama3.2:1b in CI, increase Ollama timeout, add --model arg#502
JerrettDavis merged 2 commits intomainfrom
fix/ci-workflow-llama-model

Conversation

@JerrettDavis
Copy link
Copy Markdown
Owner

Root Cause

Step 8 'Synthesize training examples' was failing with TaskCanceledException in GitHub Actions CI due to:

  • Wrong model selection: qwen3.5:9b (6.6GB) too large/slow for CPU
  • HttpClient timeout too short (300s) for slow CPU inference

Changes

  • train-model.yml: Switch CI model from qwen3.5:9b → llama3.2:1b (1.3GB, much faster); reduce default examples 150→50; pass --model arg to synthesize and validate steps
  • OllamaClient.cs: Increase HttpClient.Timeout from 5min → 10min to handle slow inference
  • Program.cs: Add --model CLI arg (default qwen3.5:9b) forwarded to AiTrainingDataSynthesizer for runtime override

Fixes

Resolves workflow run #24970871185 TaskCanceledException

…model arg

- OllamaClient.cs: increase HttpClient.Timeout 5 min -> 10 min to handle
  slow CPU inference on GitHub Actions without a hard crash
- Program.cs: add --model CLI arg (default qwen3.5:9b) forwarded to
  AiTrainingDataSynthesizer so CI can override model at runtime
- train-model.yml: switch CI model qwen3.5:9b->llama3.2:1b (1.3GB vs 6.6GB,
  much faster on CPU); reduce default examples 150->50; pass --model in
  synthesize and validate steps

Fixes Step 8 'Synthesize training examples' TaskCanceledException
(HttpClient.Timeout 300s) that caused run 24970871185 to fail.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

  Generated 50 examples via llama3.2:1b
  Triggered by: push
  Workflow run: 24971706148
@JerrettDavis JerrettDavis merged commit d5ac2be into main Apr 27, 2026
@JerrettDavis JerrettDavis deleted the fix/ci-workflow-llama-model branch April 27, 2026 01:09
@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage

Summary
  Generated on: 04/27/2026 - 01:11:04
  Coverage date: 04/27/2026 - 01:09:03 - 04/27/2026 - 01:10:56
  Parser: MultiReport (7x Cobertura)
  Assemblies: 23
  Classes: 1067
  Files: 591
  Line coverage: 74.6%
  Covered lines: 36802
  Uncovered lines: 12510
  Coverable lines: 49312
  Total lines: 97270
  Branch coverage: 63.4% (14287 of 22512)
  Covered branches: 14287
  Total branches: 22512
  Method coverage: 86.3% (6308 of 7308)
  Full method coverage: 74% (5415 of 7308)
  Covered methods: 6308
  Fully covered methods: 5415
  Total methods: 7308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant