You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tl;dr - --only-upgrade fails for uninstalled packages that live in different apt-repositories, so if you've set up your installation using WPT_UPDATE_OS=n and WPT_UPDATE_BROWSERS=y the agent will fail to start
sudo add-apt-repository -y ppa:ubuntu-mozilla-daily/ppa
sudo add-apt-repository -y ppa:mozillateam/ppa
# and update the package tree
sudo apt -y update
Run the exact same --only-upgrade command again (i.e., referencing both Chrome and Firefox, neither of which are installed, but only Firefox has an apt repository referenced)
a) Either add all browser's apt repositories regardless of the choice the user has made, or
b) Build the list of browsers to update according to the choice the user has made
The text was updated successfully, but these errors were encountered:
rposbo
changed the title
Agents fail to start if you don't install all browsers
Agents fail to start if you don't install all browsers if you use WPT_UPDATE_OS=n and WPT_UPDATE_BROWSERS=y
Dec 6, 2021
Although theoretically you can call
apt install --only-upgrade
with all the browsers you might have installed and let it silently ignore those that are not installed, this line fails if you choose to install a subset of the browsers using, e.g.,WPT_FIREFOX=false
as apt doesn't know about the packages, so it is erroring instead of failing silently:https://github.com/WPO-Foundation/wptagent-install/blob/d9d967271cf9b857bf59c1c9c1a64de424faff10/debian.sh#L603
To replicate on a clean ubuntu 20.04 EC2:
Results show failures for Chrome and Firefox, instead of silently ignoring them as they're not installed:
This causes the agent to fall into an infinite loop, as that line is part of a
until
loop.--only-upgrade
command again (i.e., referencing both Chrome and Firefox, neither of which are installed, but only Firefox has anapt repository
referenced)This time only Chrome fails, not Firefox:
These lines mean the
apt-repository
are unknown to the WPT agent:https://github.com/WPO-Foundation/wptagent-install/blob/d9d967271cf9b857bf59c1c9c1a64de424faff10/debian.sh#L557-L560
Proposed patch
a) Either add all browser's apt repositories regardless of the choice the user has made, or
b) Build the list of browsers to update according to the choice the user has made
The text was updated successfully, but these errors were encountered: