Skip to content

Harden release skill guidance - #555

Closed
Yuge Zhang (ultmaster) wants to merge 1 commit into
microsoft:mainfrom
ultmaster:chore/harden-release-skill
Closed

Harden release skill guidance#555
Yuge Zhang (ultmaster) wants to merge 1 commit into
microsoft:mainfrom
ultmaster:chore/harden-release-skill

Conversation

@ultmaster

Copy link
Copy Markdown
Contributor

Summary

  • warn that failed uv version bumps can leave partial version state
  • correct the CI test-set and runtime-version explanations
  • make merge selection and tag-workflow lookup deterministic and noninteractive

Verification

  • skill-creator quick_validate.py
  • skills-ref 0.1.1 agentskills validate
  • git diff --check

Copilot AI lite review requested due to automatic review settings August 22, 2026 02:36

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 hardens the release skill documentation to make the Agent Lightning stable-release process more deterministic and less error-prone, especially around version bump failure modes and GitHub Actions run selection.

Changes:

  • Adds guidance about partial/failed version bumps and the need to reconcile version state before retrying.
  • Clarifies the relationship between tests.yml and pypi-release.yml test/build coverage and explains how runtime version checks are performed in CI.
  • Makes PR merge and tag-triggered workflow run lookup more deterministic (explicit merge method + head commit matching; workflow+tag filtering for gh run list).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

- `agentlightning/__init__.py`
4. Confirm the canonical default branch is already green before branching from
it. A release branch inherits every failure that main is carrying.
it. Resolve its current commit with `gh api repos/OWNER/REPO/commits/BRANCH`
Comment on lines +59 to +63
The bump updates `pyproject.toml` before uv finishes resolving and writing the
lockfile. If resolution or network access fails, the command can exit after a
partial bump. Inspect `git diff` after any failure and restore or reconcile all
three version files before retrying; blindly rerunning a partial patch bump can
advance the version twice.
Comment on lines +104 to +111
resolve the reviewed head with
`gh pr view <pr> --repo OWNER/REPO --json headRefOid` and pass both an explicit
permitted method and `--match-head-commit` to `gh pr merge`. The canonical
repository currently permits only squash merges, for example:

```bash
gh pr merge <pr> --repo OWNER/REPO --squash --match-head-commit <head-sha>
```
@ultmaster

Copy link
Copy Markdown
Contributor Author

Superseded by #552, which now contains this release-skill commit together with the skills README rewrite.

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.

2 participants