Skip to content

Start a KAgent fix task when the main build fails - #1578

Closed
kaggle-agent wants to merge 1 commit into
mainfrom
agent/chavezcalderon-20261203213637-748412dd
Closed

kaggle-agent wants to merge 1 commit into
mainfrom
agent/chavezcalderon-20261203213637-748412dd

Conversation

@kaggle-agent

Copy link
Copy Markdown
Collaborator

Small intermittent failures in the Python image build keep getting
fixed by hand. When a build on main fails, post { failure } now asks a
KAgent coding agent to fix it and open a PR for dockerops to review. The
agent gets the build URL, commit, failed step and the step's log tail,
since it can't reach ci.kaggle.net. It is told to change nothing when
the failure is infrastructure (registry, disk, network, lost agent).

To capture logs inside the Groovy sandbox, shell steps now run through
trackedSh, which tees their output and stashes the tail on failure.
Previous builds' variables record the tasks already created, so a step
gets no new task while one for it is still open or was created in the
last 24h, and there are at most two tasks a day. The hook is
best-effort, never changes the build result, and keeps the existing
Mattermost notification. Other branches run it as a dry run.

Blocker: agents.dev.kaggle.net is behind IAP, and the Jenkins agents'
service account isn't on its access list yet. Until it is added to
configs/cicd/networking/iap.tf in kaggleazure, the hook logs the
identity it used and skips. Not tested on real Jenkins yet.


Task: chavezcalderon-20261203213637-748412dd
Trajectory: view agent transcript
Context: https://chat.google.com/room/-4f8vKAAAAE/WLpGRVfDfcY

Small intermittent failures in the Python image build keep getting
fixed by hand. When a build on main fails, post { failure } now asks a
KAgent coding agent to fix it and open a PR for dockerops to review. The
agent gets the build URL, commit, failed step and the step's log tail,
since it can't reach ci.kaggle.net. It is told to change nothing when
the failure is infrastructure (registry, disk, network, lost agent).

To capture logs inside the Groovy sandbox, shell steps now run through
trackedSh, which tees their output and stashes the tail on failure.
Previous builds' variables record the tasks already created, so a step
gets no new task while one for it is still open or was created in the
last 24h, and there are at most two tasks a day. The hook is
best-effort, never changes the build result, and keeps the existing
Mattermost notification. Other branches run it as a dry run.

Blocker: agents.dev.kaggle.net is behind IAP, and the Jenkins agents'
service account isn't on its access list yet. Until it is added to
configs/cicd/networking/iap.tf in kaggleazure, the hook logs the
identity it used and skips. Not tested on real Jenkins yet.
@kaggle-agent
kaggle-agent force-pushed the agent/chavezcalderon-20261203213637-748412dd branch from e181c1b to 5def8e0 Compare December 3, 2026 22:53
@calderjo calderjo closed this Dec 3, 2026
@calderjo
calderjo deleted the agent/chavezcalderon-20261203213637-748412dd branch December 3, 2026 22:55
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