AGENT SKILL

SynapseML 分支规则解析

synapseml-branches

解析 SynapseML 特定分支的规则、运行时基线、同步策略和 CI 预期。在对 master、spark4.0、spark4.1、port/sync 分支,或基分支决定行为的 PR 进行编辑、变基、合并、测试或宣布就绪之前使用。

License 许可
MIT
最近更新
2026-11-14
Stars
★ 5.3k
Forks
870

01 前言 Front Matter

name
synapseml-branches
description
Resolve SynapseML branch-specific rules, runtime baselines, sync policy, and CI expectations. Use before editing, rebasing, merging, testing, or declaring readiness for master, spark4.0, spark4.1, port/sync branches, or a PR whose base branch determines behavior.
compatibility
SynapseML repository with git and GitHub CLI.

02 资源文件 6

03 SKILL.md 正文

SynapseML branch context

Use the PR base branch as the context. A feature branch name does not determine the runtime, sync policy, or CI that must pass.

Active branches

Only master, spark4.0, and spark4.1 are active. Requests to work on "branches", "all branches", or branch syncs mean these three unless the user explicitly names another target. This scope also applies when repairing downstream SynapseML-Internal compatibility checks.

Historical remote refs are not evidence that a branch is active. Do not create, refresh, or validate PRs for them as part of an unqualified branch request. The Spark version used by master does not make a similarly named release branch active.

Workflow

  1. Read root AGENTS.md.
  2. Resolve the target:
    • For a PR, read baseRefName from GitHub.
    • For direct branch work, use the checked-out shared branch.
  3. Load the mapped reference. Filenames use p for the version decimal:
  4. Verify every version, dependency, trigger, skip, and test command against that branch's live build.sbt, environment.yml, workflows, and pipeline.yaml. References are decision guides, not stale-value authority.
  5. Recheck branch context at three points: before implementation, before validation, and immediately before push/readiness. Target movement or a changed base invalidates earlier evidence.

Sources of truth

Read these on the target branch; do not maintain a copied version matrix.

Concern Source
Spark and Scala versions build.sbt
Python and dependency constraints environment.yml, plus environment.dev.yml where present
JDK selection pipeline.yaml, Java templates, workflow jobs, environment files, and Dockerfiles
Selected CI suites and branch triggers pipeline.yaml and the Azure definition's trigger settings
Databricks runtimes, pools, and notebooks DatabricksUtilities.scala

Responsibilities

  • Ordinary PRs rebase onto their latest target with --force-with-lease.
  • Shared port branches receive master by merge; never rebase or force-push the shared branch.
  • For conflict resolution, compare merge base, master, and port branch; ancestry alone does not prove both sides survived.
  • Inspect CI definitions on the target branch and confirm builds actually queued. Never infer port-branch coverage from master.
  • Confirm the relevant suites ran by test result/class, not only job status.
  • Treat .github/skills/ as authoritative. .agents/ is compatibility-only and may contain stale copies.
  • If no exact reference exists, follow the fallback, state uncertainty, and add a concise reference from the branch template when the branch is an active supported target.

Keep references durable

Keep only branch purpose, compatibility constraints, porting boundaries, and decision-changing validation rules. Link shared guidance and live sources. PR numbers, commit IDs, build results, benchmark snapshots, and incident narratives belong in PR descriptions or review artifacts, not branch references. Update a reference when a branch contract changes, not after every merge.

04 同仓库更多 Skills

microsoft
microsoft/SynapseML

SynapseML PR 合并就绪处理

synapseml-pr-loop

开发并以证据为依据,让 SynapseML 的功能、缺陷、任务、issue 或拉取请求(PR)达到可合并状态,涵盖测试、快速审查、CI 以及 review-code 六轮严格检验。适用于“5/5 信心”“200% 就绪”、陈旧 PR 修复、rebase 后重新测试的请求、解决所有审查意见,或证明某功能发布时不存在正确性、兼容性、性能或 Spark 回归问题。

软件开发工程师代码仓库协作管理
★ 5.3k
microsoft
microsoft/SynapseML

SynapseML 本地环境搭建与验证

synapseml-local-setup

在 WSL 或 Linux 中本地搭建并验证 SynapseML。当智能体需要让 SynapseML 在本地运行、执行 sbt 编译/测试,或遇到 Java 21、Scala 2.12 compiler-bridge、bad constant pool index、Spark 或本地验证失败时使用。

软件开发工程师开发环境与工具链管理
★ 5.3k
microsoft
microsoft/SynapseML

SynapseML 外部贡献者 PR 审查

synapseml-external-contributor-review

审查外部贡献者的 SynapseML PR,检查其正确性、提示注入和流水线凭证窃取问题,然后通过 synapseml-pr-loop 请求安全且经过授权的 PR CI。适用于未在 Osmos 组/团队或受信任所有者名单中标识的作者,以及维护者请求的可选后续跟进。

安全工程师代码仓库协作管理
★ 5.3k
microsoft
microsoft/SynapseML

Scala 代码编写

scala-code

在 SynapseML 中编写和修改 Scala 代码。当添加或更改 Scala 转换器(transformers)、估计器(estimators)或参数(params)时使用,以遵循仓库模式、保持 scalastyle 检查和编译通过,并通过测试覆盖行为变更。

软件开发工程师代码实现
★ 5.3k
microsoft
microsoft/SynapseML

SynapseML 代码审查

code-review

审查 SynapseML 的 Python 和 Scala 代码变更。在完成 PR 审查或实现变更定稿前使用,用于检查安全性、兼容性、代码风格、生成的代码以及针对性测试。

软件开发工程师代码仓库协作管理
★ 5.3k