Repository navigation
Fixes #37287: store agent logs in S3 whenever the server is configured for it - #37394
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
✅ Generated Sources Auto-UpdatedThe generated TypeScript types ( |
|
Code Review ✅ Approved 🔴 High risk 2 closed / 2 findingsChanging log-write authorization to accept EditIngestionPipelineStatus lets more principals write pipeline logs, which could enable misleading run records. Stores agent logs in S3 whenever the server is configured for it, turning on each agent's streamable logs flag at deploy and saving it on edit, and lets run-status bots write logs. Two issues were resolved this session: the missing decision records for the S3 flag and log-write permission rules, and a finished run being treated as still going when its storage had aged out. No open issues found. ✅ 2 closed✅ Quality: S3-forces-streamable-logs and log-write permission rules are unrecorded
✅ Edge Case: Aged-out finished run counts as going and is tailed from empty storage
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |



Fixes #37287
Fixes #36568
Problem
A server can store agent logs in S3, so they survive the run's pod. Configuring the bucket wasn't enough: each agent also has an
enableStreamableLogsflag, off by default and absent from the UI. Admins had to turn it on through the API and redeploy, for every agent, including future ones. Missed agents kept their logs only in their pods, which the Kubernetes orchestrator deletes.Auto Classification logs were never stored even with the flag on. The server refused every upload from that agent's bot, answered 500, and the run still ended as successful.
Why it happened
PIPELINE_SERVICE_CLIENT_LOG_ENABLEDwas true. PR #28741 moved that decision into one method every deploy path calls, so Hybrid Runner setups could derive it from the runner. In OpenMetadata the method does nothing.EditAllon the pipeline. A run reports its status and progress withEditIngestionPipelineStatus, which every bot has. The Auto Classification bot has noEditAllon pipelines.What this PR changes
PIPELINE_SERVICE_CLIENT_LOG_ENABLEDis deprecated and ignored. The shipped configuration files no longer set it, but it stays in the schema so existing configuration files keep loading.EditIngestionPipelineStatusorEditAll, like the other run-reporting endpoints, and a refusal returns 403. A custom role granted onlyEditIngestionPipelineStatus(for example, to enable and disable pipelines) can now also write that pipeline's logs.What users will notice
With S3 configured, each agent stores its logs from its next deploy, Auto Classification included. This includes servers that had
type: s3withPIPELINE_SERVICE_CLIENT_LOG_ENABLEDoff. Older runs, and finished runs with nothing in S3, show the runner's logs instead of a blank tab.How it was tested
Not in this PR
PIPELINE_SERVICE_CLIENT_LOG_ENABLEDfrom the schema.Decision records


Confidence Score: 5/5
The latest changes appear safe to merge; no new blocking issues were found.Summary
The PR makes S3 configuration turn on stored agent logs at deploy time, saves that choice after edits, and reads logs from the source appropriate to each run.
manerow accepted the test setup's limit: default storage cannot return a successful upload, so the bot upload check permits storage errors; closing the same run must return 200.
Reviews (8) · Last reviewed commit: "chore: drop the deprecated log storage e..." · Reviewed by Greptile