Repository navigation
fix(jobs): hide internal build artifact errors from deployment logs - #13856
Merged
Merged
Conversation
Orchestrator artifact failures such as a timed-out build cache download carried raw storage URLs and internal addresses straight into the user's build logs. Platform-side failures now show a generic internal error and are reported to Sentry as a 500 on the worker span.
Contributor
|
loks0n
reviewed
Sep 23, 2026
loks0n
reviewed
Sep 23, 2026
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Member
Author
|
@greptile review |
Member
Author
|
@greptile review |
loks0n
approved these changes
Sep 23, 2026
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
When a jobs-service build fails on a platform-side artifact error, the raw orchestrator message was appended to the deployment's build logs. For example, a build cache download that timed out showed users:
That exposes bucket URLs and internal addresses, and there is nothing the user can do about it.
Workers/Jobs.php::onArtifact()now sends failed artifacts through a newartifactFailure()method:archive_empty,archive_unknown_format,archive_corrupt,archive_path_invalid,archive_layout_mismatch,clone_failed) map to a fixed, safe message inUSER_ARTIFACT_ERRORS. The raw orchestrator message is never shown, because it can contain internal paths.Internal server error. Please try again.action()throws aUtopia\Queue\PermanentFailure(code 500) carrying the raw error. The worker'serror()hook finishes the span with it, so it is reported to Sentry.PermanentFailuresends the message to the dead-letter list instead of retrying it, and a redelivery would be a no-op anyway because events are deduplicated by ID. The handler itself only callsSpan::add(). Cache upload and manifest failures don't fail the build, so they aren't reported.outputupload, which used to showBuild output upload failed: <raw error>, goes through the same path.cacheupload still does not fail the build.Test Plan
composer lintand PHPStan pass on the changed file.