Skip to content

Commit 81a6362

Browse files
spoorccclaude
authored andcommitted
Fix #1096: print runtime errors in context of failing subproject
Replace the pattern of collecting RuntimeErrors across all subprojects and printing them at the end with immediate in-context logging via `logger.print_warning_line(project.name, str(exc))` at the point of failure. This ensures errors like "svn not available on system" appear next to the subproject they belong to instead of at the end of the run. The final `raise RuntimeError()` (no message) still produces a non-zero exit code without double-printing. Also bumps version to 0.14.0 and updates CHANGELOG, feature tests. https://claude.ai/code/session_01RTgPqrX37jFkK843dq65Bu Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fb807b6 commit 81a6362

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

features/check-git-repo.feature

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,10 @@ Feature: Checking dependencies from a git repository
180180
Then the output shows
181181
"""
182182
Dfetch (0.14.0)
183-
>>>git ls-remote --heads https://giiiiiidhub.com/i-do-not-exist/broken<<< failed!
184-
'https://giiiiiidhub.com/i-do-not-exist/broken' is not a valid URL or unreachable:
185-
fatal: unable to access 'https://giiiiiidhub.com/i-do-not-exist/broken/': Could not resolve host: giiiiiidhub.com
183+
non-existent-url:
184+
> >>>git ls-remote --heads https://giiiiiidhub.com/i-do-not-exist/broken<<< failed!
185+
'https://giiiiiidhub.com/i-do-not-exist/broken' is not a valid URL or unreachable:
186+
fatal: unable to access 'https://giiiiiidhub.com/i-do-not-exist/broken/': Could not resolve host: giiiiiidhub.com
186187
"""
187188

188189
Scenario: A non-existent tag, branch or revision is reported

features/check-svn-repo.feature

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ Feature: Checking dependencies from a svn repository
138138
Then the output shows
139139
"""
140140
Dfetch (0.14.0)
141-
>>>svn info --non-interactive https://giiiiiidhub.com/i-do-not-exist/broken/trunk<<< failed!
142-
'https://giiiiiidhub.com/i-do-not-exist/broken/trunk' is not a valid URL or unreachable:
143-
svn: E170013: Unable to connect to a repository at URL 'https://giiiiiidhub.com/i-do-not-exist/broken/trunk'
144-
svn: E670002: Name or service not known
141+
non-existent-url:
142+
> >>>svn info --non-interactive https://giiiiiidhub.com/i-do-not-exist/broken/trunk<<< failed!
143+
'https://giiiiiidhub.com/i-do-not-exist/broken/trunk' is not a valid URL or unreachable:
144+
svn: E170013: Unable to connect to a repository at URL 'https://giiiiiidhub.com/i-do-not-exist/broken/trunk'
145+
svn: E670002: Name or service not known
145146
"""
146147

147148
Scenario: A non-existent tag in svn repo

features/patch-after-fetch-svn.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ Feature: Patch after fetching from svn repo
7676
source/target file does not exist:
7777
--- b'build-deb2.sh'
7878
+++ b'build-deb2.sh'
79-
Applying patch "diff.patch" failed
79+
> Applying patch "diff.patch" failed
8080
"""

0 commit comments

Comments
 (0)