Skip to content

Svn mirrors - #714

Merged
jkloetzke merged 2 commits into
BobBuildTool:masterfrom
jkloetzke:svn-mirrors
Oct 8, 2026
Merged

jkloetzke merged 2 commits into
BobBuildTool:masterfrom
jkloetzke:svn-mirrors

Conversation

@jkloetzke

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.59459% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.90%. Comparing base (7baba22) to head (fea9c40).

Files with missing lines Patch % Lines
pym/bob/scm/svn.py 94.44% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #714   +/-   ##
=======================================
  Coverage   89.89%   89.90%           
=======================================
  Files          50       50           
  Lines       16897    16931   +34     
=======================================
+ Hits        15189    15221   +32     
- Misses       1708     1710    +2     

☔ View full report in Codecov by Harness.
📢 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

Copy link
Copy Markdown
Member Author

@sbixl, could you check if this solves your problem?

@sbixl

sbixl commented Oct 3, 2026

Copy link
Copy Markdown

Sure, i will have a look on it next week. 👍

@jkloetzke jkloetzke added this to the 1.3 milestone Oct 6, 2026
@sbixl

sbixl commented Oct 7, 2026

Copy link
Copy Markdown

I tested it and everything works perfectly. Thanks for implementing and providing this feature. 👍

There is just one minor cosmetic enhancement I would suggest: when the primary repository URL cannot be reached and the system switches to a fallback mirror, it would be helpful to log this explicitly. Right now, the command-line output gives the impression that the operation has failed, and then the checkout unexpectedly succeeds. An informational message about the fallback mirror would make the process much easier to understand.

my-release/hw-variant-b/project::fwup-target
CHECKOUT dev\src\project\fwup\1\workspace (initial checkout)
svn: E170013: Unable to connect to a repository at URL 'https://svn-server.com/svn/fwup/bin'
svn: E730061: Error running context: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.
Warning: Checkout from 'https://svn-server.com/svn/fwup/bin' failed!
--> TODO: Print some info message that the fallback mirror is used now.
A fwup\changelog.txt
...

Like URL SCMs, support mirrors for SVN. Unfortunately there is no way to
verify that the mirror holds the same content as the primary URL. Bob
just has to assume that this is the case.

Fixes BobBuildTool#703.
@jkloetzke

Copy link
Copy Markdown
Member Author

Sure, makes sense. The warning now prints something like:

Warning: Checkout from 'file:///tmp/tmp9y4qfxba/does-not-exist/trunk' failed! Trying 'file:///tmp/tmp9y4qfxba/mirror/trunk' next...

I guess this is enough?

@sbixl

sbixl commented Oct 8, 2026

Copy link
Copy Markdown

Perfect, I just tested it again. Everything looks good to me!

@jkloetzke
jkloetzke merged commit a8ff447 into BobBuildTool:master Oct 8, 2026
11 checks passed
@jkloetzke
jkloetzke deleted the svn-mirrors branch October 8, 2026 16:23
@jkloetzke

Copy link
Copy Markdown
Member Author

Thanks for testing!

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