-
Notifications
You must be signed in to change notification settings - Fork 467
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
FMA: Installing macOS app bundles when they're already installed breaks the app #24148
Comments
@PezHub just checking, as part of testing for Fleet-maintained apps, do we test installing the apps on workstations that already have the apps installed? cc @georgekarrv |
I did (Column H) but tbh I did not test installing over existing apps if they were already open, I simply looked to see that the FMA was in the Applications folder once it completed. I did test that behavior (if app was open) for uninstalls tho (Column J). It would be nice to have the install check for existing version and include the logic to quit if open |
Additional QA Notes:
So adding additional logic to check for existing installs and take action if present (similar to what Keeny mentioned above) makes sense |
@PezHub instead of adding additional logic to check, can we tweak the install script (see how Kenny did in recording here), to work w/o breaking the app in both of the above cases? Just realized this wasn't on the release board. I moved it there. FYI @georgekarrv |
@noahtalerman I'm not clear on if this is an unreleased bug or released bug. Would you please update? Thanks! |
However, if the FMA's have already been installed and launched/configured by the user, the following apps will break upon re-install so will need the install script tweaked (or a fix applied):
|
@PezHub thanks! I added your list to the issue description under the "To fix" section. FYI @georgekarrv |
@mostlikelee should this be in #g-software? |
renaming the issue to cover all app bundle copy installs |
Hey team! Please add your planning poker estimate with Zenhub @jahzielv @iansltx |
in g-software standup today we discussed with @eugkuo and determined that we should be closing the application when a re-install is happening. cc @mostlikelee |
QA plan
|
Additional QA check: When reinstalling, at the end of a successful install we shouldn't have the backup of the old app in the temp dir. Questions:
|
β¦5238) > For #24148 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [x] If database migrations are included, checked table schema to confirm autoupdate - For database migrations: - [x] Checked schema for all modified table for columns that will auto-update timestamps during migration. - [x] Confirmed that updating the timestamps is acceptable, and will not cause unwanted side effects. - [x] Ensured the correct collation is explicitly set for character columns (`COLLATE utf8mb4_unicode_ci`). - [x] Added/updated automated tests - [x] A detailed QA plan exists on the associated ticket (if it isn't there, work with the product group's QA engineer to add it) - [x] Manual QA for all new/changed functionality
Full QA test plan with results (In progress) QA PlanSetup: Upgrade:
After Upgrade: 1Password
Brave
Docker
Figma
Chrome
VSCode
Firefox
Notion
Slack
|
@jahzielv I feel a little picky about this but... there are extra lines at the beginning of the updated scripts... is that intentional? |
@jmwatts wasn't intentional, shouldn't affect functionality but I can look into removing them if we want (agree that it looks a bit weird) |
@jahzielv I'm getting failed installs for Brave and Firefox so far when the app was already installed and open when reinstalling. Text files are attached below with the output. |
@jmwatts thanks for the report! I'll dig into those failures. Yeah, we shouldn't be seeing stuff linger in |
did some pairing with @jmwatts this morning! Our findings:
|
@jahzielv will there be additional changes for the Firefox and Brave installers in this ticket or will those need an unreleased bug ticket to address the issues? |
@jmwatts |
I was able to reproduce, so filed an unreleased bug here: #25467 |
QA Notes |
Fleet version: Observed in Fleet's dogfood environment
Web browser and operating system: macOS 14.6.1
π₯ Β Actual behavior
Check out the Loom video here.
Restarting my Mac resolved the issue.
π§βπ» Β Steps to reproduce
See Loom video here.
π―οΈ More info (optional)
@kennyb-222 observed that sometimes the install fails when VS Code is already installed. Check out the recording here.
That recording^ includes suggested tweaks to the install script for VS Code.
@kennyb-222 on why this is happening:
To fix
If the app has already been installed and launched/configured by the user, the following apps will break upon re-install so will need the install script tweaked (or a fix applied):
QA Plan
The text was updated successfully, but these errors were encountered: