Skip to content

feat(release-helper): support harness-sdk monorepo structure#70

Open
agent-of-mkmeral wants to merge 1 commit into
strands-agents:mainfrom
agent-of-mkmeral:update-release-helper-monorepo
Open

feat(release-helper): support harness-sdk monorepo structure#70
agent-of-mkmeral wants to merge 1 commit into
strands-agents:mainfrom
agent-of-mkmeral:update-release-helper-monorepo

Conversation

@agent-of-mkmeral

Copy link
Copy Markdown
Contributor

Summary

The SDK packages (Python, TypeScript, Python-WASM) now live as packages inside the strands-agents/harness-sdk monorepo instead of the standalone sdk-python / sdk-typescript repos (now archived). This updates scripts/strands_release_helper.py to handle the new layout.

What changed

  • Per-package config fields: repo (shared local checkout dir), subdir (package path within the repo), and tag_prefix (e.g. python/, typescript/, python-wasm/).
  • Single clone per repo: the three monorepo packages now share one harness-sdk checkout instead of cloning it three times.
  • Prefix-scoped tag lookup: get_latest_tag() takes a tag_prefix so the Python release uses python/v* tags and doesn't accidentally pick up typescript/v* (or the legacy bare v*) tags.
  • Subdir-scoped changelogs: git log is scoped to each package's subdir, so a Python-only change doesn't pollute the TypeScript changelog and vice-versa.
  • Subdir-scoped tests: each package's tests run from its own subdirectory.
  • Tag-ready new versions: the computed new version keeps its prefix (e.g. python/v1.44.0) so it's a ready-to-use tag; the changelog header still shows the bare vX.Y.Z.
  • CLI: --repos renamed to --packages (with --repos kept as a backward-compatible alias) and a new --list flag prints the package → repo/subdir/tag-prefix mapping.

Package mapping

Package Repo Subdir Tag prefix
python harness-sdk strands-py/ python/
typescript harness-sdk strands-ts/ typescript/
python-wasm harness-sdk strands-py-wasm/ python-wasm/
tools tools (root) bare v*
agent-sop agent-sop (root) bare v*
evals evals (root) bare v*
mcp-server mcp-server (root) bare v*

sdk-python, sdk-typescript, agent-builder and docs were removed from the config since they were folded into the monorepo and archived. Standalone repos keep their previous behavior (empty subdir/tag_prefix).

Verification

Validated against a live clone of harness-sdk (not just unit logic):

Package Current New Bump Commits
python python/v1.43.0 python/v1.44.0 MINOR 26
typescript typescript/v1.5.0 typescript/v1.6.0 MINOR 15
python-wasm python-wasm/v0.0.1 python-wasm/v0.0.2 PATCH 4

Commit lists were confirmed to be correctly scoped per subdirectory, and release_params.txt / release_report.md generation works end-to-end.

Resolves agent-of-mkmeral/strands-coder-private#300

🤖 Generated with the Strands autonomous GitHub agent.

The SDK packages (Python, TypeScript, Python-WASM) now live as packages
inside the strands-agents/harness-sdk monorepo instead of standalone
sdk-python / sdk-typescript repos (now archived). Update the release
helper to handle the new layout:

- Add per-package config fields: repo (shared local checkout), subdir
  (package path within the repo), and tag_prefix (e.g. python/, typescript/,
  python-wasm/).
- Clone each git repo only once; monorepo packages share one checkout.
- Scope the latest-tag lookup to each package's tag prefix so the Python
  release doesn't pick up TypeScript tags (and vice versa).
- Scope 'git log' to each package's subdir so a Python change doesn't
  pollute the TypeScript changelog.
- Run each package's tests from its subdirectory.
- Re-apply the tag prefix to the computed new version so the result is a
  ready-to-use tag (e.g. python/v1.44.0); changelog still shows bare vX.Y.Z.
- Rename --repos to --packages (with --repos kept as an alias) and add a
  --list flag to show the package -> repo/subdir/tag-prefix mapping.

Standalone repos (tools, agent-sop, evals, mcp-server) are unchanged:
empty subdir/tag_prefix preserves the previous behavior. sdk-python,
sdk-typescript, agent-builder and docs are removed since they were folded
into the monorepo and archived.

Verified against a live clone of harness-sdk: correct prefixed tags,
subdir-scoped commit lists, and version bumps for all three packages.
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.

1 participant