Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Wandb Weave Prerelease Dry Run

From Leeroopedia
Knowledge Sources
Domains Release_Engineering, Testing
Last Updated 2026-02-14 00:00 GMT

Overview

External tool documentation for the pre-release validation script provided by the Wandb Weave repository.

Description

The prerelease_dry_run.py script installs Weave from the git master branch, initializes a test project, creates and executes a traced function, and validates the recorded call data. It asserts that exactly one call is recorded with the correct inputs and output.

This is an External Tool Doc: it documents a standalone script, not a library API.

Usage

Run this script before starting the release process to validate that the current codebase produces a functional SDK.

Code Reference

Source Location

  • Repository: wandb/weave
  • File: scripts/prerelease_dry_run.py
  • Lines: L10-37

Signature

# PEP 723 script dependency: weave @ git+https://github.com/wandb/weave.git@master

@weave.op
def func(a: int) -> float:
    return a + uniq_id

def main() -> None:
    """Validate SDK call recording.
    - Generates unique ID from timestamp
    - Initializes weave client
    - Executes traced function
    - Asserts 1 call recorded with correct inputs/output
    """

CLI Usage

uv run scripts/prerelease_dry_run.py

I/O Contract

Inputs

Name Type Required Description
(none) Self-contained script, no arguments

Outputs

Name Type Description
stdout str "Dry run passed" on success
exit_code int 0 on success, non-zero on assertion failure

Usage Examples

Run Validation

uv run scripts/prerelease_dry_run.py
# Output: "Dry run passed"

Related Pages

Implements Principle

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment