Repository navigation
tests: the auto-updater is tested end to end - #1221
Open
MichaelBelousov wants to merge 1 commit into
Open
MichaelBelousov wants to merge 1 commit into
MichaelBelousov wants to merge 1 commit into
Conversation
`zig build test-autoupdate` packages the app as 1.0.0 and 1.0.1 (`zig build package` of the same
build file, each into a prefix of its own), then `tests/autoupdate.zig` serves a feed over HTTP on
an ephemeral port and runs the 1.0.0 AppImage (`APPIMAGE_EXTRACT_AND_RUN=1`, its own profile,
`FIZZY_QUIET`) three times: against a feed nobody answers (the check fails, the AppImage is left
alone), an empty feed (nothing to install), and 1.0.1's, where it installs the update and Velopack
replaces the AppImage, which must then log that it is 1.0.1. Linux only, not part of `zig build
test`. An app built on fizzy gets the same step with `fizzy.addAutoUpdateTestStep`.
Nothing installed an update without a person's click, so the test asks for it through the control
server with a new internal command, `fizzy.update.install`, which does what the update toast's
Relaunch to update does (`kickInstall`, then the usual restart into the download) and fails when
the launch check found nothing. The launch check now logs what it found ("fizzy autoupdate: update
available: X", "remote feed empty", "no update available", "check failed: why"), and the apply at
exit says it is applying; the test reads those lines. `packageall`'s forwarding of the command
line moves into `package.commandLineOptions`, which the new step shares.
Contributor
Author
|
I have set a local agent to fix CI failures, will see how it goes |
This branch was successfully deployed
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.
zig build test-autoupdatepackages the app as 1.0.0 and 1.0.1 (zig build packageof the same build file, each into a prefix of its own), thentests/autoupdate.zigserves a feed over HTTP on an ephemeral port and runs the 1.0.0 AppImage (APPIMAGE_EXTRACT_AND_RUN=1, its own profile,FIZZY_QUIET) three times: against a feed nobody answers (the check fails, the AppImage is left alone), an empty feed (nothing to install), and 1.0.1's, where it installs the update and Velopack replaces the AppImage, which must then log that it is 1.0.1. Linux only, not part ofzig build test. An app built on fizzy gets the same step withfizzy.addAutoUpdateTestStep.Nothing installed an update without a person's click, so the test asks for it through the control server with a new internal command,
fizzy.update.install, which does what the update toast's Relaunch to update does (kickInstall, then the usual restart into the download) and fails when the launch check found nothing. The launch check now logs what it found ("fizzy autoupdate: update available: X", "remote feed empty", "no update available", "check failed: why"), and the apply at exit says it is applying; the test reads those lines.packageall's forwarding of the command line moves intopackage.commandLineOptions, which the new step shares.