-
Notifications
You must be signed in to change notification settings - Fork 326
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
Enforce "ruby" platform when fetching version data #8754
Conversation
5ccd02a
to
7937b26
Compare
plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/lockfile/Gemfile
Outdated
Show resolved
Hide resolved
...-managers/bundler/src/funTest/assets/projects/synthetic/bundler-expected-output-lockfile.yml
Outdated
Show resolved
Hide resolved
plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/lockfile/Gemfile
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8754 +/- ##
=========================================
Coverage 67.79% 67.79%
Complexity 1164 1164
=========================================
Files 243 243
Lines 7711 7711
Branches 861 861
=========================================
Hits 5228 5228
Misses 2127 2127
Partials 356 356
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@sschuberth @fviernau Thanks for the review comments. I had intentionally marked it as a Draft MR in order not to bother you to review yet, while I was sorting out the build etc. :) I guess my intention failed there. Either way: It seems that there currently isn't a test that fails with the My question here would be: If I revert all the changes to the I just ran it in CI and here's what I'm getting: Before the change: After the change: |
No worries. Sometimes we're just curious and willing to spend time on reviewing draft PRs, well knowing that our comments might become null and void due to ongoing changes.
For me, it would be acceptable, as it's obviously doing the right thing, even if you cannot prove that it makes a difference according to test assets.
Interesting that this writes out a smaller file although it has the same number of projects / packages. Mind investigating where the size difference comes from? |
The main difference that I can spot is that the There are 32 such entries. If I extract a single one and put it into a file, it's roughly 350-400 bytes (depending on the length of the respective project name) => 400 x 32 = ~12 KB. This comes fairly close to the (presumably rounded) 20 KB difference that the output lists. |
dbf401c
to
2356fa9
Compare
So I adapted everything, but now we seem to have what looks like random/unrelated test failures…? I'm a bit stuck here. :/ |
No worries. We'll realize this and eventually retrigger flaky tests etc. |
The commit message still talks about "we". Please reword as described above. |
Fetching version data for individual Ruby gems shouldn't rely on creation order of the gems on RubyGems.org. Instead, use the standard `ruby` platform as a sensible default (as it already happens in Bundler's resolving logic elsewhere in the code). Partially addresses oss-review-toolkit#8695. Signed-off-by: Clemens Kofler <[email protected]>
When fetching version data for individual Ruby gems, we don't want to rely on creation order of the gems on RubyGems.org. Instead, we use the standard
ruby
platform as a sensible default (as we do elsewhere).Partially addresses #8695.