Skip to content

11 Simulation Strategy on GitHub Actions

Anurag Prasad edited this page Nov 29, 2026 · 1 revision

11. Simulation Strategy on GitHub Actions

What does a free, ephemeral CI runner let us simulate about a search ecosystem for agents — and what is out of reach?

11.1 Why GitHub Actions

GitHub Actions gives a reproducible, scriptable, versioned environment with no hosting cost: manual workflow_dispatch inputs, matrix strategies, service containers, artifacts, and repository write-back. It is a CI environment, not a production server — which is exactly what makes the constraints instructive. (Workflow syntax: docs.)

Pipeline Figure 11.1 · Workflow stages (project diagram).

11.2 Mapping ecosystem concepts to Actions primitives

Production concept Actions simulation
Operator console / API call workflow_dispatch with query inputs
Job queue / scheduler prepare job expanding a query × repeat matrix
Search microservice Service container: SearXNG, pinned version
Worker fleet Matrix jobs with bounded concurrency
Rate limiting / politeness Delay between pages; bounded backoff
Observability Job logs, container logs, page diagnostics, metadata
Object storage Workflow artifacts, batch archives
Config / data release Single repository write-back commit
Failure injection Planned fault-injection tests (429, 5xx, timeout, invalid JSON, CAPTCHA signal)

11.3 What the free runner can simulate well

  1. Client-side behaviour of an agent search tool: pagination, retries, status classification.
  2. Service lifecycle: install, start, health-check, tear down.
  3. Partial-failure semantics and artifact preservation.
  4. Fan-out/fan-in of many small collection tasks.
  5. Reproducibility: pinned SearXNG version string (2026.11.1-9ded3bec1), recorded inputs.

11.4 What it cannot simulate (and why)

Not simulated Reason
Web-scale crawl and index Ephemeral, limited disk/CPU, job time limits (runner docs)
Always-on, multi-region serving with SLOs Jobs are short-lived
Sustained high concurrency Small runners; shared egress IPs
Ranking models / ANN indexes at scale Needs GPUs/RAM and large corpora
Realistic adversarial traffic Runner IP ranges are widely known; behaviour differs from residential/browser traffic
Commercial agent products' internals Closed systems

Check current limits and policy in GitHub's documentation before scaling; they change.

11.5 Constraints that shape the experiments

  • Ephemerality: nothing persists unless written to artifacts or committed.
  • Egress identity: runners share cloud IP ranges, which upstream providers may treat differently than ordinary users. This is an observation to test, not a conclusion.
  • Time budget: the deep run's whole workflow took 74 s; collection ≈ 50 s.
  • Policy: respect providers' terms, robots, rate limits and stop signals (22).

11.6 Throughput model

With per-page delay $\delta$ and mean request time $\bar r$, pages/second $\approx 1/(\delta+\bar r)$. With the measured $\bar r=0.335$ s and the 3 s delay: $1/3.335\approx0.30$ pages/s; for 15 pages $\approx 50$ s — matching the measured approximate collection elapsed 50 s. A matrix with concurrency $c$ multiplies client throughput by up to $c$ but also multiplies pressure on the upstream — one reason concurrency is validated after single-stream reliability.

11.7 Simulation strategy in three tiers

flowchart LR
    T1["Tier 1 · Deterministic<br/>unit tests, mocked engines,<br/>fault injection"] --> T2["Tier 2 · Live-lite<br/>1 query, few pages,<br/>real upstream"]
    T2 --> T3["Tier 3 · Live-deep<br/>multi-query matrix,<br/>repeats, concurrency"]
Loading

Fail-safe order: prove behaviour with mocks, then touch real providers sparingly, then scale.


❓ Check your understanding

Q1. Which Actions feature represents a "worker fleet"?

A matrix of jobs with a concurrency limit.

Q2. Why is the lab strong on client behaviour but weak on ranking?

It consumes an upstream engine's results; it does not host a crawl, index or ranker.

Q3. Predict collection time for 15 pages with $\delta=3$ s, $\bar r=0.335$ s.

$15\times3.335\approx50$ s, consistent with the measured ≈ 50 s.

← Prev 10. Agentic Browsing · Next → 12. Experiments & Results

Clone this wiki locally