Skip to content

Address audit findings: WSL config correctness, safer bootstrap installs, portable wallpaper script runtime, reproducible pytest deps#5

Merged
KevinTCoughlin merged 2 commits into
mainfrom
copilot/address-dotfiles-audit-findings
May 24, 2026
Merged

Address audit findings: WSL config correctness, safer bootstrap installs, portable wallpaper script runtime, reproducible pytest deps#5
KevinTCoughlin merged 2 commits into
mainfrom
copilot/address-dotfiles-audit-findings

Conversation

Copilot AI commented May 24, 2026

Copy link
Copy Markdown
Contributor

This PR addresses the audit follow-up by correcting WSL host-specific settings, removing unsafe pipe-to-shell install patterns, improving interpreter portability for a user script, and making Python test dependencies reproducible across environments. It also includes a final rubber-duck pass and small follow-up adjustments from that critique.

  • WSL config correctness

    • dot_wslconfig now matches the current 12-core profile (processors=12).
    • autoMemoryReclaim is removed from [wsl2] and retained only in [experimental].
  • Bootstrap/install hardening

    • Replaced curl | bash patterns in setup guidance and bootstrap flow with: download to temp file → execute explicitly → cleanup.
    • Added explicit failure-path cleanup around installer script execution.
  • Interpreter portability

    • dot_local/bin/private_executable_stylize-wallpaper shebang changed from a machine-local venv path to:
      #!/usr/bin/env python3
  • Reproducible Python test dependencies

    • Added tests/requirements-dev.txt as a single source of truth for pytest-related dependencies.
    • Updated tests/README.md and tests/test_obs.py dependency guidance to install from that file via venv/pip.
  • Final rubber-duck review (required)

    • Critique focused on temp-file safety and consistency between docs and executable bootstrap behavior.
    • Resulting adjustments: switched setup snippet to mktemp usage and ensured cleanup on bootstrap failure paths.

Copilot AI requested review from Copilot and removed request for Copilot May 24, 2026 04:40
Copilot AI linked an issue May 24, 2026 that may be closed by this pull request
Copilot AI requested review from Copilot and removed request for Copilot May 24, 2026 04:44
Copilot AI changed the title [WIP] Address dotfiles audit findings with PR Address audit findings: WSL config correctness, safer bootstrap installs, portable wallpaper script runtime, reproducible pytest deps May 24, 2026
Copilot AI requested a review from KevinTCoughlin May 24, 2026 04:45
@KevinTCoughlin
KevinTCoughlin marked this pull request as ready for review May 24, 2026 15:31
Copilot AI review requested due to automatic review settings May 24, 2026 15:31
@KevinTCoughlin
KevinTCoughlin merged commit 7630663 into main May 24, 2026
@KevinTCoughlin
KevinTCoughlin deleted the copilot/address-dotfiles-audit-findings branch May 24, 2026 15:31

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.

Pull request overview

This PR follows up on an audit by tightening install guidance/scripts (avoiding pipe-to-shell), improving portability of a user-facing wallpaper script, correcting WSL configuration placement, and centralizing Python test dependencies for easier setup.

Changes:

  • Centralizes pytest-related dependencies in tests/requirements-dev.txt and updates test docs/comments to install from it.
  • Hardens Homebrew install guidance and the bootstrap script by downloading installer scripts to a temp file and executing explicitly.
  • Adjusts .wslconfig CPU/memory-reclaim settings and updates the wallpaper script shebang to use env python3.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_obs.py Updates dependency guidance to install via the shared requirements file.
tests/requirements-dev.txt Adds a shared dependency list for pytest-related tests.
tests/README.md Updates Python test setup to use a venv and install from requirements-dev.txt.
SETUP.md Replaces `curl
dot_wslconfig Updates processor count and moves autoMemoryReclaim under [experimental].
dot_local/bin/private_executable_stylize-wallpaper Changes shebang from a machine-local venv path to #!/usr/bin/env python3.
dot_local/bin/executable_bootstrap Replaces `curl

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +3
pytest>=8,<9
pytest-asyncio>=0.23,<1
websockets>=12,<16
Comment thread SETUP.md
Comment on lines +53 to +57
curl --fail --show-error --location --proto '=https' --tlsv1.2 \
-o "$install_script" \
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
/bin/bash "$install_script"
rm -f "$install_script"
Comment thread dot_wslconfig
Comment on lines 10 to 11
# Nested virtualization
nestedVirtualization=true
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.

Address dotfiles audit findings with PR

3 participants