Skip to content

(PA-7783) Recognize Raspbian as a Debian platform in install task - #855

Merged
joshcooper merged 1 commit into
mainfrom
PA-7783/main/support-raspbian-in-install-task
Sep 18, 2026
Merged

joshcooper merged 1 commit into
mainfrom
PA-7783/main/support-raspbian-in-install-task

Conversation

@span786

@span786 span786 commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fixes bundle exec rake task_acceptance failures against debian-12-armhf (Raspberry Pi OS / Raspbian) hardware, as part of PA-7783 — step 3 of the "How to add a platform for puppet-agent" runbook (adding Debian 12 ARMv7L support).
  • The puppet_agent::install task's platform case statement in tasks/install_shell.sh only matched "Debian", so on Raspberry Pi OS — which the facts module reports as platform Raspbian, even though it's Debian 12/bookworm-based — it fell through with no matching branch, deb_codename/download_url were never set, and the task exited with Sorry Raspbian is not supported yet!.
  • Added "Raspbian" as an alias on the existing "Debian" branch, so it resolves the same deb_codename/download URL logic (major_version "12" → bookworm). This follows the same alias pattern already used for other Debian-derivative distros in this file (e.g. "Linuxmint"|"LinuxMint").

Root cause (from the failing run, before the fix)

Installed puppet-agent on pi-deb-01.it.msp.perforce.net: failure
08:22:10 -0500 INFO: Version parameter defined: latest
08:22:10 -0500 INFO: Downloading Puppet latest for Raspbian...
08:22:10 -0500 CRIT: Sorry Raspbian is not supported yet!
  installs puppetcore8-nightly (FAILED - 1)

Both task_spec/spec/acceptance/init_spec.rb tests (installs puppetcore8-nightly, upgrades to puppetcore9-nightly) failed identically against a debian-12-armhf (Raspbian) target since the underlying task call fails before it ever gets to the assertions — the spec file itself needed no changes, since it's platform-agnostic (target_platform driven by the inventory).

Verification (after the fix)

Re-ran bundle exec rake task_acceptance against a fresh debian-12-armhf (Raspbian) target (pi-deb-04.it.msp.perforce.net) — both tests now pass:

install task
Installed puppet-agent on pi-deb-04.it.msp.perforce.net: success
  installs puppetcore8-nightly
Upgraded puppet-agent to puppet9 on pi-deb-04.it.msp.perforce.net: success
Successfully upgraded to puppet9 latest version: 9.1.0.6.ga60a4d144
  upgrades to puppetcore9-nightly

Finished in 1 minute 47.24 seconds (files took 58.16 seconds to load)
2 examples, 0 failures

Test plan

  • bash -n tasks/install_shell.sh — syntax OK
  • shellcheck tasks/install_shell.sh — no new warnings introduced by this change (pre-existing warnings elsewhere in the file are unrelated)
  • bundle exec rake task_acceptance against a real debian-12-armhf (Raspbian) Raspberry Pi target — 2 examples, 0 failures (both puppetcore8-nightly install and puppetcore9-nightly upgrade succeed)

🤖 Generated with Claude Code

The puppet_agent::install task's platform case statement only matched
"Debian", so Raspberry Pi OS (which facts reports as "Raspbian" even
though it's Debian 12/bookworm-based) fell through to the unsupported-
platform error instead of resolving a .deb download URL.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@span786
span786 requested review from a team and a balanced review from Copilot September 17, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Updates the install task to recognize Raspbian as a Debian platform.

Changes:

  • Adds Raspbian to the existing Debian branch.
  • Reuses Debian package and codename resolution logic.
File summaries
File Description
tasks/install_shell.sh Recognizes Raspbian as a Debian platform.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@joshcooper
joshcooper merged commit 4d3601e into main Sep 18, 2026
19 of 24 checks passed
@joshcooper
joshcooper deleted the PA-7783/main/support-raspbian-in-install-task branch September 18, 2026 20:42
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