Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't attempt to load child targets when initial target loading fails #987

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

JSCU-CNI
Copy link
Contributor

This PR makes sure Target.open_all() does not call target.open_children() if no target was loaded. This can occur when specifying a bogus target path in combination with --children to e.g. target-query.

@Schamper
Copy link
Member

I proposed an alternative fix with ffa0c9c

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.77%. Comparing base (ab6fb97) to head (229bb6c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #987      +/-   ##
==========================================
+ Coverage   77.75%   77.77%   +0.01%     
==========================================
  Files         327      327              
  Lines       28658    28659       +1     
==========================================
+ Hits        22284    22290       +6     
+ Misses       6374     6369       -5     
Flag Coverage Δ
unittests 77.77% <100.00%> (+0.01%) ⬆️

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.

@Schamper Schamper changed the title Fix target loading Don't attempt to load child targets when initial target loading fails Jan 27, 2025
@Schamper Schamper merged commit 2da7893 into fox-it:main Jan 27, 2025
17 of 20 checks passed
@JSCU-CNI JSCU-CNI deleted the fix/children-target-loader branch January 27, 2025 17:04
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