Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(release): bound gh-v release notes by release tags only (#2461)

Call Whiteaea842a23acb
diff --git a/.github/workflows/release_ai.yml b/.github/workflows/release_ai.yml
index bfe1ff0cb..8b4667ead 100644
--- a/.github/workflows/release_ai.yml
+++ b/.github/workflows/release_ai.yml
@@ -353,7 +353,9 @@ jobs:
git tag -l '*v*' --sort=v:refname | tail -n 50 >&2
exit 1
fi
- PREV=$(git describe --tags --abbrev=0 "${TAG}^" 2>/dev/null || true)
+ # Only release tags can bound the notes. Runtime asset tags such as
+ # model-hub-engine-v* and git-runtime-v* sit on master history too.
+ PREV=$(git describe --tags --abbrev=0 --match 'gh-v*' --match 'v[0-9]*' "${TAG}^" 2>/dev/null || true)
echo "prev=$PREV" >> "$GITHUB_OUTPUT"
exit 0
fi
diff --git a/tests/test_desktop_release.py b/tests/test_desktop_release.py
index d8091954c..e7acf3aa0 100644
--- a/tests/test_desktop_release.py
+++ b/tests/test_desktop_release.py
@@ -710,3 +710,26 @@ def test_workflow_shell_syntax():
command = re.sub(r"\$\{\{.*?\}\}", "fixture", item["run"])
result = subprocess.run(["bash", "-n"], input=command, text=True, capture_output=True)
assert result.returncode == 0, (file, item.get("name"), result.stderr)
+
+
[email protected]("previous", ["v3.0.5", "gh-v3.0.6rc1"])
+def test_release_notes_start_at_the_previous_release_not_a_runtime_tag(tmp_path, previous):
+ def commit(*tags):
+ git(tmp_path, "-c", "user.name=Test", "-c", "[email protected]",
+ "commit", "--allow-empty", "-qm", "fixture")
+ for tag in tags:
+ git(tmp_path, "tag", tag)
+
+ git(tmp_path, "init", "-q")
+ commit(previous)
+ # Runtime asset tags and retired prerelease schemes are not release tags.
+ commit("git-runtime-v2.55.0-1", "staging-20260319-24b5356")
+ commit("model-hub-engine-v7.2.149-1", "pre-v3.0.6-rc1")
+ commit("gh-v3.0.6rc2")
+ command = step("Compute previous tag", job="release", file="release_ai.yml")["run"].replace(
+ "${{ steps.tag.outputs.tag }}", "gh-v3.0.6rc2")
+ output = tmp_path / "github_output"
+ result = subprocess.run(["bash", "-e", "-c", command], cwd=tmp_path, capture_output=True, text=True,
+ env={**os.environ, "GITHUB_OUTPUT": str(output)}, timeout=10)
+ assert result.returncode == 0, result.stderr
+ assert output.read_text().splitlines() == [f"prev={previous}"]