Skip to content

fix: relocate Automations snippet includes and fix localized imports#2727

Merged
johndmulhausen merged 6 commits into
mainfrom
style-guide/snippets-en-20260604-115945
Jun 5, 2026
Merged

fix: relocate Automations snippet includes and fix localized imports#2727
johndmulhausen merged 6 commits into
mainfrom
style-guide/snippets-en-20260604-115945

Conversation

@johndmulhausen

@johndmulhausen johndmulhausen commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Note

A models/sweeps style pass was briefly bundled into this PR by mistake. It now lives in its dedicated PR #2722, which carries all of @mdlinville's and Copilot's review fixes. This PR no longer touches models/sweeps.

Summary

Three related changes to the Automations docs. The bulk is a structural reorganization of the snippet includes plus a real localization bug fix; a small /style-guide copy pass on five English snippets rides along. No technical content was rewritten.

If you reviewed an earlier version of this PR and expected edits under snippets/en/_includes/automations/, note that those files were relocated (see change 1 below) — the edits are intact, just at a new path.

What changed

1. Relocated the shared (English) includes — snippets/en/_includes/automations/snippets/_includes/automations/ (8 files)

Language-neutral includes now live at the shared snippets root. The English pages under models/automations* import from the new path.

2. Fixed the localized includes and their imports (the main bug fix)

  • The fr/ja/ko includes were nested under a malformed path with a stray en/ segment: snippets/{fr,ja,ko}/en/_includes/automations/. Moved them to snippets/{fr,ja,ko}/_includes/automations/ (24 files).
  • The localized pages ({fr,ja,ko}/models/automations*) were importing the English snippet path (/snippets/en/_includes/...), so French/Japanese/Korean pages rendered English snippet text. Each locale's pages now import its own locale's snippets (/snippets/fr/_includes/..., etc.).

3. /style-guide copy pass on five English snippets (Google Developer Style Guide + CoreWeave conventions; wording only)

File (now at snippets/_includes/automations/) Edit
actions-list.mdx "external systems like such as CI/CD pipelines…"
best-practices.mdx "Route different severities to different channels if needed." → "If you have multiple severities, route them to different channels."
mental-model.mdx "W&B Automations follow a simple this pattern"
tutorial-go-further.mdx added intro line: "For more information, see the following resources:"
where-to-find-automations.mdx "click select the Automations tab" (×2)

File inventory (48 files)

  • 8 — English includes relocated to snippets/_includes/automations/ (5 carry the style edits above; tutorial-diagram-project, tutorial-diagram-registry, and tutorial-notebook moved unchanged).
  • 24 — localized includes relocated to snippets/{fr,ja,ko}/_includes/automations/ (content unchanged; path fix only).
  • 16 — consuming pages repointed to the new import paths: models/automations.mdx + models/automations/{project-automation-tutorial,registry-automation-tutorial,tutorial}.mdx, and the fr/ja/ko equivalents.

Review checklist

  • English Automations pages: all import … from "/snippets/_includes/automations/…" paths resolve.
  • fr/ja/ko Automations pages now render localized snippet text, not English.
  • The five style edits don't change technical meaning (notes below).

Style-edit review notes

Carried over from the original style pass; still worth a glance:

  • actions-list.mdx — Confirm "Call a webhook URL with a JSON payload" matches the implementation (some W&B docs phrase this as a POST to a configured endpoint). Confirm the Slack-notification link target (run/artifact/workspace) is intentionally abstract for a reused include. Confirm no action types are missing (for example, job-triggering actions).
  • best-practices.mdx — Confirm the tightened severity-routing wording matches author intent. "alias patterns" is mentioned without a link to where aliases are defined; consider linking on first use.
  • mental-model.mdx — The closing sentence links to automation-events#project, #registry, and the bare page (three links to ~one destination); consider consolidating. Confirm bold-on-first-mention (event, conditions, action) is house style. The Mermaid 'rankSpacing': 200; has a stray trailing semicolon inside the config object — verify the diagram renders.
  • tutorial-go-further.mdx — Two API bullets ("Manage automations with the API", "Automations API reference") are commented out pending the Python SDK create_automation regression (internal WB-34263); restore them once it's fixed.
  • where-to-find-automations.mdx — Confirm "Automations" is the current tab label in both the project and registry views, and that the tab is reachable from a sidebar in both contexts.

@johndmulhausen johndmulhausen requested a review from a team as a code owner June 4, 2026 16:00
@mintlify

mintlify Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wandb 🟢 Ready View Preview Jun 4, 2026, 4:21 PM

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📚 Mintlify Preview Links

🔗 View Full Preview

🔄 Renamed/Moved (31 total)

📄 Pages (31)

Old Path → New Path Preview
snippets/en/_includes/automations/actions-list.mdx
snippets/_includes/automations/actions-list.mdx
Actions List
snippets/en/_includes/automations/best-practices.mdx
snippets/_includes/automations/best-practices.mdx
Best Practices
snippets/en/_includes/automations/mental-model.mdx
snippets/_includes/automations/mental-model.mdx
Mental Model
snippets/en/_includes/automations/tutorial-diagram-project.mdx
snippets/_includes/automations/tutorial-diagram-project.mdx
Tutorial Diagram Project
snippets/en/_includes/automations/tutorial-diagram-registry.mdx
snippets/_includes/automations/tutorial-diagram-registry.mdx
Tutorial Diagram Registry
snippets/en/_includes/automations/tutorial-go-further.mdx
snippets/_includes/automations/tutorial-go-further.mdx
Tutorial Go Further
snippets/en/_includes/automations/tutorial-notebook.mdx
snippets/_includes/automations/tutorial-notebook.mdx
Tutorial Notebook
snippets/fr/en/_includes/automations/actions-list.mdx
snippets/fr/_includes/automations/actions-list.mdx
Actions List
snippets/fr/en/_includes/automations/best-practices.mdx
snippets/fr/_includes/automations/best-practices.mdx
Best Practices
snippets/fr/en/_includes/automations/mental-model.mdx
snippets/fr/_includes/automations/mental-model.mdx
Mental Model
... and 21 more pages

✨ Added (1 total)

📄 Pages (1)

File Preview
snippets/_includes/automations/where-to-find-automations.mdx Where To Find Automations

📝 Changed (16 total)

📄 Pages (16)

File Preview
fr/models/automations.mdx Automations
fr/models/automations/project-automation-tutorial.mdx Project Automation Tutorial
fr/models/automations/registry-automation-tutorial.mdx Registry Automation Tutorial
fr/models/automations/tutorial.mdx Tutorial
ja/models/automations.mdx Automations
ja/models/automations/project-automation-tutorial.mdx Project Automation Tutorial
ja/models/automations/registry-automation-tutorial.mdx Registry Automation Tutorial
ja/models/automations/tutorial.mdx Tutorial
ko/models/automations.mdx Automations
ko/models/automations/project-automation-tutorial.mdx Project Automation Tutorial
... and 6 more files

🗑️ Deleted (1 total)

View deleted files

📄 Pages (1)

File
snippets/en/_includes/automations/where-to-find-automations.mdx

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: adfc5dc at 2026-06-05 17:04:20 UTC

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🔗 Link Checker Results

All links are valid!

No broken links were detected.

Checked against: https://wb-21fd5541-style-guide-snippets-en-20260604-115945.mintlify.app

@mdlinville mdlinville left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

First, I pushed a commit into this PR to fix some snippet localization mistakes that predate the PR.

Next, this is a partial review, with some specific nits and some "off" patterns that I'm seeing in the edit that could be improved. Approving optimistically so you aren't blocked but let me know if you want me to keep going or look again.

Comment thread models/sweeps/add-w-and-b-to-your-code.mdx Outdated
Comment thread models/sweeps/add-w-and-b-to-your-code.mdx Outdated
Comment thread models/sweeps/add-w-and-b-to-your-code.mdx Outdated
Comment thread models/sweeps/add-w-and-b-to-your-code.mdx Outdated
Comment thread models/sweeps/add-w-and-b-to-your-code.mdx Outdated
Comment thread models/sweeps/start-sweep-agents.mdx Outdated
Comment thread models/sweeps/start-sweep-agents.mdx Outdated
Comment thread models/sweeps/start-sweep-agents.mdx Outdated
Comment thread models/sweeps/start-sweep-agents.mdx
Comment thread models/sweeps/start-sweep-agents.mdx Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR reorganizes and restyles Automations tutorial snippet includes (including adding localized snippet variants) and performs a broad style/wording pass across multiple Sweeps documentation pages, including new frontmatter metadata (keywords) and copy edits.

Changes:

  • Moved Automations include snippets from snippets/en/_includes/... to shared snippets/_includes/... and updated Automations pages to import the new paths.
  • Added localized Automations snippet includes for ko, ja, and fr, and updated localized Automations pages to import locale-specific includes.
  • Updated a large set of Sweeps docs with rewritten intros/structure, keyword metadata, and refined wording/examples.

Reviewed changes

Copilot reviewed 36 out of 63 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
snippets/ko/_includes/automations/where-to-find-automations.mdx Adds Korean “where to find automations” include snippet.
snippets/ko/_includes/automations/tutorial-notebook.mdx Adds Korean tutorial notebook include (currently commented out).
snippets/ko/_includes/automations/tutorial-go-further.mdx Adds Korean “go further” include snippet (with commented API links).
snippets/ko/_includes/automations/tutorial-diagram-registry.mdx Adds Korean registry diagram include snippet.
snippets/ko/_includes/automations/tutorial-diagram-project.mdx Adds Korean project diagram include snippet.
snippets/ko/_includes/automations/mental-model.mdx Adds Korean mental model include snippet.
snippets/ko/_includes/automations/best-practices.mdx Adds Korean best practices include snippet.
snippets/ko/_includes/automations/actions-list.mdx Adds Korean actions list include snippet.
snippets/ja/_includes/automations/where-to-find-automations.mdx Adds Japanese “where to find automations” include snippet.
snippets/ja/_includes/automations/tutorial-notebook.mdx Adds Japanese tutorial notebook include (currently commented out).
snippets/ja/_includes/automations/tutorial-go-further.mdx Adds Japanese “go further” include snippet (with commented API links).
snippets/ja/_includes/automations/tutorial-diagram-registry.mdx Adds Japanese registry diagram include snippet.
snippets/ja/_includes/automations/tutorial-diagram-project.mdx Adds Japanese project diagram include snippet.
snippets/ja/_includes/automations/mental-model.mdx Adds Japanese mental model include snippet.
snippets/ja/_includes/automations/best-practices.mdx Adds Japanese best practices include snippet.
snippets/ja/_includes/automations/actions-list.mdx Adds Japanese actions list include snippet.
snippets/fr/_includes/automations/where-to-find-automations.mdx Adds French “where to find automations” include snippet.
snippets/fr/_includes/automations/tutorial-notebook.mdx Adds French tutorial notebook include (currently commented out).
snippets/fr/_includes/automations/tutorial-go-further.mdx Adds French “go further” include snippet (with commented API links).
snippets/fr/_includes/automations/tutorial-diagram-registry.mdx Adds French registry diagram include snippet.
snippets/fr/_includes/automations/tutorial-diagram-project.mdx Adds French project diagram include snippet.
snippets/fr/_includes/automations/mental-model.mdx Adds French mental model include snippet.
snippets/fr/_includes/automations/best-practices.mdx Adds French best practices include snippet.
snippets/fr/_includes/automations/actions-list.mdx Adds French actions list include snippet.
snippets/en/_includes/automations/where-to-find-automations.mdx Removes the English include in favor of shared includes.
snippets/_includes/automations/where-to-find-automations.mdx Introduces shared “where to find automations” include snippet.
snippets/_includes/automations/tutorial-notebook.mdx Introduces shared tutorial notebook include (currently commented out).
snippets/_includes/automations/tutorial-go-further.mdx Tweaks shared “go further” include wording/structure.
snippets/_includes/automations/tutorial-diagram-registry.mdx Introduces shared registry diagram include snippet.
snippets/_includes/automations/tutorial-diagram-project.mdx Introduces shared project diagram include snippet.
snippets/_includes/automations/mental-model.mdx Adjusts shared mental model include wording.
snippets/_includes/automations/best-practices.mdx Adjusts shared best practices include wording.
snippets/_includes/automations/actions-list.mdx Adjusts shared actions list include wording.
models/sweeps/walkthrough.mdx Sweeps walkthrough copy rewrite + keywords frontmatter.
models/sweeps/visualize-sweep-results.mdx Sweeps visualization doc restructure + keywords frontmatter.
models/sweeps/useful-resources.mdx Sweeps resources doc restructure + keywords frontmatter.
models/sweeps/troubleshoot-sweeps.mdx Sweeps troubleshooting copy rewrite + keywords frontmatter.
models/sweeps/sweep-config-keys.mdx Sweep config reference wording updates + keywords frontmatter.
models/sweeps/start-sweep-agents.mdx Sweep agent start guide rewrite + keywords frontmatter.
models/sweeps/signal-handling-sweep-runs.mdx Signal handling guide expanded/rewritten + keywords frontmatter.
models/sweeps/pause-resume-and-cancel-sweeps.mdx Sweep lifecycle CLI guide expanded + keywords frontmatter.
models/sweeps/parallelize-agents.mdx Parallelization guide rewrite + keywords frontmatter.
models/sweeps/local-controller.mdx Local controller guide rewrite + keywords frontmatter.
models/sweeps/initialize-sweeps.mdx Initialization guide rewrite + keywords frontmatter.
models/sweeps/existing-project.mdx Existing-project tutorial rewrite + keywords frontmatter.
models/sweeps/define-sweep-configuration.mdx Sweep configuration overview expanded + keywords frontmatter.
models/sweeps/add-w-and-b-to-your-code.mdx Integration guide expanded + keywords frontmatter.
models/automations/tutorial.mdx Updates imports to shared Automations snippets.
models/automations/registry-automation-tutorial.mdx Updates imports to shared Automations snippets.
models/automations/project-automation-tutorial.mdx Updates imports to shared Automations snippets.
models/automations.mdx Updates imports to shared Automations snippets.
ko/models/automations/tutorial.mdx Switches imports to Korean Automations snippets.
ko/models/automations/registry-automation-tutorial.mdx Switches imports to Korean Automations snippets.
ko/models/automations/project-automation-tutorial.mdx Switches imports to Korean Automations snippets.
ko/models/automations.mdx Switches imports to Korean Automations snippets.
ja/models/automations/tutorial.mdx Switches imports to Japanese Automations snippets.
ja/models/automations/registry-automation-tutorial.mdx Switches imports to Japanese Automations snippets.
ja/models/automations/project-automation-tutorial.mdx Switches imports to Japanese Automations snippets.
ja/models/automations.mdx Switches imports to Japanese Automations snippets.
fr/models/automations/tutorial.mdx Switches imports to French Automations snippets.
fr/models/automations/registry-automation-tutorial.mdx Switches imports to French Automations snippets.
fr/models/automations/project-automation-tutorial.mdx Switches imports to French Automations snippets.
fr/models/automations.mdx Switches imports to French Automations snippets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread models/sweeps/troubleshoot-sweeps.mdx Outdated
Comment thread models/sweeps/useful-resources.mdx Outdated
Comment thread models/sweeps/local-controller.mdx Outdated
Comment thread models/sweeps/local-controller.mdx Outdated
Comment thread models/sweeps/sweep-config-keys.mdx Outdated
Comment thread models/sweeps/sweep-config-keys.mdx Outdated
Comment thread models/sweeps/sweep-config-keys.mdx
Comment thread models/sweeps/define-sweep-configuration.mdx
Comment thread models/sweeps/walkthrough.mdx Outdated
Apply all inline review feedback from @mdlinville on PR #2727:

- Apply suggested wording fixes (define-sweep-configuration examples intro,
  Bayes/Hyperband intro, initialize-sweeps warning, start-sweep-agents
  prerequisites and intro, pause-resume intro).
- Restructure the CLI tab in add-w-and-b-to-your-code into a numbered
  procedure with indented code blocks; same for the multi-CPU/multi-GPU
  steps in parallelize-agents (replace bold "Terminal 1/2" labels with
  list items).
- Fix terminology: "a W&B sweep" -> "a sweep" (W&B Sweeps is the product;
  a sweep is the artifact it manages).
- Remove redundant link-text phrasing ("For more information about how to
  X, see [X]") flagged as a recurring pattern.
- Convert relative links to absolute and drop trailing slashes from
  internal links (avoids Mintlify redirects).
- Reword the local-controller intro; move SDK install into a Prerequisites
  section.
- Drop the placeholder Note and the redundant "three nested parameters"
  count; reword the nested-config Warning.
- Remove the shadow-reference flag bullet list in pause-resume; the
  per-command sections and the CLI reference cover it.
- Strip trailing whitespace in define-sweep-configuration and add a blank
  line after a fenced block to fix diff rendering.
- Fix a broken cross-reference anchor to
  add-w-and-b-to-your-code#python-script-or-notebook.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Address Copilot review findings on PR #2727:

- troubleshoot-sweeps: fix Python guard `if _name_ == "_main_"` ->
  `if __name__ == "__main__"` (single underscores would fail if copied).
- define-sweep-configuration: fix template top-level key `parameter:` ->
  `parameters:` (the singular form produces an invalid sweep config).
- sweep-config-keys: fix `parameter` -> `parameters` key references, and
  correct "specify the distribution ... with the metric key" to point to
  the `parameters` key where distributions are actually defined.
- local-controller: the final step ran `wandb sweep [SWEEP-ID]` (re-inits
  the sweep) -> `wandb agent [SWEEP-ID]` to start an agent; reword the
  preceding sentence to start agents rather than "start a sweep".
- useful-resources: fix corrupted section header "selfm-anaged" ->
  "How-to guide".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@johndmulhausen johndmulhausen changed the title style: apply /style-guide pass to snippets/en style: apply /style-guide pass to models/sweeps and snippets Jun 5, 2026
johndmulhausen added a commit that referenced this pull request Jun 5, 2026
Apply all inline review feedback from @mdlinville on PR #2727:

- Apply suggested wording fixes (define-sweep-configuration examples intro,
  Bayes/Hyperband intro, initialize-sweeps warning, start-sweep-agents
  prerequisites and intro, pause-resume intro).
- Restructure the CLI tab in add-w-and-b-to-your-code into a numbered
  procedure with indented code blocks; same for the multi-CPU/multi-GPU
  steps in parallelize-agents (replace bold "Terminal 1/2" labels with
  list items).
- Fix terminology: "a W&B sweep" -> "a sweep" (W&B Sweeps is the product;
  a sweep is the artifact it manages).
- Remove redundant link-text phrasing ("For more information about how to
  X, see [X]") flagged as a recurring pattern.
- Convert relative links to absolute and drop trailing slashes from
  internal links (avoids Mintlify redirects).
- Reword the local-controller intro; move SDK install into a Prerequisites
  section.
- Drop the placeholder Note and the redundant "three nested parameters"
  count; reword the nested-config Warning.
- Remove the shadow-reference flag bullet list in pause-resume; the
  per-command sections and the CLI reference cover it.
- Strip trailing whitespace in define-sweep-configuration and add a blank
  line after a fenced block to fix diff rendering.
- Fix a broken cross-reference anchor to
  add-w-and-b-to-your-code#python-script-or-notebook.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
johndmulhausen added a commit that referenced this pull request Jun 5, 2026
Address Copilot review findings on PR #2727:

- troubleshoot-sweeps: fix Python guard `if _name_ == "_main_"` ->
  `if __name__ == "__main__"` (single underscores would fail if copied).
- define-sweep-configuration: fix template top-level key `parameter:` ->
  `parameters:` (the singular form produces an invalid sweep config).
- sweep-config-keys: fix `parameter` -> `parameters` key references, and
  correct "specify the distribution ... with the metric key" to point to
  the `parameters` key where distributions are actually defined.
- local-controller: the final step ran `wandb sweep [SWEEP-ID]` (re-inits
  the sweep) -> `wandb agent [SWEEP-ID]` to start an agent; reword the
  preceding sentence to start agents rather than "start a sweep".
- useful-resources: fix corrupted section header "selfm-anaged" ->
  "How-to guide".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The models/sweeps style-guide pass was duplicated here; it belongs in its
dedicated PR (#2722), which now carries the full sweeps changes plus all
review fixes from @mdlinville and Copilot. Restore the sweeps files to
their pre-PR state so this PR is scoped to the snippets/automations pass
(and @mdlinville's localized-snippet path fixes) only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@johndmulhausen johndmulhausen changed the title style: apply /style-guide pass to models/sweeps and snippets style: apply /style-guide pass to snippets/en Jun 5, 2026
@johndmulhausen johndmulhausen changed the title style: apply /style-guide pass to snippets/en fix: relocate Automations snippet includes and fix localized imports Jun 5, 2026
@johndmulhausen

johndmulhausen commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@mdlinville thanks for the partial review — and especially for pushing the localization fix, which predated this PR and would've bitten us.

The PR has changed shape since you looked, which makes your "want me to keep going?" easy to answer: I've re-scoped #2727 down to just the Automations snippet reorg + localization — relocating the shared includes to snippets/_includes/automations/, adding the fr/ja/ko variants, and repointing the localized pages to their own snippets instead of the English ones. Title and description are updated to match.

All the models/sweeps style work — plus every inline nit you left, which I applied — moved to #2722. One thing to flag: GitHub didn't carry the review threads across, so #2722 won't show your comments or my "applied" replies even though the fixes are all in. I double-checked they're there: your wording fixes, plus the Copilot correctness catches (the __name__/__main__ guard, parameterparameters, wandb agent vs wandb sweep, the selfm-anaged header, etc.).

So nothing left to chase on sweeps here. #2722 is the place for the sweeps re-review if you want to take another look there.

@johndmulhausen johndmulhausen merged commit cd44cf7 into main Jun 5, 2026
7 checks passed
@johndmulhausen johndmulhausen deleted the style-guide/snippets-en-20260604-115945 branch June 5, 2026 19:42
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.

3 participants