Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use BUNDLE_GEMFILE directly instead of appraisal binary #4069

Merged
merged 5 commits into from
Nov 5, 2024

Conversation

p-datadog
Copy link
Contributor

What does this PR do?
appraisal binary appears to be incompatible with bundler 2.4+ that set BUNDLER_SETUP environment variable.
In some cases developers are already using BUNDLE_GEMFILE manually to invoke appraisal configurations, probably those using ruby 3.3 and newer.

This PR changes the rakefile to always use BUNDLE_GEMFILE approach, making it work for all Ruby versions, and adds documentation stating that appraisal binary does not work and to use the BUNDLE_GEMFILE manual approach.

Motivation:

Fixing CI in #4040

Change log entry

None

Additional Notes:

How to test the change?
Tested in #4059

appraisal binary appears to be incompatible with bundler 2.4+
that set BUNDLER_SETUP environment variable.
In some cases developers are already using BUNDLE_GEMFILE
manually to invoke appraisal configurations, probably
those using ruby 3.3 and newer.

This commit changes the rakefile to always use BUNDLE_GEMFILE
approach, making it work for all Ruby versions, and
adds documentation stating that appraisal binary does not work
and to use the BUNDLE_GEMFILE manual approach.
@p-datadog p-datadog requested a review from a team as a code owner November 5, 2024 14:10
@p-datadog p-datadog changed the title Use BUNDLE_GEMFILE directly intead of appraisal binary Use BUNDLE_GEMFILE directly instead of appraisal binary Nov 5, 2024
@p-datadog
Copy link
Contributor Author

This PR should repair the need to pin to old versions of bundler as was done in #4054.

@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.72%. Comparing base (b6d746e) to head (8f1220b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4069   +/-   ##
=======================================
  Coverage   97.72%   97.72%           
=======================================
  Files        1338     1338           
  Lines       80248    80248           
  Branches     4016     4016           
=======================================
  Hits        78422    78422           
  Misses       1826     1826           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@sarahchen6 sarahchen6 left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@pr-commenter
Copy link

pr-commenter bot commented Nov 5, 2024

Benchmarks

Benchmark execution time: 2024-11-05 17:24:34

Comparing candidate commit 8b138b3 in PR branch run-appraisal with baseline commit 243ed25 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 29 metrics, 2 unstable metrics.

@p-datadog p-datadog added the dev/internal Other internal work that does not need to be included in the changelog label Nov 5, 2024
@TonyCTHsu TonyCTHsu merged commit b3a00f4 into master Nov 5, 2024
268 of 269 checks passed
@TonyCTHsu TonyCTHsu deleted the run-appraisal branch November 5, 2024 21:38
@github-actions github-actions bot added this to the 2.6.0 milestone Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/internal Other internal work that does not need to be included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants