Repository navigation
Throttle baseline runs, record interrupted runs, and put the hour in the MSI version - #56
Merged
Merged
Conversation
…the MSI version Baseline throttle, applied only after the preflight chooses baseline so provisioning is never limited. baseline.json keeps the last baseline's end time, status and consecutive failures (last-run.json cannot hold the clock: every run rewrites it). A completed baseline younger than BaselineMinIntervalHours (default 144, policy and settings registry) skips; a failed, partial or interrupted one gets one retry after 24 hours, then the full interval. The .bootstrap_force file is exempt; the preflight consumes it. A provisioning run clears the record. A baseline also skips an item before downloading it when the manifest hash is in the install ledger. A run that finds last-run.json still at "running" holds the single-instance lock, so that run is dead: it is recorded as "interrupted" in its session.json, and an interrupted baseline counts as a failure for the throttle. Reproduced on a test PC: a MajorUpgrade's Restart Manager shuts down a running bootstrap; the next run recorded it interrupted and waited. The MSI ProductVersion is YY.M.DDHH.MM, derived in the wixproj from -p:FullVersion=YYYY.MM.DD.HHMM, so two builds on the same day upgrade each other. Everything else, HKLM\SOFTWARE\BootstrapMate\Version included, keeps the full stamp.
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.
Baseline throttle (matches the Mac's #39/#40)
Interrupted runs
MSI version
Tested on a test PC (signed)