Skip to content

Commit

Permalink
Fixed macos failing tests:
Browse files Browse the repository at this point in the history
Pinned macos xrootd to last working version
Added an error check in LocalCache.Stat()
  • Loading branch information
Emma Turetsky committed Nov 22, 2024
1 parent 9b2a194 commit e47915f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion github_scripts/osx_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ popd

# Build XRootD from source
# Add patches to xrootd source code if needed
git clone --depth=1 https://github.com/xrootd/xrootd.git
git clone --depth=10 https://github.com/xrootd/xrootd.git
pushd xrootd
git checkout d74b2af36d04c398a91235bd2de32ee1283e92fe
patch -p1 < $scriptdir/pelican_protocol.patch
mkdir xrootd_build
cd xrootd_build
Expand Down
3 changes: 3 additions & 0 deletions local_cache/local_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,9 @@ func (lc *LocalCache) Stat(path, token string) (uint64, error) {
dUrl.Path = path
dUrl.Scheme = "pelican"
statInfo, err := client.DoStat(context.Background(), dUrl.String(), client.WithToken(token))
if err != nil {
return 0, err
}
return uint64(statInfo.Size), err
}

Expand Down

0 comments on commit e47915f

Please sign in to comment.