Skip to content

Remove some MuseScore-specific files from buildscripts folder#50

Open
cbjeukendrup wants to merge 4 commits into
musescore:mainfrom
cbjeukendrup:cleanup-buildscripts
Open

Remove some MuseScore-specific files from buildscripts folder#50
cbjeukendrup wants to merge 4 commits into
musescore:mainfrom
cbjeukendrup:cleanup-buildscripts

Conversation

@cbjeukendrup
Copy link
Copy Markdown
Contributor

There’s a lot more that should be either removed or generalised, but let’s decide on a policy for that.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 23, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

This PR removes support for 32-bit ARMv7L architecture and consolidates CI infrastructure. Architecture configuration is updated across build scripts by replacing armv7l-specific conditionals with unconditional blocks, updating architecture documentation to remove armv7l references, and changing build-tool installation from architecture-based checks to tool-presence checks. AppImage build logic removes armv7l-to-armhf mapping and associated APPIMAGE_EXTRACT_AND_RUN conditionals. Release asset filtering and build artifact references are updated to exclude armv7l. Docker image build automation, vtest CI runners, and OSUOSL publishing scripts are removed. Crashpad handler architecture selection is reordered to prioritize aarch64 checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is vague and does not follow the required template structure. It lacks issue reference, motivation details, CLA confirmation, and all checklist items are unchecked or missing. Replace the description with proper template format: include issue reference (Resolves: #NNNNN), detailed motivation for the cleanup, and complete all checklist items with explicit confirmations.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: removing MuseScore-specific files from the buildscripts folder, which aligns with the extensive deletions shown in the raw summary.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
buildscripts/ci/linux/setup.sh (1)

51-56: 🧹 Nitpick | 🔵 Trivial | 💤 Low value

Consider removing the dead code block or adding a clearer comment.

The if false construct creates unreachable code. If this is intentionally preserved as a template for future Docker container usage, consider adding a comment explaining when/how to enable it (e.g., # Uncomment for Docker: if [ -f /.dockerenv ]; then). Otherwise, this block could be removed entirely.

♻️ Suggested alternatives

Option 1 - Remove the dead code:

-if false; then # Use this when running in a Docker container
-  SUDO=""
-  export DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
-else
-  SUDO="sudo"
-fi
+SUDO="sudo"

Option 2 - Use a more explicit Docker detection:

-if false; then # Use this when running in a Docker container
+if [ -f /.dockerenv ]; then # Running inside a Docker container
   SUDO=""
   export DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
 else
   SUDO="sudo"
 fi
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@buildscripts/ci/linux/setup.sh` around lines 51 - 56, The current unreachable
"if false" block that sets SUDO, DEBIAN_FRONTEND and TZ should be removed or
converted into an explicit Docker-detection branch; locate the block that
references SUDO, export DEBIAN_FRONTEND="noninteractive" and TZ="Europe/London"
and either delete it if not needed, or replace the `if false` with a real
condition (e.g., check for /.dockerenv or an explicit env flag) and add a short
comment explaining when to enable that branch (e.g., "Enable for containerized
runs"). Ensure the variable SUDO is still set in the fallback branch and keep
the intent of setting DEBIAN_FRONTEND/TZ when running in container mode, with a
clear comment explaining how to toggle it.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@buildscripts/ci/linux/setup.sh`:
- Around line 51-56: The current unreachable "if false" block that sets SUDO,
DEBIAN_FRONTEND and TZ should be removed or converted into an explicit
Docker-detection branch; locate the block that references SUDO, export
DEBIAN_FRONTEND="noninteractive" and TZ="Europe/London" and either delete it if
not needed, or replace the `if false` with a real condition (e.g., check for
/.dockerenv or an explicit env flag) and add a short comment explaining when to
enable that branch (e.g., "Enable for containerized runs"). Ensure the variable
SUDO is still set in the fallback branch and keep the intent of setting
DEBIAN_FRONTEND/TZ when running in container mode, with a clear comment
explaining how to toggle it.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: ce3865cf-533b-4668-834d-808004d2f563

📥 Commits

Reviewing files that changed from the base of the PR and between 6f508fc and 0d4fa5a.

⛔ Files ignored due to path filters (1)
  • buildscripts/ci/crashdumps/linux/armv7l/dump_syms.7z is excluded by !**/*.7z
📒 Files selected for processing (37)
  • buildscripts/ci/backend/build.sh
  • buildscripts/ci/backend/build_docker.sh
  • buildscripts/ci/backend/check_update_config_on_s3.sh
  • buildscripts/ci/backend/convertor.in
  • buildscripts/ci/backend/docker/Dockerfile
  • buildscripts/ci/backend/docker/install_mu_template.sh
  • buildscripts/ci/backend/docker/mu2/Dockerfile
  • buildscripts/ci/backend/docker/mu2/build_docker.sh
  • buildscripts/ci/backend/docker/mu2/install_mu_template.sh
  • buildscripts/ci/backend/docker/mu2/publish_to_registry.sh
  • buildscripts/ci/backend/docker/mu2/setup.sh
  • buildscripts/ci/backend/docker/mu3/Dockerfile
  • buildscripts/ci/backend/docker/mu3/build_docker.sh
  • buildscripts/ci/backend/docker/mu3/install_mu_template.sh
  • buildscripts/ci/backend/docker/mu3/publish_to_registry.sh
  • buildscripts/ci/backend/docker/mu3/setup.sh
  • buildscripts/ci/backend/docker/setup.sh
  • buildscripts/ci/backend/package.sh
  • buildscripts/ci/backend/publish_to_registry.sh
  • buildscripts/ci/backend/publish_to_s3.sh
  • buildscripts/ci/backend/setup.sh
  • buildscripts/ci/crashdumps/ci_files.cmake
  • buildscripts/ci/linux/arm32/install_qt.sh
  • buildscripts/ci/linux/arm32/run_lupdate.sh
  • buildscripts/ci/linux/build.sh
  • buildscripts/ci/linux/setup.sh
  • buildscripts/ci/linux/tools/make_appimage.sh
  • buildscripts/ci/release/correct_release_info.py
  • buildscripts/ci/tools/osuosl/index.html
  • buildscripts/ci/tools/osuosl/osuosl_nighlies_rsa.enc
  • buildscripts/ci/tools/osuosl/publish.sh
  • buildscripts/ci/vtests/build_and_pack.sh
  • buildscripts/ci/vtests/generate_pngs.sh
  • buildscripts/ci/vtests/run.in
  • buildscripts/cmake/FindFFmpeg.cmake
  • buildscripts/cmake/SetupSndFile.cmake
  • framework/diagnostics/CMakeLists.txt
💤 Files with no reviewable changes (31)
  • buildscripts/ci/linux/arm32/run_lupdate.sh
  • buildscripts/ci/vtests/generate_pngs.sh
  • buildscripts/ci/backend/docker/mu3/install_mu_template.sh
  • buildscripts/ci/tools/osuosl/index.html
  • buildscripts/ci/vtests/run.in
  • buildscripts/ci/backend/convertor.in
  • buildscripts/ci/backend/build_docker.sh
  • buildscripts/ci/linux/arm32/install_qt.sh
  • buildscripts/ci/backend/docker/mu2/build_docker.sh
  • buildscripts/ci/backend/docker/install_mu_template.sh
  • buildscripts/ci/crashdumps/ci_files.cmake
  • buildscripts/ci/backend/docker/mu3/setup.sh
  • buildscripts/ci/backend/docker/mu3/build_docker.sh
  • buildscripts/ci/backend/check_update_config_on_s3.sh
  • buildscripts/ci/backend/publish_to_registry.sh
  • buildscripts/ci/backend/docker/mu3/publish_to_registry.sh
  • buildscripts/ci/backend/docker/mu2/setup.sh
  • buildscripts/ci/backend/docker/mu3/Dockerfile
  • buildscripts/cmake/SetupSndFile.cmake
  • buildscripts/ci/vtests/build_and_pack.sh
  • buildscripts/ci/backend/docker/setup.sh
  • buildscripts/ci/backend/docker/mu2/install_mu_template.sh
  • buildscripts/ci/backend/package.sh
  • buildscripts/ci/backend/build.sh
  • buildscripts/ci/backend/docker/Dockerfile
  • buildscripts/ci/backend/docker/mu2/Dockerfile
  • buildscripts/ci/backend/docker/mu2/publish_to_registry.sh
  • buildscripts/ci/tools/osuosl/publish.sh
  • buildscripts/ci/backend/setup.sh
  • buildscripts/ci/backend/publish_to_s3.sh
  • buildscripts/cmake/FindFFmpeg.cmake

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