Repository navigation
Run a baseline for every new build, retry interrupted ones at once, and lock down the data directory - #58
Merged
Conversation
…nd lock down the data directory Throttle: a baseline is exempt from BaselineMinIntervalHours whenever the running BootstrapMate has not completed one and has not yet tried. Once the new build has tried and failed, the 24-hour retry rule applies to it, so a failing build cannot loop. An interrupted baseline runs again at the next trigger; only failed and partial_failure wait. Retries come only from the normal triggers: BootstrapMate never relaunches itself. baseline.json gains tool_version (last completed) and attempt_version (last tried). Data directory: C:\ProgramData\ManagedBootstrap inherited ProgramData's ACL, which lets any user create files and folders in it. The MSI now gives it its own ACL (owner SYSTEM; SYSTEM and Administrators full control; Users read), and before each run the CLI resets the same ACL, removes links, and removes anything a non-administrator owns. Logs written by an elevated administrator are kept and re-owned rather than removed.
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.
Throttle
BaselineMinIntervalHourswhile the running BootstrapMate has neither completed one nor tried one. A new build always gets a baseline. Once it has tried and failed, the 24-hour retry applies, so a failing build cannot loop.interruptedbaseline runs again at the next trigger. Onlyfailedandpartial_failurewait 24 hours.baseline.jsongainstool_version(the version that last completed a baseline) andattempt_version(the version that last tried one).Data directory permissions
C:\ProgramData\ManagedBootstrapinherited ProgramData's default ACL, which lets standard users create files and folders in it. The SYSTEM run reads from that folder.PermissionEx: owner SYSTEM, SYSTEM and Administrators full control, Users read.Tested on a test PC (signed MSIs)
cache.dotnet test: 97 pass.