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): append desktop resolver outputs instead of replacing them (#2223)

Max99a15c033823
diff --git a/scripts/desktop_release.py b/scripts/desktop_release.py
index a503ee885..10f1c49ce 100644
--- a/scripts/desktop_release.py
+++ b/scripts/desktop_release.py
@@ -249,8 +249,10 @@ def main() -> None:
args = vars(parser.parse_args())
command = args.pop("command")
if command == "resolve":
- args["output"].write_text("".join(f"{key}={value}\n" for key, value in resolve(args["tag"]).items()),
- encoding="utf-8")
+ # $GITHUB_OUTPUT is shared by the whole step: append, never replace
+ # outputs the step already wrote (enabled/updater_enabled).
+ with args["output"].open("a", encoding="utf-8") as stream:
+ stream.write("".join(f"{key}={value}\n" for key, value in resolve(args["tag"]).items()))
elif command == "prepare":
prepare(**args)
elif command == "record":
diff --git a/tests/test_desktop_updater.py b/tests/test_desktop_updater.py
index 662cd4f59..7e52e5c60 100644
--- a/tests/test_desktop_updater.py
+++ b/tests/test_desktop_updater.py
@@ -76,6 +76,22 @@ def test_real_workflow_channel_resolution(tmp_path, tag, test, stable, enabled,
}
+def test_resolver_appends_to_the_step_output_it_shares(tmp_path, monkeypatch):
+ # rc21 shipped without desktop packages: the resolver replaced the step's
+ # enabled/updater_enabled outputs, so the package job read enabled=''.
+ source = 'a' * 40
+ monkeypatch.setattr(desktop_release, 'git_output', lambda *_: source)
+ output = tmp_path / 'output'
+ output.write_text('enabled=true\nupdater_enabled=false\n', encoding='utf-8')
+ monkeypatch.setattr('sys.argv', ['desktop_release.py', 'resolve', '--tag', 'gh-v3.1.2rc15',
+ '--output', str(output)])
+ desktop_release.main()
+ assert dict(line.split('=', 1) for line in output.read_text().splitlines()) == {
+ 'enabled': 'true', 'updater_enabled': 'false', 'tag': 'gh-v3.1.2rc15',
+ 'source_sha': source, 'version': '3.1.2-rc.15', 'package_version': '3.1.2rc15',
+ }
+
+
def test_release_cannot_publish_before_all_targets_and_signed_verification():
jobs = workflow('release_ai.yml')
assert 'desktop-packages' in jobs['release']['needs']