Skip to content

Conversation

@rhubert
Copy link
Contributor

@rhubert rhubert commented Jul 23, 2025

Some servers need additional informations provided by custom headers.
Add a headers attribute where the user can set these custom headers.

rhubert added 3 commits July 23, 2025 21:10
Some servers need additional informations provided by custom headers.
Add a `headers` attribute where the user can set these custom headers.
@rhubert
Copy link
Contributor Author

rhubert commented Jul 23, 2025

I think we do not need the headers to the digest? At least I hope the result did not depend on any request header...

@codecov
Copy link

codecov bot commented Jul 23, 2025

Codecov Report

❌ Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 88.97%. Comparing base (f958833) to head (d594037).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
pym/bob/input.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #655   +/-   ##
=======================================
  Coverage   88.97%   88.97%           
=======================================
  Files          50       50           
  Lines       16116    16124    +8     
=======================================
+ Hits        14339    14347    +8     
  Misses       1777     1777           

☔ 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.

Copy link
Member

@jkloetzke jkloetzke left a comment

Choose a reason for hiding this comment

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

I think we should apply the headers in _uploadtoo.

@rhubert
Copy link
Contributor Author

rhubert commented Jul 24, 2025

I think we should apply the headers in _uploadtoo.

🤔 AFAICS _upload is used for mirrors only? And for mirrors different headers might be required?

My use-case is to send a authorization header. I don't want to send this to any mirror, so I think headers should be used only for the scm where they are defined (which is not the case ATM).

OTOH mirrors (up&download) might also need some custom headers, but in this case we'd need to extend the mirror keyword?

@jkloetzke
Copy link
Member

🤔 AFAICS _upload is used for mirrors only? And for mirrors different headers might be required?

You're completely right. Any headers for the upload need to come from the mirror definition.

I think we do not need the headers to the digest? At least I hope the result did not depend on any request header...

I agree. If there is a digestSHA... property, the result is fixed. Otherwise, Bob will redo the download each time anyway. So in the first case the headers must not have any impact and in the latter case it won't matter.

@jkloetzke jkloetzke merged commit 59cc536 into BobBuildTool:master Jul 25, 2025
10 of 11 checks passed
@jkloetzke
Copy link
Member

Thanks.

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