| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
7011: Do not prepend ENV vars for sys_exec calls, but use env param of Open3.popen3 r=deivid-rodriguez a=janpio
### What was the end-user problem that led to this PR?
Several tests were failing on Windows because of the same problem:
### What was your diagnosis of the problem?
On macOS and Linux you can prepend `ENV_VAR=value` in front of a command to set an environment variable for just this command execution.
On Windows this construct doesn't exit and such a command fails.
### What is your fix for the problem, implemented in this PR?
`Open3.popen3`, the method used to executed the command in `sys_exec`, also has an optional `env` parameter which you can use to supply a hash of environment variables. Instead of prepending on the command itself, the code now uses that parameter for the env variables. (Suggested by @deivid-rodriguez in https://github.com/bundler/bundler/issues/6886#issuecomment-452010623).
### Why did you choose this fix out of the possible options?
The parameter of `Open3.popen3` perfectly matches our use case.
---
Fixes 35 failing tests on Windows.
closes #6886
Co-authored-by: Jan Piotrowski <piotrowski+git@gmail.com>
|
| | | | | |
|
| | | | | |
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
7013: Move azure-pipeline folder to a hidden folder r=deivid-rodriguez a=colby-swandale
### What was the end-user problem that led to this PR?
We have a folder whose purpose is to contain support files for the Azure CI called `azure-pipelines`. The issue is that this folder does not relate to the Bundler development environment and is showing up in `ls` when it doesn't really need to be.
### What is your fix for the problem, implemented in this PR?
Move `azure-pipelines` to a hidden folder with the same name
Co-authored-by: Colby Swandale <me@colby.fyi>
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
7015: Expand comparison path for Windows compat r=deivid-rodriguez a=janpio
### What was the end-user problem that led to this PR?
A specific test (#6890) was failing...
### What was your diagnosis of the problem?
... because the comparison was missing the drive letter on Windows.
### What is your fix for the problem, implemented in this PR?
I added expansion of the path that was already present in the implementation but not the test.
### Why did you choose this fix out of the possible options?
Makes the test pass and looks right.
---
closes #6890
fixes 1 failing test on Windows
Co-authored-by: Jan Piotrowski <piotrowski+git@gmail.com>
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
which adds a `C:` to the path
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
7014: Fix all offenses of some easy cops r=deivid-rodriguez a=deivid-rodriguez
References https://github.com/bundler/bundler/pull/7009/files#r261892716.
### What was the end-user problem that led to this PR?
The problem was just some leftover consistency offenses.
### What was your diagnosis of the problem?
My diagnosis was that we can easily fix these globally.
### What is your fix for the problem, implemented in this PR?
My fix is to enable the three cops and run `rubocop --auto-correct`.
### Why did you choose this fix out of the possible options?
I chose this fix because these cops depend on each other, so enabling just one of them leaves weird indented code behind.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | | | | | |
|
| | | | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These cops leave weird styling if enabled separately, but do what you
want if enabled all together. So fix all remaining style issues for them
at once.
|
|\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
7010: Use double quotes for `git commit -m` r=colby-swandale a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was that Azure logs are full of "error: pathspec 'COMMIT'' did not match any file(s) known to git." and other similar ones.
### What was your diagnosis of the problem?
My diagnosis was that Windows' git doesn't like single quotes.
### What is your fix for the problem, implemented in this PR?
My fix is to use double quotes, which is also consistent with our global style.
### Why did you choose this fix out of the possible options?
I chose this fix because it brings the number of spec failures on Windows from 657 to 474! :tada:
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Apparently single quotes don't work on Windows, and this also makes our
code more consistent.
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
6978: Add check for already installed plugin r=deivid-rodriguez a=ankitkataria
### What was the end-user problem that led to this PR?
Fixes #6946
### What was your diagnosis of the problem?
There was no check to ensure that the plugin was already installed or not.
### What is your fix for the problem, implemented in this PR?
I added the check [here](https://github.com/bundler/bundler/compare/master...ankitkataria:plugin-fix?expand=1#diff-68bd939cd3589d8fdda08a12433659ebR109)
I also added a small test for the same
Co-authored-by: Ankit Kataria <ankitkataria28@gmail.com>
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
7004: Bump rubocop to 0.65.0 r=deivid-rodriguez a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was that running rubocop (to fix style issues in other PRs) prints several warnings in the parser gem.
### What was your diagnosis of the problem?
My diagnosis was that we should upgrade rubocop.
### What is your fix for the problem, implemented in this PR?
My fix is to upgrade rubocop, fix the config to be compatible with the new version, and regenerate the TODO config.
### Why did you choose this fix out of the possible options?
I chose this fix because it does the job. There's still some stuff I don't like about the current "rubocop maintainance" that I've proposed in #7003. But for the current situation I think this works.
Closes #6608.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
|/ / /
| | |
| | |
| | | |
Fix config and regenerate TODO config.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
6991: Fix deprecation specs r=deivid-rodriguez a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was the current deprecation specs are broken. Not the deprecations themselves, their specs.
### What was your diagnosis of the problem?
My diagnosis was we need to fix the specs for the deprecations before actually making sure that the deprecations themselves are properly enabled.
### What is your fix for the problem, implemented in this PR?
My fix is to:
* Get the target version corrected. Deprecation specs should run on bundler 2, not on bundler 1, since deprecations are disabled on bundler 1.
* Get the deprecation matcher fixed. The previous version was passing every time any deprecation was printed and a positive expectation was set. That means that on a spec printing a single deprecation, the assertion `expect(warnings).to have_major_deprecation("bananas will be deprecated in favor of potatoes")`, or any other message, would just pass. This explains why the deprecation specs were currently passing on bundler 1 and it's fixed by https://github.com/bundler/bundler/commit/33383f2faae10cd307b86466921b1a17391bae80.
### Why did you choose this fix out of the possible options?
This fix changes the target for the deprecation specs to bundler 2 (https://github.com/bundler/bundler/commit/e54ddb60298036e3a25c95deda6d575d384ff48a) and uses the following strategy to get CI green after that:
* If the deprecation is already correct on bundler 2, do nothing, the specs already pass.
* If the deprecation is incorrect on bundler 2, but the fix is a no-brainer, fix it here. For example, the `bundle update --all` deprecation (968fe965c), or the `bundle console` deprecation (5bece2f0f).
* If the deprecation is incorrect on bundler 2, but fixing it requires a separate discussion, skip the spec for now, and stage the fix for a separate PR.
I chose this fix because it keeps this PR simple and focused, while unblocking fixing the rest of the deprecations by at least having correct (although disabled) specs for them.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | | |
| | | |
| | | |
| | | | |
I'll get to this on a separate PR.
|
| | | |
| | | |
| | | |
| | | | |
The helper already considers the stream errors are printed to.
|
| | | |
| | | |
| | | |
| | | | |
Those deprecation messages are no longer printed.
|
| | | |
| | | |
| | | |
| | | | |
And skip the rest of the broken ones.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The previous logic was broken. Previously, changing the expectation
about gems.rb vs Gemfile deprecation to
```ruby
expect(warnings).to have_major_deprecation("gems.rb is preferred to chocolate ice-cream")
```
would still pass.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Not necessary for the test since the main before block already creates
one.
|
| | | |
| | | |
| | | |
| | | | |
Since we haven't even yet deprecated the old behavior.
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
6997: Smaller ci matrix r=colby-swandale a=deivid-rodriguez
Fixes #6956.
### What was the end-user problem that led to this PR?
The problem was that we have a very slow CI
### What was your diagnosis of the problem?
My diagnosis was that the CI matrix is very big, and that old rubies use more resources than new rubies.
### What is your fix for the problem, implemented in this PR?
My fix is to remove some entries and when it comes to testing old rubygems version, test only the rubygems version each tested MRI version shipped with.
### Why did you choose this fix out of the possible options?
I chose this fix because it saves us some time, and it gives all rubies the same amount of CI resources.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | | | |
|
|/ / / |
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
6982: Remove unnecessary rubygems filters r=hsbt a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was there's a lot of unnecessary code, specially in specs, that's never run.
### What was your diagnosis of the problem?
My diagnosis was that since dropping support for old rubygems versions, this code is no longer necessary.
### What is your fix for the problem, implemented in this PR?
My fix is to remove the code.
### Why did you choose this fix out of the possible options?
I chose this fix because red is great on diffs.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | |
| | |
| | |
| | | |
Bundler 2 can't be installed on these rubygems, so it's not necessary.
|
| | | |
|
| | | |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
6971: Fix warning message about bundler version r=colby-swandale a=deivid-rodriguez
Fixes #6909.
### What was the end-user problem that led to this PR?
The problem was that we're recommending a command to make a warning go away that doesn't really make the warning go away.
### What was your diagnosis of the problem?
My diagnosis was that the current recommendation installs the latest bundler, which might not be the same as the version the lock file was created with. If it's not the same, the warning will not go away.
### What is your fix for the problem, implemented in this PR?
My fix is to recommend installing exactly the version the lockfile was created with.
### Why did you choose this fix out of the possible options?
I chose this fix because it's really simple and it should work.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
To actually make the warning go away, we need to recommend exactly
installing the locked version. Otherwise the latest version gets
installed, but not used to being a different major than the one locked,
so the warning stays.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
6983: Remove unnecessary ruby filters r=colby-swandale a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was there's a lot of unnecessary code, specially in specs, that's never run.
### What was your diagnosis of the problem?
My diagnosis was that since dropping support for old ruby versions, this code is no longer necessary.
### What is your fix for the problem, implemented in this PR?
My fix is to remove the code.
### Why did you choose this fix out of the possible options?
I chose this fix because red is great on diffs.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Since the current master will never run those rubies.
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
6984: Refresh all VCR cassettes r=deivid-rodriguez a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was our VCR cassettes contain responses recorded a long time ago, but the real APIs might have changed or give different results since then.
### What was your diagnosis of the problem?
My diagnosis was that we should re-record the cassettes every once in a while.
### What is your fix for the problem, implemented in this PR?
My fix removes old the previous cassettes and re-records them.
### Why did you choose this fix out of the possible options?
I chose this fix because I'm not sure how to do it otherwise.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
6965: Turn on deprecations by default r=indirect a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was we've had deprecations in place for a long time, but we've never displayed them to users by default.
### What was your diagnosis of the problem?
My diagnosis was that the current strategy doesn't work because:
* Printing deprecations as an optin feature almost never get enabled, so most users don't know about the stuff we'll be deprecating in the future.
* Printing deprecations in "deprecation releases" doesn't work well either, because it's unclear how long the deprecation release should last and thus how long we need to hold the final release (that will inhibit installation of the deprecation release).
### What is your fix for the problem, implemented in this PR?
My fix is to remove the concept of deprecation releases, and to add a feature flag for printing major deprecations that it's enabled by default.
As a extra related change, I also reworded the deprecation messages, because I find the current message "[DEPRECATED FOR 2.0] <Message about the deprecation>" a bit confusing because it's unclear what the version printed is referring to (deprecation horizon? current running version?), so I changed it to just "[DEPRECATED] <Message about the deprecation>".
### Why did you choose this fix out of the possible options?
I chose this fix because it (once released) finally makes it so that users will know about our deprecations.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Since deprecations are enabled by default.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Deprecations enabled or not, we only want to print deprecations for the
running major version, never for future versions.
|
| | | |
| | | |
| | | |
| | | | |
Leave it as a setting with default true value.
|