forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
494 stars 78 forks source link

Progress output from project deploy start cannot be disabled #3123

Open markbrennand opened 4 days ago

markbrennand commented 4 days ago

Summary

The project deploy start command displays very verbose progress output. This cannot be disabled and makes its use in pipelines very difficult.

Steps To Reproduce

Run sf project deploy start

Expected result

If SF_USE_PROGRESS_BAR is set to false, no deployment progress should be shown.

Actual result

Deployment progress which refreshes at least once a second is shown and cannot be disabled.

System Information

bash

{
  "architecture": "darwin-x64",
  "cliVersion": "@salesforce/cli/2.66.7",
  "nodeVersion": "node-v22.11.0",
  "osVersion": "Darwin 23.6.0",
  "rootPath": "/Users/markbrennand/.local/share/sf/client/2.66.7-5567872",
  "shell": "zsh",
  "pluginVersions": [
    "@kaptio/plugin-kaptio 0.101.0 (user)",
    "@oclif/plugin-autocomplete 3.2.8 (core)",
    "@oclif/plugin-commands 4.1.7 (core)",
    "@oclif/plugin-help 6.0.22 (user) published 192 days ago (Sun May 12 2024) (latest is 6.2.18)",
    "@oclif/plugin-not-found 3.2.25 (core)",
    "@oclif/plugin-plugins 5.4.15 (core)",
    "@oclif/plugin-search 1.2.14 (core)",
    "@oclif/plugin-update 4.6.10 (core)",
    "@oclif/plugin-version 2.1.2 (user) published 189 days ago (Tue May 14 2024) (latest is 2.2.16)",
    "@oclif/plugin-warn-if-update-available 3.0.19 (user) published 192 days ago (Sun May 12 2024) (latest is 3.1.23)",
    "@oclif/plugin-which 3.2.17 (core)",
    "@salesforce/cli 2.66.7 (core)",
    "apex 3.5.6 (core)",
    "api 1.3.1 (core)",
    "auth 3.6.72 (core)",
    "data 3.11.2 (core)",
    "deploy-retrieve 3.15.8 (core)",
    "info 3.4.17 (core)",
    "limits 3.3.38 (core)",
    "marketplace 1.3.4 (core)",
    "org 5.1.2 (core)",
    "packaging 2.9.0 (core)",
    "schema 3.3.40 (core)",
    "settings 2.4.4 (core)",
    "signups 2.5.6 (user) published 109 days ago (Sat Aug 03 2024) (latest is 2.6.3)",
    "sobject 1.4.44 (core)",
    "telemetry 3.6.19 (core)",
    "templates 56.3.28 (core)",
    "trust 3.7.39 (core)",
    "user 3.6.2 (core)",
    "@salesforce/sfdx-plugin-lwc-test 1.2.0 (user) published 259 days ago (Tue Mar 05 2024) (latest is 1.2.1)",
    "@salesforce/sfdx-scanner 4.5.0 (user) published 84 days ago (Tue Aug 27 2024) (latest is 4.7.0)",
    "@terafina/tffa-sfdx-plugin 23.0.0 (user) published 142 days ago (Mon Jul 01 2024)",
    "sfdocs-sfdx-plugin 0.8.1 (user) published 494 days ago (Fri Jul 14 2023)",
    "sfdx-git-delta 5.47.0 (user) published 43 days ago (Tue Oct 08 2024) (latest is 5.49.4)"
  ]
}
github-actions[bot] commented 4 days ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

cristiand391 commented 4 days ago

@markbrennand we added support new env vars to control output frequency in CI, see: https://github.com/oclif/multi-stage-output/pull/52