Skip to content

feat: make production deploy test level configurable - #467

Merged
Codeneos merged 4 commits into
mainfrom
feature/production-deploy-test-level
Nov 2, 2026
Merged

Codeneos merged 4 commits into
mainfrom
feature/production-deploy-test-level

Conversation

@Codeneos

@Codeneos Codeneos commented Jul 16, 2026 •

Copy link
Copy Markdown
Owner
  • Add vlocity.salesforce.productionDeployTestLevel with RunRelevantTests as the default and RunLocalTests / RunAllTestsInOrg as alternatives, applied only to production metadata deployments.
  • Include RunRelevantTests in deployment option typing and identify its beta status in the settings UI. Salesforce documents this level as available in all API versions: release notes.
  • Cover the production default, all configured levels, and unchanged non-production behavior with typed regression tests.
  • Integrate with the current org-scoped deployment queue and retry handling on main.

Copilot AI review requested due to automatic review settings July 16, 2026 20:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 027752add6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a VS Code configuration knob to control the Apex test execution level used during production Salesforce metadata deployments, while keeping non-production deploy behavior unchanged. It also extends deploy option typing in @vlocode/salesforce and adds focused unit tests around the option selection.

Changes:

  • Introduces vlocity.salesforce.productionDeployTestLevel and wires it into DeployMetadataCommand only for production org deployments.
  • Extends DeployOptions.testLevel typing and adds unit tests validating production vs non-production option shaping.
  • Updates extension configuration schema to expose the new setting.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
packages/vscode-extension/src/lib/vlocodeConfiguration.ts Adds a typed config property for the production deploy test level.
packages/vscode-extension/src/commands/metadata/deployMetadataCommand.ts Applies the configured production-only deploy start options (including test level).
packages/vscode-extension/src/commands/metadata/tests/deployMetadataCommand.test.ts Adds unit coverage for production/non-production deploy option selection.
packages/vscode-extension/package.json Contributes the new VS Code setting (enum + default + descriptions).
packages/salesforce/src/connection/metadata/types/deployResult.ts Extends deploy option typing to include the new test level value.

Comment thread packages/vscode-extension/package.json Resolved
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@Codeneos
Codeneos merged commit 46457a1 into main Nov 2, 2026
8 checks passed
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