Skip to content

Commit 2ae755b

Browse files
authored
Merge pull request #2262 from jhiemstrawisc/issue-2260
Bump xrdcl-pelican version to v1.2.1
2 parents 5e59905 + cc4910b commit 2ae755b

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

client/fed_long_test.go

+16
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"os"
2929
"path/filepath"
3030
"strconv"
31+
"strings"
3132
"testing"
3233
"time"
3334

@@ -810,6 +811,21 @@ func TestSyncDownload(t *testing.T) {
810811
require.NoError(t, err)
811812
require.Len(t, transferDetailsDownload, 1)
812813

814+
// After the introduction of E2E client checksumming, this test started to break on the final
815+
// direct read download. As best we can currently figure, this happens because the subsequent
816+
// DoPut call overwrites the file without overwriting the files xattrs, where the checksum is
817+
// stored. This causes the final directread DoGet to grab a file with a stale checksum. As a
818+
// workaround until this issue can be resolved in the upstream XRootD operation, we manually
819+
// delete the file from the Origin to force a rewrite of the xattrs checksum.
820+
var originLocation string
821+
for _, export := range fed.Exports {
822+
if strings.Contains(export.FederationPrefix, "/first/namespace") {
823+
originLocation = export.StoragePrefix
824+
break
825+
}
826+
}
827+
require.NoError(t, os.Remove(filepath.Join(originLocation, fmt.Sprintf("sync_download_partial/%s/%s/%s", dirName, filepath.Base(innerTempDir), filepath.Base(innerTempFile.Name())))))
828+
813829
// Change the contents of one already-uploaded file and re-upload it.
814830
// Filesize is the same so a re-download should be skipped.
815831
newTestFileContent := "XXXX content is within another XXXX"

github_scripts/osx_install.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ mkdir dependencies
3131
pushd dependencies
3232

3333
# Install scitokens first, which our xrootd build relies on
34-
git clone --depth=1 https://github.com/scitokens/scitokens-cpp.git
34+
git clone https://github.com/scitokens/scitokens-cpp.git
3535
pushd scitokens-cpp
36+
git checkout v1.1.3
3637
mkdir build
3738
cd build
3839
export SCITOKENS_CPP_DIR=$PWD/release_dir
39-
cmake .. -GNinja -DCMAKE_INSTALL_PREFIX="$PWD/release_dir"
40+
cmake .. -GNinja -DCMAKE_INSTALL_PREFIX="$PWD/release_dir" -DSCITOKENS_BUILD_UNITTESTS=OFF
4041
ninja install
4142
sudo ln -s "$PWD"/release_dir/lib/libSciTokens*.dylib /usr/local/lib
4243
popd
@@ -53,7 +54,7 @@ ninja
5354
ninja install
5455
popd
5556

56-
git clone --branch v1.0.5 https://github.com/PelicanPlatform/xrdcl-pelican.git
57+
git clone --branch v1.2.1 https://github.com/PelicanPlatform/xrdcl-pelican.git
5758
pushd xrdcl-pelican
5859
mkdir build
5960
cd build

images/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ARG NODEJS_VER=20
5454
ARG LOTMAN_SRC_BUILD=false
5555
ARG LOTMAN_VER=0.0.4
5656
ARG XRDCL_PELICAN_SRC_BUILD=false
57-
ARG XRDCL_PELICAN_VER=1.0.5
57+
ARG XRDCL_PELICAN_VER=1.2.1
5858
ARG XRDHTTP_PELICAN_SRC_BUILD=false
5959
ARG XRDHTTP_PELICAN_VER=0.0.6
6060
ARG XROOTD_LOTMAN_SRC_BUILD=false

0 commit comments

Comments
 (0)