Skip to content

Conversation

@Barraketh
Copy link
Contributor

@Barraketh Barraketh commented Dec 4, 2025

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 160 to 164
backend_url = os.environ.get("BACKEND_URL", DEV_STATS_SERVER_URI)
docker_image = os.environ.get("DOCKER_IMAGE", "metta-policy-evaluator-local:latest")
poll_interval = float(os.environ.get("POLL_INTERVAL", "5"))
worker_idle_timeout_minutes = float(os.environ.get("WORKER_IDLE_TIMEOUT", "60"))
task_timeout_minutes = float(os.environ.get("TASK_TIMEOUT_MINUTES", "60"))
machine_token = os.environ["MACHINE_TOKEN"]

Choose a reason for hiding this comment

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

P1 Badge Orchestrator ignores chart-configured timeout env var

main() now reads TASK_TIMEOUT_MINUTES (line 163), but the Helm deployment still injects WORKER_IDLE_TIMEOUT (see devops/charts/orchestrator/templates/deployment.yaml lines 22-31). In production the orchestrator will therefore always fall back to the hardcoded 60‑minute default and ignore the timeout value configured in values.yaml, defeating timeout tuning for running tasks.

Useful? React with 👍 / 👎.

Comment on lines 161 to +163
# Install dependencies in the versioned checkout
logger.info("Installing dependencies in versioned checkout...")
self._run_cmd_from_versioned_checkout(
["uv", "run", "metta", "configure", "--profile=softmax-docker"],
capture_output=True,
)
self._run_cmd_from_versioned_checkout(
["uv", "run", "metta", "install"],
)
self._run_setup_cmd(["uv", "run", "metta", "configure", "--profile=softmax-docker"])

Choose a reason for hiding this comment

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

P1 Badge Worker checkout skips dependency installation

_setup_versioned_checkout now only runs uv run metta configure after fetching the target ref and no longer calls metta install. That means each worker executes tasks with whatever packages are baked into the base image rather than the dependencies declared by the fetched commit, so any task whose requirements changed since the image build will now fail or run with mismatched libraries.

Useful? React with 👍 / 👎.

@datadog-official
Copy link

datadog-official bot commented Dec 4, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 526117e | Docs | Was this helpful? Give us feedback!

@nishu-builder
Copy link
Contributor

so simple now!

@Barraketh Barraketh enabled auto-merge December 4, 2025 01:28
Comment on lines +163 to +165
self._run_setup_cmd(["uv", "run", "metta", "configure", "--profile=softmax-docker"])

logger.info(f"Successfully set up versioned checkout at {self._versioned_path}")
logger.info(f"Successfully set up versioned checkout at {self._workdir}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing dependency installation step. The old code (lines 181-183) ran both metta configure AND metta install, but the new code only runs metta configure. This will cause tasks to fail because dependencies won't be installed.

self._run_setup_cmd(["uv", "run", "metta", "configure", "--profile=softmax-docker"])
self._run_setup_cmd(["uv", "run", "metta", "install"])  # Add this line
Suggested change
self._run_setup_cmd(["uv", "run", "metta", "configure", "--profile=softmax-docker"])
logger.info(f"Successfully set up versioned checkout at {self._versioned_path}")
logger.info(f"Successfully set up versioned checkout at {self._workdir}")
self._run_setup_cmd(["uv", "run", "metta", "configure", "--profile=softmax-docker"])
self._run_setup_cmd(["uv", "run", "metta", "install"])
logger.info(f"Successfully set up versioned checkout at {self._workdir}")

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@Barraketh Barraketh added this pull request to the merge queue Dec 4, 2025
Merged via the queue into main with commit 941708e Dec 4, 2025
19 checks passed
@Barraketh Barraketh deleted the pasha/one_task_per_worker branch December 4, 2025 01:47
zfogg pushed a commit that referenced this pull request Dec 20, 2025
Co-authored-by: Paul Tsier <paul@elementanalytics.com>
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