Dx Devops Test Pipeline Configure

forcedotcom/sf-skills/plugins/builder/dx-devops/skills/dx-devops-test-pipeline-configure

作者 forcedotcome5164d94d7511c00fa02a5b8b60754b2361e178f无许可证1K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库2天前更新

Configures DevOps Center pipeline testing infrastructure: enables a test provider so its suites become available, re-syncs a configured provider to pull in new suites, or creates a quality gate with rules on a stage. Routes by intent across three modes after running shared prerequisite checks and an explicit confirmation gate. Use this skill when a user wants to set up, configure, enable, sync, or refresh a test provider, or set/configure a quality gate or coverage threshold on a DevOps Center pipeline stage. TRIGGER when: the user wants to configure/enable/add/set up a test provider, re-sync or refresh a provider's suite list, pull in new suites, or set/configure a quality gate, coverage threshold, or testing benchmark on a stage. DO NOT TRIGGER when: assigning existing suites to a stage (use dx-devops-test-suite-assignments-configure), running or retriggering a suite (use dx-devops-test-suite-run), or non-DevOps-Center work.

仅含说明DevOps & Cloud
AI 生成的概览

配置 DevOps Center 流水线测试:启用测试提供程序、重新同步提供程序,或在阶段上设置质量门禁。

功能
该技能指导在 Salesforce 组织中配置 DevOps Center 流水线测试基础设施。它按意图分为三种模式:启用尚未配置的测试提供程序、重新同步已配置的提供程序以拉取新套件,以及在流水线阶段上创建带规则的质量门禁。它会运行共享的前置检查,在任何写入前要求明确的确认关卡,并以通俗语言报告结果。
适用场景
适用于用户想要设置、启用或配置测试提供程序,刷新或重新同步提供程序的套件列表,或在 DevOps Center 流水线阶段上设置质量门禁、覆盖率阈值或测试基准时。不适用于将现有套件分配到阶段、运行套件或非 DevOps Center 的工作。
运行要求
需要 Salesforce CLI(sf)2.67.0 或更高版本、Agentforce DX 插件、已认证的 DevOps Center 组织,以及 Salesforce API v67.0 或更高版本。所有数据均通过 sf data query 或 sf api request rest 从组织查询。不附带脚本,仅包含说明和参考文档。

Configure DevOps Center Pipeline Testing Infrastructure

Sets up and configures a DevOps Center pipeline's testing infrastructure. This skill handles three closely related "configure your pipeline" operations that share the same org context, prerequisites, and entity scope (the pipeline level). Pick the mode that matches the user's intent.

API version: All DevOps testing system calls target Salesforce API v67.0 (minimum required).

Important: All DevOps Center data (pipelines, stages, providers, suites, gates) lives in the Salesforce org — NOT the local repo. Never search the filesystem for pipeline configuration. Always query the org with sf data query or sf api request rest.


Step 1 — Run prerequisites first (always)

Before any query or system call, run the prerequisite checks in references/prerequisite-checks.md. On any failure, surface the plain-language message and stop — never write to an unverified environment.

  • Modes A & B (provider configure/sync): run Prerequisites 1–4 (org login, Agentforce DX plugin, DevOps Center org auth, pipeline identified). Prerequisite 5 (stage) is not required — providers are configured at the pipeline level.
  • Mode C (quality gate): run Prerequisites 1–4 and Prerequisite 5 (stage). Prereq 5 gives the DevopsPipelineStage only — the target DevopsTestSuiteStage record Id is resolved separately in Mode C's Step 0 (trigger → suite-stage row).

Carry forward the resolved doce-org-alias, pipelineId, and (Mode C) stageId / testSuiteStageId.


Step 2 — Select the mode

If the user wants to…ModeFollow
Enable / set up / add a provider that is not yet configuredA — Configure a test providerreferences/configuring-test-provider.md
Re-sync / refresh an already-configured provider to pull in new suitesB — Sync a configured providerreferences/syncing-test-providers.md
Set / configure a quality gate, coverage threshold, or testing benchmark on a stageC — Configure a quality gatereferences/configuring-quality-gate.md

Disambiguating A vs B (the critical decision): First fetch the pipeline's providers (GET .../testProviders?status=all) — both modes start there. Then:

  • Provider is Available (not configured) → Mode A (configure).
  • Provider is Configured but suites are stale/missing → Mode B (sync).
  • Provider is Configured and the user can't see suites when assigning to a stage → this is a stage-assignment gap, not a configuration gap. Redirect to dx-devops-test-suite-assignments-configure.

Never POST to the configure endpoint for an already-configured provider — it creates duplicate DevopsPipelineTestProvider records. See references/gotchas.md.


Step 3 — Confirmation gate (required in every mode)

Every mode mutates org state and must show a confirmation gate before any write. Each mode's reference file contains its exact gate wording (Mode C additionally requires a mandatory impact preview before the gate). Do not call any write API until the user gives an affirmative response. If the user declines, stop without writing.


Step 4 — Execute and report

Follow the chosen reference file for the exact API calls, success messages, and error handling:

  • references/configuring-test-provider.md — Mode A
  • references/syncing-test-providers.md — Mode B
  • references/configuring-quality-gate.md — Mode C
  • references/error-handling.md — consolidated status-code → plain-language tables for all modes
  • references/gotchas.md — duplicate-provider trap, API-name differences, trigger-type rules

Never expose raw API errors, stack traces, or JSON payloads to the user — always translate to plain language.


Related skills

  • dx-devops-test-suite-assignments-configure — after configuring/syncing a provider, assign or map its suites to a stage; also recommends which suites to run for a commit.
  • dx-devops-test-suite-run — run a suite, or retrigger a quality gate after fixes meet the threshold.
  • dx-devops-test-failures-analyze — explain failures from a run and optionally create a fix work item.

来源与署名

来源:forcedotcom/sf-skills位于plugins/builder/dx-devops/skills/dx-devops-test-pipeline-configure提交e5164d9

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架