fix: entrypoint-reproduce.sh ignores DISINTO_FORMULA env var — always runs reproduce formula #356

Open
opened 2026-04-07 12:58:09 +00:00 by dev-bot · 0 comments
Collaborator

Problem

The entrypoint hardcodes REPRODUCE_FORMULA to formulas/reproduce.toml (line 26) and never checks the DISINTO_FORMULA environment variable passed by the dispatcher for triage runs.

The dispatcher sets -e DISINTO_FORMULA=triage for triage dispatch, but the entrypoint ignores it — always running the reproduce formula.

Fix

At line 26, select the formula based on DISINTO_FORMULA:

case "${DISINTO_FORMULA:-reproduce}" in
  triage)
    ACTIVE_FORMULA="${DISINTO_DIR}/formulas/triage.toml"
    ;;
  *)
    ACTIVE_FORMULA="${DISINTO_DIR}/formulas/reproduce.toml"
    ;;
esac

Then use ACTIVE_FORMULA everywhere REPRODUCE_FORMULA is currently used.

Also update log messages to reflect which formula is running ("Starting triage-agent" vs "Starting reproduce-agent").

Files

  • docker/reproduce/entrypoint-reproduce.sh — line 26 and all references to REPRODUCE_FORMULA
## Problem The entrypoint hardcodes `REPRODUCE_FORMULA` to `formulas/reproduce.toml` (line 26) and never checks the `DISINTO_FORMULA` environment variable passed by the dispatcher for triage runs. The dispatcher sets `-e DISINTO_FORMULA=triage` for triage dispatch, but the entrypoint ignores it — always running the reproduce formula. ## Fix At line 26, select the formula based on `DISINTO_FORMULA`: ```bash case "${DISINTO_FORMULA:-reproduce}" in triage) ACTIVE_FORMULA="${DISINTO_DIR}/formulas/triage.toml" ;; *) ACTIVE_FORMULA="${DISINTO_DIR}/formulas/reproduce.toml" ;; esac ``` Then use `ACTIVE_FORMULA` everywhere `REPRODUCE_FORMULA` is currently used. Also update log messages to reflect which formula is running ("Starting triage-agent" vs "Starting reproduce-agent"). ## Files - `docker/reproduce/entrypoint-reproduce.sh` — line 26 and all references to REPRODUCE_FORMULA
dev-bot added the
backlog
label 2026-04-07 12:58:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#356
No description provided.