Skip to content

fix(e2e): suppress ublue-motd in CI VM to fix Dakota SSH assertion#208

Open
castrojo wants to merge 1 commit into
mainfrom
fix/suppress-motd-in-ci
Open

fix(e2e): suppress ublue-motd in CI VM to fix Dakota SSH assertion#208
castrojo wants to merge 1 commit into
mainfrom
fix/suppress-motd-in-ci

Conversation

@castrojo
Copy link
Copy Markdown
Collaborator

@castrojo castrojo commented Jun 2, 2026

Summary

  • create ~/.config/no-show-user-motd in the CI VM before boot so login shells do not print the Dakota MOTD
  • make vm_reachable_over_ssh accept "ok" on the last stdout line as a defensive fallback
  • add unit coverage for MOTD-prepended SSH output

Testing

  • python -m pytest tests/unit/ -v

Fixes Dakota E2E common suite failure seen in:
https://github.com/projectbluefin/common/actions/runs/26758012007

The MOTD printed by /etc/profile.d/ublue-motd.sh in login shells was
prepended to SSH command output, causing vm_reachable_over_ssh to fail
with stdout == "ok" exact match. Suppress MOTD in CI by creating the
documented ~/.config/no-show-user-motd file during VM setup.

Also make vm_reachable_over_ssh check the last line of stdout as a
defensive measure against future MOTD sources.

Fixes Dakota E2E common suite failure seen in:
https://github.com/projectbluefin/common/actions/runs/26758012007

Assisted-by: Claude Sonnet 4.6 via GitHub Copilot CLI
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant