Skip to content

Conversation

@losmateusz1
Copy link

No description provided.

Signed-off-by: Mateusz Los <mateusz.los@extern.wenovate.de>
@losmateusz1 losmateusz1 requested a review from a team as a code owner February 10, 2026 13:46
val responseCode = requestSourceArtifact(
pkg,
"HEAD"
// some artifact are behind redirected urls, in case of 404 we need to fall back to GET to verify that.

Check failure

Code scanning / detekt

Reports mis-indented code Error

Unexpected indentation (8) (should be 12)
val responseCode = requestSourceArtifact(
pkg,
"HEAD"
// some artifact are behind redirected urls, in case of 404 we need to fall back to GET to verify that.

Check failure

Code scanning / detekt

Detects trailing spaces Error

Trailing space(s)
val responseCode = requestSourceArtifact(
pkg,
"HEAD"
// some artifact are behind redirected urls, in case of 404 we need to fall back to GET to verify that.
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused about "redirects" in the commit message: By default, OkHttp is configured with followRedirects(true) and followSslRedirects(true). So it already follow redirects, also for HEAD requests.

So instead, this commit seems to do two different things:

  1. It falls back to a GET request if the HEAD requests fails with HTTP_NOT_FOUND (for serves that do not implement HEAD correctly).
  2. It regards HTTP_MOVED_TEMP as a success, in case the requested resource was temporarily moved.

IMO both are independent changes which deserve separate commits with dedicated rationales in the commit message, an neither change is strictly related to following redirects properly.

@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.75%. Comparing base (ff98bcd) to head (214fc43).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...ain/kotlin/provenance/PackageProvenanceResolver.kt 0.00% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #11412      +/-   ##
============================================
- Coverage     57.78%   57.75%   -0.03%     
+ Complexity     1713     1711       -2     
============================================
  Files           347      347              
  Lines         12904    12908       +4     
  Branches       1238     1239       +1     
============================================
- Hits           7456     7455       -1     
- Misses         5000     5006       +6     
+ Partials        448      447       -1     
Flag Coverage Δ
funTest-no-external-tools 30.90% <0.00%> (-0.11%) ⬇️
test-ubuntu-24.04 42.49% <0.00%> (-0.02%) ⬇️
test-windows-2025 42.46% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants