Skip to content

Conversation

djeebus
Copy link
Contributor

@djeebus djeebus commented Oct 2, 2025

simple script to generate times for resuming and pausing sandboxes


Note

Adds a Go benchmark to start/pause/resume sandboxes (with optional OTel tracing) and declares the otlptracegrpc exporter as a direct dependency.

  • Tests/Benchmark:
    • Add packages/orchestrator/benchmark_test.go implementing a benchmark to start, pause, resume, and close sandboxes using sandbox.Factory and template.Cache.
    • Builds template on first run if missing, downloads kernel if absent, sets up network/NBD pools, proxy, and builder.
    • Supports test cycles (only-start, start-and-pause, start-pause-resume) and optional OTel tracing via OTEL_EXPORTER_OTLP_ENDPOINT.
  • Telemetry:
    • Initialize tracer provider using go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc when endpoint is set.
  • Dependencies:
    • Promote go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.38.0 to a direct dependency in go.mod.

Written by Cursor Bugbot for commit 1b23122. This will update automatically on new commits. Configure here.

@ValentaTomas ValentaTomas removed the request for review from tomassrnka October 2, 2025 01:00
@ValentaTomas ValentaTomas self-assigned this Oct 2, 2025
when we use it, the test becomes inconsistent and occasionally exits
without printing times
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@djeebus djeebus merged commit 7e78ac1 into main Oct 8, 2025
26 checks passed
@djeebus djeebus deleted the test-harness branch October 8, 2025 01:00
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.

2 participants