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

Revert smapp changes #518

Closed
wants to merge 3 commits into from
Closed

Revert smapp changes #518

wants to merge 3 commits into from

Conversation

natewalck
Copy link
Member

This reverts the SMAppService changes until we can fully test all the edge cases and Apple perhaps makes SMAppService an actual functional way of managing LaunchAgents.

@natewalck natewalck requested a review from erikng October 6, 2023 11:47
@natewalck natewalck changed the base branch from main to development October 6, 2023 11:47
@natewalck
Copy link
Member Author

I can't seem to re-break my machine to test, if someone doesn't mind doing the tests we did before in a VM, that would be super helpful.

https://github.com/macadmins/nudge/releases/tag/v1.1.13.81506

I think we have 3 cases to test:

  1. Fresh Machine
  2. Machine with 1.1.11 => 1.1.13
  3. Machine that did 1.1.11 => 1.1.12 and is in a bad state (BTM error is present in log)
    • Update to the new build, see if it loads or still throws BTM errors

@erikng
Copy link
Member

erikng commented Oct 6, 2023

I wonder if there is a way to just return the code vs deleting it. I still don't understand why Apple is using this logic automatically when it's not supposed to trigger unless explicitly set

@natewalck
Copy link
Member Author

What would the advantage of returning the code be vs removing it for now? It would be trivial to add back later.

@erikng
Copy link
Member

erikng commented Oct 6, 2023

I more so just don't understand the behavior that's happening.

@natewalck
Copy link
Member Author

Perhaps the course of action could be:

  1. Test this revert build on a machine in a bad state. If it doesn't fix it, then we may as well cut the fixed 1.1.13 with a note about this edge case with the specific 1.1.12 version.

  2. If it does work, let's do this revert and spend more time on SMAppService. I'm pretty convinced there are bugs on Apple's side here besides the Label thing, which doesn't make me super comfortable given they like making changes to the SMAppService functionality with zero notice.

At the end of the day, if this doesn't fix the issue with the SMAppService bug, then we shouldn't bother reverting at all.

@kevinmcox
Copy link
Contributor

kevinmcox commented Oct 6, 2023

In my first test going 1.1.11 --> 1.1.12 --> 1.1.13.81506 (gutted SMAS), it doesn’t fix the problem. The legacy LA still refuses to load. Even after reboots and even opening Nudge manually.

So it looks like going with either of the two 1.1.13 pre-releases (updated SMAS or gutted SMAS) will still require admins to take some manual action to remediate. (Since it sounds like us deciding to do it for them by running sfltool resetbtm isn’t a good option due to side effects.)

So admins who have already deployed 1.1.12 and are experiencing this problem will have to handle running sfltool resetbtm, with side effects, on their own; or as JC mentioned yesterday, fully uninstall Nudge 1.1.12, agents, etc. then reinstall 1.1.13 plus agents.

@natewalck
Copy link
Member Author

Given this doesn't actually fix anything and would perhaps make it even more confusing adding/removing the pref, Let's kill this PR.

@natewalck natewalck closed this Oct 6, 2023
@erikng erikng deleted the revert-smapp-changes branch October 10, 2023 15:15
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.

3 participants