Skip to content

Conversation

@jkloetzke
Copy link
Member

Invoking a deterministic gz/xz URL SCM twice lead to a truncated output file.

jkloetzke added 4 commits June 3, 2025 10:15
The class was not derived from unittest.TestCase, meaning that no tests
were actually executed. Fix that and also fix the testcases themselves
because they had some small errors.
With the introduction of the separateDownload policy, the file name of
downloaded file is not necessarily in the workspace anymore.
Consistently use the destination file name everywhere. Otherwise the
log messages are misleading in case the policy is on the new behaviour.
If the download is not an archive but a single gz/xz compressed file,
the extractor will output the result to stdout. In this case the output
file must be opened only after we are sure that the extraction actually
happens. Previously, the output file was opened for writing
unconditionally. This truncated the file and would leave it in this
state if the extraction was skipped.
@codecov
Copy link

codecov bot commented Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.97%. Comparing base (241b862) to head (a87fda6).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #650      +/-   ##
==========================================
- Coverage   88.98%   88.97%   -0.01%     
==========================================
  Files          50       50              
  Lines       16112    16113       +1     
==========================================
  Hits        14337    14337              
- Misses       1775     1776       +1     

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

@sixtyfourktec
Copy link
Contributor

Works for me again. Thanks.

@jkloetzke jkloetzke merged commit 7c07847 into BobBuildTool:master Jun 3, 2025
11 checks passed
@jkloetzke jkloetzke deleted the fix-gunzip-extract branch June 3, 2025 19:49
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