Skip to content

Conversation

@jkloetzke
Copy link
Member

No description provided.

When downloading from an archive, the build should not fail because of
network errors. After all, the binary archive is just a cache that might
not provide an archive. We now treat any errors up to and including the
connection establishment as warnings. Previously, refused connections
were already treated that way.

For uploads the behaviour does not change. Any network errors are
treated as errors for uploads.

Fixes BobBuildTool#660.
The "nofail" option actually is only relevant for uploads. Name the
internal variable accordingly.
The option only affects uploads.
By default, downloads from archives ignore most errors. Usually, this is
desired because this is just a different reason why no artifact is
found. But in CI environments, unreachable servers or similar problems
should never happen. For that, the "strictdownload" flag indicates that
the server must be reachable and respond properly. In any case, it is
never an error if a download does not find the requested archive, even
with the strictdownload flag.

See BobBuildTool#660.
@codecov
Copy link

codecov bot commented Sep 7, 2025

Codecov Report

❌ Patch coverage is 70.83333% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.01%. Comparing base (b05cd0d) to head (1fc67e3).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
pym/bob/archive.py 70.83% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #662      +/-   ##
==========================================
+ Coverage   88.97%   89.01%   +0.03%     
==========================================
  Files          50       50              
  Lines       16124    16127       +3     
==========================================
+ Hits        14347    14356       +9     
+ Misses       1777     1771       -6     

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

@jkloetzke jkloetzke merged commit 39a26b9 into BobBuildTool:master Sep 15, 2025
10 of 11 checks passed
@jkloetzke jkloetzke deleted the robust-downloads branch September 15, 2025 19:55
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.

1 participant