Skip to content

Claude/nifty archimedes#94

Merged
maximusunc merged 2 commits into
mainfrom
claude/nifty-archimedes-x8Ngu
Jun 4, 2026
Merged

Claude/nifty archimedes#94
maximusunc merged 2 commits into
mainfrom
claude/nifty-archimedes-x8Ngu

Conversation

@maximusunc
Copy link
Copy Markdown
Collaborator

No description provided.

claude added 2 commits June 4, 2026 20:10
The monitor worker runs as 'python -m workers.monitor.worker' because it
uses package-relative imports. 'python -m' only puts the current working
directory on sys.path, so deployments that launch the container with a
working directory other than /app failed with 'No module named workers'.

- Set PYTHONPATH=/app in the monitor Dockerfile so the workers package
  resolves regardless of the runtime working directory.
- Fix setuptools package discovery in pyproject.toml: 'where' pointed
  inside each first-party directory, so discovered names never matched the
  'include' filter and no first-party packages were installed by
  'pip install .'. Scan from the repo root and keep the top-level packages
  so shepherd_utils, workers.monitor, etc. are importable after install.
…umentation

shepherd_utils/otel.py imported JaegerExporter from the deprecated
opentelemetry-exporter-jaeger package but never used it -- tracing already
exports via OTLP. Loading that package's __init__ imports
OTEL_EXPORTER_JAEGER_AGENT_HOST from opentelemetry.sdk.environment_variables,
a constant removed in newer SDK releases.

In environments using the OpenTelemetry Operator's Python auto-instrumentation,
a newer opentelemetry-sdk is prepended to PYTHONPATH (via
/otel-auto-instrumentation-python), shadowing the pinned sdk==1.16.0. The
deprecated Jaeger exporter then fails to import that constant, crashing server
startup. Deployments without auto-instrumentation run only the pinned SDK where
the constant still exists, so they were unaffected.

Drop the unused import (and the commented-out Jaeger block) and remove the
opentelemetry-exporter-jaeger dependency, eliminating the conflict with no
change to tracing behavior.
@maximusunc maximusunc merged commit 3281955 into main Jun 4, 2026
2 checks passed
@maximusunc maximusunc deleted the claude/nifty-archimedes-x8Ngu branch June 4, 2026 20:29
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.38%. Comparing base (46d68af) to head (7a6d0fe).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Coverage Δ
shepherd_utils/otel.py 0.00% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0071a54...7a6d0fe. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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