Pin srt to a tested version; support only Pop!_OS 26.04 and later
srt is pinned to 0.0.83, the version the smoketest passed with. A computer with another version sees the agents item as to do in configure, which installs the pinned one. Move the pin only after smoketest/run 50 80 passes. The installer and configure stop on Pop!_OS (or Ubuntu) older than 26.04. The smoketest builds on Ubuntu 26.04, with checks that 24.04 is refused. 26.04's own AppArmor profile lets bubblewrap make user namespaces, so the connector's profile for it, and the code that offered to add it, are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,4 +26,12 @@ scenario() {
|
||||
check "no staging folders are left" bash -c '! compgen -G "$HOME/.local/share/federated-connector/.connector-*"'
|
||||
check_eq "the PATH block is in ~/.bashrc once" 1 "$(grep -c '>>> Federated Connector commands >>>' "$HOME/.bashrc")"
|
||||
check "the installed configure runs" "$HOME/.local/bin/configure" --help
|
||||
|
||||
step "On Pop!_OS 24.04, which isn't supported"
|
||||
sudo cp /etc/os-release "$HOME/os-release"
|
||||
sudo sed -i 's/26\.04/24.04/g; s/resolute/noble/g' /etc/os-release
|
||||
bash < "$CONNECTOR/install.sh" > "$HOME/old.log" 2>&1
|
||||
check_eq "install.sh stops" 1 $?
|
||||
check "it says to upgrade" grep -q "needs Pop!_OS 26.04 or later" "$HOME/old.log"
|
||||
sudo cp "$HOME/os-release" /etc/os-release
|
||||
}
|
||||
|
||||
@@ -21,4 +21,11 @@ scenario() {
|
||||
check "configure core gives up on a Superpanel it can't reach" \
|
||||
bash -c "printf 'https://superpanel.smoke.invalid\n' | '$CONNECTOR/configure' core | grep -q \"Couldn't reach https://superpanel.smoke.invalid\""
|
||||
check_not "it doesn't run as root" sudo "$CONNECTOR/configure" --list
|
||||
|
||||
sudo cp /etc/os-release "$HOME/os-release"
|
||||
sudo sed -i 's/26\.04/24.04/g; s/resolute/noble/g' /etc/os-release
|
||||
out="$(echo q | "$CONNECTOR/configure" 2>&1)"
|
||||
check_eq "on Pop!_OS 24.04, the menu stops" 1 "$(echo q | "$CONNECTOR/configure" > /dev/null 2>&1; echo $?)"
|
||||
check "and says to upgrade" grep -q "needs Pop!_OS 26.04 or later" <<< "$out"
|
||||
sudo cp "$HOME/os-release" /etc/os-release
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ scenario() {
|
||||
check "install_srt" install_srt
|
||||
check "Node.js is in ~/.local/share/federated-connector/node" test -x "$FC_TOOLS/node/bin/node"
|
||||
check "srt is found" srt_path
|
||||
check "srt is the version it's pinned to ($SRT_VERSION)" srt_current
|
||||
|
||||
step "A stand-in agent"
|
||||
mkdir -p "$HOME/.local/bin" "$HOME/.ssh" "$project"
|
||||
|
||||
Reference in New Issue
Block a user