Skip to content

Commit

Permalink
fix(env): support more SF_ source-tracking vars
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Aug 30, 2024
1 parent 938baf7 commit e9bff6b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions messages/envVars.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ Set to true to disable the auto-update feature of Salesforce CLI. Default value

Set to true to disable polling of your org’s SourceMember object when you run the force:source:push|pull commands. Default value is false.

# sfdxSourceTrackingBatchSize

Set to the number of seconds you want the `project deploy start` command to keep polling the SourceMember object before it times out.

# sfdxDisableTelemetry

Set to true to disable Salesforce CLI from collecting usage information, user environment information, and crash reports. Default value is false. Overrides the disableTelemetry configration variable.
Expand Down
10 changes: 10 additions & 0 deletions src/config/envVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export enum EnvironmentVariable {
'SFDX_DISABLE_AUTOUPDATE' = 'SFDX_DISABLE_AUTOUPDATE',
'SFDX_AUTOUPDATE_DISABLE' = 'SFDX_AUTOUPDATE_DISABLE',
'SFDX_DISABLE_SOURCE_MEMBER_POLLING' = 'SFDX_DISABLE_SOURCE_MEMBER_POLLING',
'SFDX_SOURCE_TRACKING_BATCH_SIZE' = 'SFDX_SOURCE_TRACKING_BATCH_SIZE',
'SFDX_DISABLE_TELEMETRY' = 'SFDX_DISABLE_TELEMETRY',
'SFDX_DNS_TIMEOUT' = 'SFDX_DNS_TIMEOUT',
'SFDX_DOMAIN_RETRY' = 'SFDX_DOMAIN_RETRY',
Expand Down Expand Up @@ -82,6 +83,7 @@ export enum EnvironmentVariable {
'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE' = 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE',
'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE' = 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE',
'SF_SOURCE_MEMBER_POLLING_TIMEOUT' = 'SF_SOURCE_MEMBER_POLLING_TIMEOUT',
'SF_SOURCE_TRACKING_BATCH_SIZE' = 'SF_SOURCE_TRACKING_BATCH_SIZE',
'SF_USE_GENERIC_UNIX_KEYCHAIN' = 'SF_USE_GENERIC_UNIX_KEYCHAIN',
'SF_USE_PROGRESS_BAR' = 'SF_USE_PROGRESS_BAR',
'SF_LAZY_LOAD_MODULES' = 'SF_LAZY_LOAD_MODULES',
Expand Down Expand Up @@ -170,6 +172,10 @@ export const SUPPORTED_ENV_VARS: EnvType = {
description: getMessage(EnvironmentVariable.SFDX_DISABLE_SOURCE_MEMBER_POLLING),
synonymOf: EnvironmentVariable.SF_DISABLE_SOURCE_MEMBER_POLLING,
},
[EnvironmentVariable.SFDX_SOURCE_TRACKING_BATCH_SIZE]: {
description: getMessage(EnvironmentVariable.SFDX_SOURCE_TRACKING_BATCH_SIZE),
synonymOf: EnvironmentVariable.SF_SOURCE_TRACKING_BATCH_SIZE,
},
[EnvironmentVariable.SFDX_DISABLE_TELEMETRY]: {
description: getMessage(EnvironmentVariable.SFDX_DISABLE_TELEMETRY),
synonymOf: EnvironmentVariable.SF_DISABLE_TELEMETRY,
Expand Down Expand Up @@ -310,6 +316,10 @@ export const SUPPORTED_ENV_VARS: EnvType = {
description: getMessage(EnvironmentVariable.SF_DISABLE_SOURCE_MEMBER_POLLING),
synonymOf: null,
},
[EnvironmentVariable.SF_SOURCE_TRACKING_BATCH_SIZE]: {
description: getMessage(EnvironmentVariable.SFDX_SOURCE_TRACKING_BATCH_SIZE),
synonymOf: null,
},
[EnvironmentVariable.SF_DISABLE_TELEMETRY]: {
description: getMessage(EnvironmentVariable.SF_DISABLE_TELEMETRY),
synonymOf: null,
Expand Down

2 comments on commit e9bff6b

@svc-cli-bot
Copy link
Contributor

Choose a reason for hiding this comment

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

Logger Benchmarks - ubuntu-latest

Benchmark suite Current: e9bff6b Previous: 81dcfb3 Ratio
Child logger creation 462070 ops/sec (±0.58%) 477992 ops/sec (±1.49%) 1.03
Logging a string on root logger 773963 ops/sec (±8.55%) 751468 ops/sec (±7.26%) 0.97
Logging an object on root logger 570080 ops/sec (±7.13%) 599382 ops/sec (±6.48%) 1.05
Logging an object with a message on root logger 8316 ops/sec (±203.34%) 7685 ops/sec (±204.38%) 0.92
Logging an object with a redacted prop on root logger 462424 ops/sec (±5.89%) 425314 ops/sec (±8.19%) 0.92
Logging a nested 3-level object on root logger 393590 ops/sec (±4.15%) 381475 ops/sec (±7.23%) 0.97

This comment was automatically generated by workflow using github-action-benchmark.

@svc-cli-bot
Copy link
Contributor

Choose a reason for hiding this comment

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

Logger Benchmarks - windows-latest

Benchmark suite Current: e9bff6b Previous: 81dcfb3 Ratio
Child logger creation 320313 ops/sec (±3.12%) 315377 ops/sec (±4.09%) 0.98
Logging a string on root logger 729844 ops/sec (±8.85%) 749310 ops/sec (±6.06%) 1.03
Logging an object on root logger 618478 ops/sec (±5.96%) 590853 ops/sec (±6.79%) 0.96
Logging an object with a message on root logger 9004 ops/sec (±198.54%) 7073 ops/sec (±202.35%) 0.79
Logging an object with a redacted prop on root logger 444788 ops/sec (±14.14%) 458132 ops/sec (±13.24%) 1.03
Logging a nested 3-level object on root logger 339968 ops/sec (±4.19%) 345113 ops/sec (±4.47%) 1.02

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.