Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only cleanup runner local files on success #1384

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

thboop
Copy link
Collaborator

@thboop thboop commented Sep 28, 2021

Validated the happy path deletes the runner, and manually canceling runner execution leaves the file so a user can later clean those up.

Resolves #1370

@thboop thboop requested review from pje and TingluoHuang September 28, 2021 13:35
@thboop thboop requested a review from a team as a code owner September 28, 2021 13:35
@thboop thboop merged commit afe7066 into main Sep 28, 2021
@thboop thboop deleted the thboop/EphemeralCleanupOnSuccess branch September 28, 2021 22:55
fhammerl added a commit that referenced this pull request Sep 30, 2021
* Update telemetry (#1355)

* Track "pause-logging"

* Bump release version

* Don't retry 422 (#1352)

* Update the comment about the `--once` in Constants.cs (#1360)

* Update Constants.cs

* feedback.

* Update src/Runner.Listener/Runner.cs

Co-authored-by: Thomas Boop <[email protected]>

Co-authored-by: Thomas Boop <[email protected]>

* Fix unconfiguring of runner after group changes (#1359)

* Ignore agentpool when unconfiguring the runner

Runner names and IDs are unique within a ServiceHost
They don't need to be included when unconfiguring the runner.

* Use -1 instead of 0 to highlight how it is ignored

* Use overloads and 0 instead of -1

Using 0 seems to be the convention

* Fix typo calling the wrong method

* only cleanup runner local files on success (#1384)

* Stop-Commands: stopToken restrictions (#1371)

* Prevent stopTokens that are workflow commands

Co-authored-by: Thomas Boop <[email protected]>

* Check context for env var too

* Accept true, 1 and $true instead of just "true"

* Setup ExpressionValues in tests

* Update src/Runner.Common/Constants.cs

Co-authored-by: Thomas Boop <[email protected]>

* Separate success and fail tests for invalid token

* Fix envcontext for tests

Co-authored-by: Thomas Boop <[email protected]>

* Handle keeping previous OSX versions more smoothly on Mac (#1381)

* Handle macOS upgrade smoothly

* cleanup

* misc cleanup

* final updates

* Update src/Misc/layoutbin/update.sh.template

Co-authored-by: Patrick Ellis <[email protected]>

* Update src/Misc/layoutbin/update.sh.template

Co-authored-by: Patrick Ellis <[email protected]>

* Upload telemetry and default to old method as needed

* minor fix

* add one more bit of logging

* some more telemetry

* quote variables to handle spaces

* tiny fix for ubuntu

* remove version and move telemetry to diag

* use full path

Co-authored-by: Patrick Ellis <[email protected]>

* Runner 2.283.2 Release (#1389)

Co-authored-by: Thomas Boop <[email protected]>
Co-authored-by: Tingluo Huang <[email protected]>
Co-authored-by: Patrick Ellis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ephemeral runner does not deregister remotely if interrupted, but does clean up local state
4 participants