Skip to content

feat: update setup script and installation instructions for easier setup#912

Open
jaagut wants to merge 3 commits into
mainfrom
feature/setup_workflow
Open

feat: update setup script and installation instructions for easier setup#912
jaagut wants to merge 3 commits into
mainfrom
feature/setup_workflow

Conversation

@jaagut

@jaagut jaagut commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

This pull request introduces a new, more robust setup script and updates the documentation to streamline and clarify the installation process for the Bit-Bots software stack. The main improvements are the replacement of the old setup.sh script with a new bitbots_setup.sh script, which provides better argument handling, clearer user interaction, and improved reliability. Documentation and workflow files are updated to reference the new script and reflect the revised installation steps.

Proposed changes

Setup Script Improvements:

  • Added a new scripts/bitbots_setup.sh script that provides robust argument parsing, explicit SSH/HTTPS selection, improved error handling, and automatic Pixi installation and workspace build.
  • Removed the old scripts/setup.sh script, which had less robust logic and less clear user prompts.

Documentation Updates:

  • Updated README.md to instruct users to use the new bitbots_setup.sh script, clarify prerequisites, and explain SSH/HTTPS options.
  • Updated the installation tutorial (bitbots_docs/docs/manual/tutorials/installation.rst) to reflect the new script, simplify the installation command, and clarify SSH/HTTPS usage.

CI/CD Workflow:

  • Added a new GitHub Actions workflow (.github/workflows/setup-script.yml) to regularly test the setup script, ensuring its continued reliability.

Related issues

Checklist

  • Run pixi run build
  • Write documentation
  • Test on your machine
  • Test on the robot
  • Create issues for future work
  • Triage this PR and label it

- Add a workflow that validates the setup script twice a month
@jaagut jaagut force-pushed the feature/setup_workflow branch from 209b5c8 to dd0899c Compare June 10, 2026 13:26
@jaagut jaagut marked this pull request as ready for review June 10, 2026 13:27
@jaagut jaagut moved this from 🆕 New to 👀 In review in Software Jun 10, 2026
@jaagut jaagut self-assigned this Jun 10, 2026
@jaagut jaagut requested review from Flova, Copilot and texhnolyze June 10, 2026 13:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 replaces the legacy one-shot setup script with a new bitbots_setup.sh that has clearer argument handling and better UX around SSH vs HTTPS cloning, and updates user-facing docs and CI to reference the new setup flow.

Changes:

  • Added scripts/bitbots_setup.sh with argument parsing (--ssh/--https + optional branch), Pixi bootstrapping, and repository clone + build steps.
  • Updated installation documentation (README.md, docs tutorial) to use the new setup script and describe SSH/HTTPS behavior.
  • Added a scheduled GitHub Actions workflow to periodically run the setup script.

Reviewed changes

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

Show a summary per file
File Description
src/bitbots_misc/bitbots_docs/docs/manual/tutorials/installation.rst Updates the TLDR install command and prerequisites to use bitbots_setup.sh.
scripts/setup.sh Removes the old setup script.
scripts/bitbots_setup.sh Introduces the new, more robust setup script with argument parsing and Pixi+build automation.
README.md Updates installation instructions and explains SSH/HTTPS options for cloning.
.github/workflows/setup-script.yml Adds scheduled/manual CI to run the setup script periodically.

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

Comment thread src/bitbots_misc/bitbots_docs/docs/manual/tutorials/installation.rst Outdated
Comment thread scripts/bitbots_setup.sh
Comment thread scripts/bitbots_setup.sh
echo "Installing dependencies..."
pixi install
echo "Running full build..."
pixi run -e default build --parallel-workers 2

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, but colcon's default behavior leads to system crashes/hangs on non-current systems due to memory exhaustion despite the auto-scaling. I am not sure which simple and reliable heuristic we could use here to determine whether to use the flag.

jaagut and others added 2 commits June 10, 2026 15:56
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+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

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

2 participants