| file_type | documentation |
|---|---|
| title | Release Workflow FAQ |
| description | Frequently asked questions about the agentic release workflow |
| version | v1.0 |
| last_updated | 2026-08-22 |
| status | active |
| stability | stable |
Frequently asked questions from the Release Engineering team.
A: Three types by semantic versioning:
- Patch (v1.0.0 → v1.0.1): Bug fixes, security patches, performance improvements. Auto-approved. 5–10 min.
- Minor (v1.0.0 → v1.1.0): New features, backwards-compatible. Requires 1 maintainer approval. 10–30 min.
- Major (v1.0.0 → v2.0.0): Breaking changes, API removals. Requires 2 maintainers + ADR. 30–120 min.
Use the Scope Determination Flowchart:
Any breaking changes?
├─ YES → Major (v2.0.0)
└─ NO: Any new features?
├─ YES → Minor (v1.1.0)
└─ NO: Bug fixes/patches only → Patch (v1.0.1)
A: Look at git history and CHANGELOG:
# See what's changed since last release
git log v1.0.0..develop --oneline | head -20
# Check CHANGELOG [Unreleased] entries
grep -A 30 "## \[Unreleased\]" CHANGELOG.mdDecision logic:
- Count "Added" entries → new features exist → Minor (or Major if breaking)
- Count "Fixed" entries only → Patch
- Anything marked "BREAKING" or
⚠️ → Major - No changelog entries → Do not release yet; add entries first
A: You need GitHub authorization, but you can trigger via CLI:
# Check if authorized
gh auth status
# Authorize if needed
gh auth login
# Trigger release workflow via CLI
gh workflow run release.yml -f scope=patch -f dry_run=trueYou don't need to use the GitHub web UI for anything; CLI works end-to-end.
A: Depends on scope:
| Scope | Time | Why |
|---|---|---|
| Patch | 5–10 min | Fully automated, no human approval |
| Minor | 10–30 min | 1 maintainer reviews PR (~15 min review time) |
| Major | 30–120 min | 2 maintainers + ADR verification (~1 hour common) |
Add time if approvers are unavailable.
A: The workflow is paused, waiting for a human to approve the release:
For Patch: Should NOT happen (auto-approved). If stuck, escalate.
For Minor/Major: Expected behavior.
- Minor: 1 maintainer should review PR #2 and click "Approve"
- Major: 2 maintainers should approve PR #2
To unblock:
- Check PR #2 status
- If approvers haven't reviewed, send reminder
- Ensure they clicked official "Approve" button (not just a comment)
- Wait 1–5 minutes for workflow to detect approval
See RELEASE_TROUBLESHOOTING.md for diagnostics.
A: Dry-run shows:
- All safety gates will pass ✅
- Correct version will be released
- Changelog looks right
- No unexpected failures
Risks from skipping dry-run:
- ❌ Live release fails partway through
- ❌ Wrong version released
- ❌ Manual cleanup needed
Always do dry-run first. It's free and fast (1–2 min).
A: Stop and fix it before live release.
Example failure and fix:
❌ GATE 1: Pre-flight Checks Failed
Reason: CHANGELOG.md missing [Unreleased] section
Fix:
1. Edit CHANGELOG.md
2. Add "## [Unreleased]" at top
3. git commit -am "chore: Add unreleased section"
4. git push origin develop
5. Re-run dry-run
Each gate failure message tells you exactly what to fix.
A: No. Releases must come from:
developbranch for patch/minormainbranch for hotfixes
The workflow creates a release/vX.Y.Z branch from develop, then merges back to both develop and main.
You don't commit directly to release branches; the workflow creates them.
A: Plan accordingly:
Patch releases: No approval needed, can release anytime (5–10 min).
Minor releases: Schedule ~30 minutes before your approver goes offline:
Today 2:00 PM (Patch Release)
→ Trigger workflow
→ Wait ~5 min for Phase 1
→ Approver reviews PR #2 (next 15 min)
→ Release completes (5 min)
→ Total: 25 min, all within business hours
Major releases: Plan with all 2 approvers available for 1–2 hours.
A: Depends on phase:
Phase 1 (version bump): Hard to cancel; easier to fix issues and retry.
Phase 2 (safety gates): Can usually stop before it reaches main:
- Go to Actions tab
- Click running workflow
- Click "Cancel workflow" (if available)
- Wait for cancellation (~1 min)
After PR #2 merges to main: Cannot cancel; it's published. Use rollback procedure instead.
Prevention: Always use dry-run first to catch issues.
A: Contact the Release Engineering Lead:
# Check if you're in the team
gh api /orgs/lightspeedwp/teams/maintainers/members/$(git config user.name)
# If not, ask Release Lead to add you
# They'll use: gh api /orgs/lightspeedwp/teams/maintainers/memberships/{username}Team membership is required for authorization (GATE 5).
A: The "Approve" button is official; comments are not.
Best practice: Use GitHub's "Review changes" → "Approve" button.
❌ Don't just comment: "LGTM"
❌ Don't just add label: "approved"
✅ Do click: "Review changes" → "Approve"
The workflow checks for official PR approval status, not comments.
A: No. Approval must come from official @lightspeedwp/maintainers team members.
If you need approval authority, contact Release Lead to add you to the team.
A: ADR (Architecture Decision Record) is required for any major release.
Every major release has breaking changes (by definition). Each major change should be documented with an ADR explaining:
- What changed?
- Why did we change it?
- How do users migrate?
- What are the consequences?
Example: "ADR-42: Require PHP 8.0 Minimum"
See RELEASE_RUNBOOK_MAJOR.md for format.
A: No. ADR must be "Accepted" before major release.
❌ ADR Status: Draft → Cannot release
✅ ADR Status: Accepted → Can release
Acceptance means leadership has reviewed and approved the breaking change.
A: Create the ADR early:
- Write ADR when decision is made
- Get accepted before merging breaking changes to develop
- Announce to team (breaking changes impact everyone)
- Plan major release when ready
- Release with ADR reference
This prevents surprise breaking changes and gives users notice.
A: To keep main and develop synchronized:
Develop: [A] → [B] → [C] (Release v1.0.1)
Main: [A] → [B] → [Release commit]
↓
Post-release sync branch: main → develop
Develop: [A] → [B] → [C] → [Merge commit from main]
Main: [A] → [B] → [Release commit]
(both now have same tag v1.0.1)
This ensures both branches stay in sync and future releases can build on released code.
A: Very rare (should not happen with clean releases).
If conflicts occur:
- Workflow will fail and create a PR
- Someone needs to manually resolve conflicts
- Merge the PR to complete sync
Prevention: Keep develop and main close to each other; don't let them diverge.
A: Check immediately after workflow completes:
# Check GitHub Release
gh release view v1.0.1 --repo lightspeedwp/.github
# Check git tag
git fetch origin && git tag | grep v1.0.1
# Check VERSION on main
git checkout main && git pull && cat VERSIONIf any step fails, the release had issues. Check workflow logs.
A: No. If the workflow fails to publish, something is wrong.
Never manually publish; instead:
- Stop the failed workflow
- Diagnose the issue (check logs)
- Fix the root cause
- Retry the live release
Manual publishing bypasses safety gates and risks data consistency.
A: Use the emergency rollback procedure within 1 hour:
# 1. Delete GitHub Release
# (Go to Releases page manually)
# 2. Delete git tag
git push origin --delete v1.0.1
git tag -d v1.0.1
# 3. Revert PR #2 commit on main
git revert -m 1 <merge-commit-sha>
git push origin main
# 4. Fix the issue
# (Create separate branch, merge to develop)
# 5. Re-release as new version (v1.0.2)See RELEASE_TROUBLESHOOTING.md for full procedure.
A: You can still fix it, but it's more complex:
- Create fix branch from develop
- Merge fix to develop
- Release as new patch (don't re-release same version)
Example:
- v1.0.1 released (bad)
- Rolled back within 1 hour ✅
- Fix applied to develop
- Release v1.0.2 (new version)
Never try to re-release v1.0.1; git tags are immutable.
A: Unlikely, but possible in rare cases.
Safety mechanisms:
- Safety gates check everything before mutations
- If gates pass, remaining steps almost never fail
- Post-release sync has retry logic
If workflow fails midway:
- Check workflow logs for error message
- Diagnose using RELEASE_TROUBLESHOOTING.md
- Escalate to Release Lead if unable to fix
- May need manual remediation (rare)
A: As often as needed:
- Patch: Any time (bug fixes released immediately)
- Minor: As features are ready
- Major: Planned and announced
No rate limits; workflow can run multiple times per day if needed.
A: Avoid it. Recommendation: One release at a time.
Running parallel releases risks:
- Version conflicts (both trying to bump to same version)
- Tag collisions
- Merge conflicts on main/develop
Best practice: Complete one release fully before starting the next.
A: Depends on when the push happens:
Before PR #2 merges to main:
- The pushed changes won't be in the release
- They'll be released in the next version
After PR #2 merges to main:
- Changes are now on main
- They're part of the release (but not tagged)
- Next release should pick them up
Prevention: Communicate release timing; avoid pushing during active release.
A: Follow this order:
- Read RELEASE_TEAM_TRAINING.md — Module 1
- Watch video walkthrough (if available)
- Read RELEASE_RUNBOOK_PATCH.md
- Execute a test patch release on test repository
- Get certified by Release Lead
- Execute real releases under supervision first
A: Yes! Use the test repository:
# Clone test repo
git clone https://github.com/lightspeedwp/test-releases.git
# Practice releases there
# No impact on production; good for learningPerfect for hands-on training before real releases.
A: In order:
- Check documentation: Runbooks and troubleshooting guides
- Check video: Video walkthrough may cover your scenario
- Search FAQ: This document might have your question
- Ask team: Slack/chat channel for Release Engineering
- Escalate: Create GitHub issue for Release Lead
A: Annually at minimum; more often if workflow changes:
- Before each release: Skim the relevant runbook
- Annually: Full review of all materials (Q4 refresh)
- After major workflow changes: All materials reviewed and updated
Documentation is kept current; trust it.
Not found here? Check:
- RELEASE_RUNBOOK_PATCH.md — Patch release details
- RELEASE_RUNBOOK_MINOR.md — Minor release details
- RELEASE_RUNBOOK_MAJOR.md — Major release details
- RELEASE_TROUBLESHOOTING.md — Problem diagnosis
- RELEASE_PROCESS.md — Architecture overview
Still stuck? Create an issue or ask Release Lead.
FAQ Version: v1.0
Last Updated: 2026-08-22
Maintained By: Release Engineering Team