Skip to content

fix(cli): keep docker login output out of build logs - #4909

Merged
myftija merged 1 commit into
mainfrom
fix/scope-docker-login-logs
Sep 8, 2026
Merged

fix(cli): keep docker login output out of build logs#4909
myftija merged 1 commit into
mainfrom
fix/scope-docker-login-logs

Conversation

@myftija

@myftija myftija commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

On self-hosted and local builds, the registry login step's output landed in the shared build log buffer, so every build log carried docker's WARNING! Your credentials are stored unencrypted block. The warning is misleading in our context: the credentials are per-project, short-lived deploy tokens on an ephemeral builder machine.

Login output now goes to debug logging only; a single Logged in to <registry> marker is pushed into the build log on success (so failure logs still show auth ran), and a failed login still returns its full output.

@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c4266ec

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
trigger.dev Patch
@internal/dashboard-agent Patch
@trigger.dev/build Patch
@trigger.dev/core Patch
@trigger.dev/python Patch
@trigger.dev/react-hooks Patch
@trigger.dev/redis-worker Patch
@trigger.dev/rsc Patch
@trigger.dev/schema-to-json Patch
@trigger.dev/sdk Patch
@trigger.dev/database Patch
@trigger.dev/otlp-importer Patch
@trigger.dev/rbac Patch
@trigger.dev/sso Patch
@internal/clickhouse Patch
@internal/llm-model-catalog Patch
@internal/metrics-pipeline Patch
@internal/redis Patch
@internal/replication Patch
@internal/run-engine Patch
@internal/run-store Patch
@internal/schedule-engine Patch
@internal/tracing Patch
@internal/webhook-engine Patch
@internal/webhook-sources Patch
@internal/testcontainers Patch
@internal/cache Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

The registry login step's output was collected into the shared build log
buffer, so build logs on self-hosted and local builds always carried
docker's unencrypted-credentials warning — most confusingly right next to
the real error on failed builds. Route login output to debug logging only,
push a single 'Logged in to <registry>' marker into the build log on
success, and keep returning the full login output when the login itself
fails.
@myftija
myftija force-pushed the fix/scope-docker-login-logs branch from 5600f7f to c4266ec Compare September 8, 2026 15:33

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Sep 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

@trigger.dev/build

npm i https://pkg.pr.new/@trigger.dev/build@c4266ec

trigger.dev

npm i https://pkg.pr.new/trigger.dev@c4266ec

@trigger.dev/core

npm i https://pkg.pr.new/@trigger.dev/core@c4266ec

@trigger.dev/python

npm i https://pkg.pr.new/@trigger.dev/python@c4266ec

@trigger.dev/react-hooks

npm i https://pkg.pr.new/@trigger.dev/react-hooks@c4266ec

@trigger.dev/redis-worker

npm i https://pkg.pr.new/@trigger.dev/redis-worker@c4266ec

@trigger.dev/rsc

npm i https://pkg.pr.new/@trigger.dev/rsc@c4266ec

@trigger.dev/schema-to-json

npm i https://pkg.pr.new/@trigger.dev/schema-to-json@c4266ec

@trigger.dev/sdk

npm i https://pkg.pr.new/@trigger.dev/sdk@c4266ec

commit: c4266ec

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Walkthrough

localBuildImage now keeps Docker registry login output separate from the shared build-error buffer. Failed logins return the captured login output, while successful logins add a concise registry marker to later build-failure logs. A patch changeset documents the release.

Priority: ⬇️ Low — Defer the Docker login log cleanup because it is a narrow patch to local and self-hosted build output with low issue severity.

Severity of issue fixed: Low

Merge Risk: 🔵 Low · up to c4266

Registry login output is now isolated from build logs while preserving failure output and adding a success marker. The implementation has a minor repository instrumentation-policy gap that should be addressed before final merge.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description accurately explains the logging change, but it omits the required template sections, including the issue reference, checklist, testing details, changelog, and screenshots. Complete the repository template. Add a Closes # reference, complete the checklist, describe the testing performed, add a short changelog entry, and provide screenshots or state that they are not applicable.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: keeping Docker login output out of build logs.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/scope-docker-login-logs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
packages/cli-v3/src/deploy/buildImage.ts (1)

517-519: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add a crumbs marker to the new login-output block.

The changed block adds login-output handling but has no // @Crumbs marker or `// `#region` `@crumbs wrapper. Add one before this block so agentcrumbs strip can remove the temporary instrumentation.

As per coding guidelines, add crumbs as you write code and mark lines with // @Crumbs or wrap blocks in `// `#region` `@crumbs.

Proposed fix
+    // `@crumbs`
     // Login output (incl. docker's credential-storage warning) stays out of the build

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 51032387-cc84-4771-b42b-6bbb1132668c

📥 Commits

Reviewing files that changed from the base of the PR and between 7fb8217 and c4266ec.

📒 Files selected for processing (2)
  • .changeset/dry-mirrors-shake.md
  • packages/cli-v3/src/deploy/buildImage.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📜 Review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: webapp / 🧪 Unit Tests: Webapp (2, 24)
🧰 Additional context used
📓 Path-based instructions (7)
**Prefer static imports over dynamic imports.**

📄 CodeRabbit inference engine (AGENTS.md)

Files:

  • packages/cli-v3/src/deploy/buildImage.ts
Add crumbs as you write code — not just when debugging.

📄 CodeRabbit inference engine (AGENTS.md)

Files:

  • packages/cli-v3/src/deploy/buildImage.ts
Build Docker images using `src/deploy/buildImage.ts` for local Docker/Depot or remote builds

📄 CodeRabbit inference engine (packages/cli-v3/CLAUDE.md)

Files:

  • packages/cli-v3/src/deploy/buildImage.ts
Deploy mode code should be located in `src/deploy/` and handles bundling, archiving, building Docker images, and pushing to registry

📄 CodeRabbit inference engine (packages/cli-v3/CLAUDE.md)

Files:

  • packages/cli-v3/src/deploy/buildImage.ts
Use function declarations instead of default exports

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Files:

  • packages/cli-v3/src/deploy/buildImage.ts
Use types over interfaces for TypeScript Avoid using enums; prefer string unions or const objects instead

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Files:

  • packages/cli-v3/src/deploy/buildImage.ts
When creating or editing OTEL metrics (counters, histograms, gauges), ensure metric attributes have low cardinality by using only enums, booleans, bounded error codes, or bounded shard IDs Do not use high-cardinality attributes in OTEL metr...

📄 CodeRabbit inference engine (.cursor/rules/otel-metrics.mdc)

Files:

  • packages/cli-v3/src/deploy/buildImage.ts
🔇 Additional comments (1)
.changeset/dry-mirrors-shake.md (1)

5-5: LGTM!

@myftija
myftija enabled auto-merge September 8, 2026 15:51
@myftija
myftija added this pull request to the merge queue Sep 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 8, 2026
@myftija
myftija added this pull request to the merge queue Sep 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 8, 2026
@myftija
myftija added this pull request to the merge queue Sep 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 8, 2026
@myftija
myftija added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit 7842bd5 Sep 8, 2026
103 of 105 checks passed
@myftija
myftija deleted the fix/scope-docker-login-logs branch September 8, 2026 17:13
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