Skip to content

Remove docker-run-action#195

Merged
UnknownPlatypus merged 1 commit intomainfrom
fix-docker-run-action
Feb 17, 2026
Merged

Remove docker-run-action#195
UnknownPlatypus merged 1 commit intomainfrom
fix-docker-run-action

Conversation

@UnknownPlatypus
Copy link
Copy Markdown
Owner

@UnknownPlatypus UnknownPlatypus commented Feb 17, 2026

copied from astral-sh/ruff#23254

Should fix ci failing in every pr's

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 17, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Optimized internal build pipeline workflow for improved efficiency and maintainability.

Walkthrough

The GitHub Actions workflow file is modified to refactor the musllinux test wheels step. The change replaces an external docker-run-action action with an inline docker run command. The new implementation mounts the repository, sets the PACKAGE_NAME environment variable, installs Python, creates a virtual environment, installs the package from the dist directory, and executes the package with the --help flag within a single docker invocation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Remove docker-run-action' directly and clearly describes the main change: replacing docker-run-action with an inline docker run command.
Description check ✅ Passed The description references a similar fix from ruff and mentions it addresses CI failures, which is relevant to the changeset's purpose of fixing workflow issues.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

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

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-docker-run-action

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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
Contributor

@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.

🤖 Fix all issues with AI agents
Verify each finding against the current code and only fix it if needed.


In @.github/workflows/release-build-binaries.yml:
- Around line 221-227: The docker run invocation includes an unnecessary --env
PACKAGE_NAME flag because ${PACKAGE_NAME} is expanded by the workflow runner
into the sh -c string; remove the --env PACKAGE_NAME argument from the docker
run command so the command uses the baked-in ${PACKAGE_NAME} expansion, leaving
the rest of the run block (apk add python3; python -m venv .venv; .venv/bin/pip3
install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall;
.venv/bin/${PACKAGE_NAME} --help;) unchanged.
🧹 Nitpick comments (1)
🤖 Fix all nitpicks with AI agents
Verify each finding against the current code and only fix it if needed.


In @.github/workflows/release-build-binaries.yml:
- Around line 221-227: The docker run invocation includes an unnecessary --env
PACKAGE_NAME flag because ${PACKAGE_NAME} is expanded by the workflow runner
into the sh -c string; remove the --env PACKAGE_NAME argument from the docker
run command so the command uses the baked-in ${PACKAGE_NAME} expansion, leaving
the rest of the run block (apk add python3; python -m venv .venv; .venv/bin/pip3
install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall;
.venv/bin/${PACKAGE_NAME} --help;) unchanged.
.github/workflows/release-build-binaries.yml (1)

221-227: --env PACKAGE_NAME is redundant here.

Since ${PACKAGE_NAME} inside the double-quoted sh -c "..." argument is expanded by the runner's bash shell (from the workflow-level env), it is resolved before docker run is invoked. The --env PACKAGE_NAME flag passes the variable into the container's environment, but nothing inside the container actually reads it — the values are already baked into the command string.

Not a bug, but removing it avoids confusion about where the variable is resolved.

Suggested cleanup
-          docker run --rm -v ${{ github.workspace }}:/io -w /io --env PACKAGE_NAME alpine:latest sh -c "
+          docker run --rm -v ${{ github.workspace }}:/io -w /io alpine:latest sh -c "
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/release-build-binaries.yml around lines 221 - 227, The
docker run invocation includes an unnecessary --env PACKAGE_NAME flag because
${PACKAGE_NAME} is expanded by the workflow runner into the sh -c string; remove
the --env PACKAGE_NAME argument from the docker run command so the command uses
the baked-in ${PACKAGE_NAME} expansion, leaving the rest of the run block (apk
add python3; python -m venv .venv; .venv/bin/pip3 install ${PACKAGE_NAME}
--no-index --find-links dist/ --force-reinstall; .venv/bin/${PACKAGE_NAME}
--help;) unchanged.

@UnknownPlatypus UnknownPlatypus merged commit c1c080b into main Feb 17, 2026
33 checks passed
@UnknownPlatypus UnknownPlatypus deleted the fix-docker-run-action branch February 17, 2026 00:21
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