Repository navigation
CI: install and uninstall a real installer on Linux, macOS and Windows - #71
Merged
Merged
Conversation
New workflow installer_roundtrip.yml (template PRs that change what an installer is made of, and by hand), on Linux, macOS and Windows: - tests/smoke/make_demo_app.py makes a demo app from the live template (placeholders filled in as the setup form does, images drawn, a package with a tools module) and runs the release scripts as the release does; the installer is built with the release's constructor scripts. - tests/smoke/installer_roundtrip.py installs it silently and checks the post-install log, the tools registry entry and, on Windows, a single Installed apps entry with the app's name, publisher and version. It then uninstalls silently and checks that the folder, the registry entry and the Installed apps entry are gone, and that another app's registry entry is kept. - On Windows a second round trip keeps a Python of the app running during the uninstall and prints what stays of the folder (diagnosis of files left after an uninstall). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9AoUT3RtgWWsiVVarX
…yaml, as an app has construct.yaml bundles notebooks/notebook_latest_versions.yaml, which an app gets from update_on_notebook_change.yml; constructor failed without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9AoUT3RtgWWsiVVarX
…install.bat logs no 'Tools registered' line) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9AoUT3RtgWWsiVVarX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a CI test of the whole installer: it builds a real installer, installs it silently, checks the install, uninstalls it silently and checks what is left. It runs on Linux, macOS and Windows.
Both Windows bugs from the CAREamics 0.0.5 tests surfaced only on testers' computers: a dead "(Python …)" entry in Installed apps, and files left after an uninstall. This test catches that kind of bug before a release.
How
tests/smoke/make_demo_app.pymakes a small demo app ("Demo App") from the live template:demoapp_lc_toolstools module.release_constructor.ymldoes:bump_version.py,bump_constructor.py,bump_Welcome_notebook.pyandcheck_placeholders.py.create_constructor_environment.shandbuild_installer_with_constructor.sh.tests/smoke/installer_roundtrip.py:.exe /S /InstallationType=JustMeon Windows and.sh -b -pon Linux and macOS. It checks that:Uninstall-Demo_App.exe /Son Windows and the bundleduninstall.shelsewhere. On Windows the uninstaller hands over to a copy of itself in %TEMP%, so the script waits until it is done. It checks that:--busy(Windows, diagnosis): a Python of the app runs during the uninstall, as a Jupyter server or a Fiji/napari tool worker may. The script prints what stays of the folder. Only the Installed apps and registry checks fail the run. This should show the leftover-files bug the testers reported..github/workflows/installer_roundtrip.ymlruns on pull requests that changeapp/**,construct.yaml,environment.yaml,setup.py,requirements*.txt,.tools/{bash,python,templates}/**,tests/smoke/**or the release workflow, and by hand. The logs are uploaded as an artifact. Liketests.yml, it runs only in this repository, not in apps.This branch starts from
main, so the installer uses Tools pin v0.3.0-alpha.5. #70 moves the pin.Checklist
installer_roundtrip.yml) and its log artifact. No user-facing name changes.Generated by Claude Code