Skip to content

Fix duplicate counting of progress in obtain_file#5174

Open
Flamefire wants to merge 1 commit into
easybuilders:developfrom
Flamefire:double-file-progress
Open

Fix duplicate counting of progress in obtain_file#5174
Flamefire wants to merge 1 commit into
easybuilders:developfrom
Flamefire:double-file-progress

Conversation

@Flamefire

Copy link
Copy Markdown
Contributor

obtain_file calls obtain_file_raise_on_failure but both are wrapped in a decorator that increases the progress of the RICH progressbar. This causes it to be incremented twice for each file.

Add a test for the fetch_step which also verifies this behavior.

Note that I'm using unittest.mock to verify the progressbar calls and avoid actually downloading anything.

Comment thread test/framework/easyblock.py
@branfosj branfosj mentioned this pull request Apr 15, 2026
`obtain_file` calls `obtain_file_raise_on_failure` but both are wrapped
in a decorator that increases the progress of the RICH progressbar.
This causes it to be incremented twice for each file.
Add a test for the `fetch_step` which also verifies this behavior.
@Flamefire Flamefire force-pushed the double-file-progress branch from 48b8fed to 3a94983 Compare June 12, 2026 07:19
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