Skip to content

Regression added to bun --ignore scripts changes#14641

Open
thavaahariharangit wants to merge 6 commits intomainfrom
harry/regression-bun-ignore-scripts
Open

Regression added to bun --ignore scripts changes#14641
thavaahariharangit wants to merge 6 commits intomainfrom
harry/regression-bun-ignore-scripts

Conversation

@thavaahariharangit
Copy link
Copy Markdown
Contributor

@thavaahariharangit thavaahariharangit commented Apr 7, 2026

What are you trying to accomplish?

As per the customer request I have reviewed and merged this PR: #14373

As it is missing rspec change I am adding this changes here.

Anything you want to highlight for special attention from reviewers?

How will you know you've accomplished your goal?

All CI passes.

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

RyPeck and others added 3 commits March 12, 2026 17:24
Skip lifecycle scripts (postinstall, prepare, etc.) when running bun
for lockfile updates, matching npm/yarn behavior in dependabot-core.
Avoids failures from packages that download binaries or run env-specific
scripts (e.g. redis-memory-server postinstall failing with empty
Content-Length). Lockfile content is unchanged; only script execution
is disabled for security and reliability.

Looking to add after seeing failures related to `redis-memory-server`
in a private projects dependabot runs.
@thavaahariharangit thavaahariharangit requested a review from a team as a code owner April 7, 2026 10:10
Copilot AI review requested due to automatic review settings April 7, 2026 10:10
@thavaahariharangit thavaahariharangit force-pushed the harry/regression-bun-ignore-scripts branch from 649cfc3 to 8f73130 Compare April 7, 2026 10:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds the missing RSpec coverage for the Bun regression fix that ensures lifecycle scripts are not executed during lockfile updates (by passing --ignore-scripts to Bun install commands), aligning with the behavior introduced in PR #14373.

Changes:

  • Adds a spec asserting Bun install commands include --ignore-scripts during lockfile-only updates.
  • Verifies the expected fingerprint is passed for the dependency-updating install invocation.
Show a summary per file
File Description
bun/spec/dependabot/bun/file_updater_spec.rb Adds an expectation that Dependabot::Bun::Helpers.run_bun_command is invoked with --ignore-scripts for both the targeted install and the final install.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@thavaahariharangit thavaahariharangit changed the title Harry/regression bun ignore scripts Regression added to bun --ignore scripts changes Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants