Skip to content

DM-55824: (hotfix) Fix bad test logic - #155

Merged
timj merged 2 commits into
mainfrom
tickets/DM-55824-hotfix
Aug 17, 2026
Merged

timj merged 2 commits into
mainfrom
tickets/DM-55824-hotfix

Conversation

@timj

@timj timj commented Aug 17, 2026

Copy link
Copy Markdown
Member

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

timj and others added 2 commits August 17, 2026 09:49
base_path is interpolated straight into a URI string, so a raw OS path
leaves characters such as "+" unencoded. join() quotes only the
component being joined and so preserves the unencoded base, while walk()
rebuilds the URI from the OS path and encodes all of it, making the two
disagree.

Root the tests below a directory containing a "+" so this is always
exercised. EUPS build directories embed the package version in their
name, which is where this first showed up.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
_make_uri can not percent-encode the components itself: it does not know
which ResourcePath class will be built from the string it returns, so it
can not consult quotePaths, and encoding an already-encoded path would
corrupt it. Record that requirement on the method and on base_path.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.46%. Comparing base (80c1a44) to head (16f84e7).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #155   +/-   ##
=======================================
  Coverage   83.46%   83.46%           
=======================================
  Files          38       38           
  Lines        8109     8112    +3     
  Branches      975      975           
=======================================
+ Hits         6768     6771    +3     
  Misses       1044     1044           
  Partials      297      297           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@timj
timj merged commit 71aa5f6 into main Aug 17, 2026
26 checks passed
@timj
timj deleted the tickets/DM-55824-hotfix branch August 17, 2026 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.

1 participant