Skip to content

Commit cb0445e

Browse files
committed
test: use CVMFS in the PilotWrapper tests' containers
1 parent 2821b6a commit cb0445e

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/pilotWrapper.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@ jobs:
1515
- 2.7.13
1616
- 3.6.8
1717
- 3.11.4
18+
pilot_branch:
19+
- master
20+
- devel
1821

1922
steps:
20-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
24+
- uses: cvmfs-contrib/github-action-cvmfs@v3
25+
26+
- name: Test CernVM-FS
27+
run: ls /cvmfs/dirac.egi.eu
28+
2129
- name: Fail-fast for outdated pipelines
2230
run: .github/workflows/fail-fast.sh
31+
2332
- name: prepare environment
2433
run: |
2534
conda config --set add_pip_as_python_dependency false
@@ -28,4 +37,4 @@ jobs:
2837
run: |
2938
cp tests/Integration/WorkloadManagementSystem/Test_GenerateAndExecutePilotWrapper.py .
3039
eval "$(conda shell.bash hook)" && conda activate python_${{ matrix.python }}
31-
python Test_GenerateAndExecutePilotWrapper.py file://${{ github.workspace }}/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py
40+
python Test_GenerateAndExecutePilotWrapper.py file://${{ github.workspace }}/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py ${{ matrix.pilot_branch }}

tests/Integration/WorkloadManagementSystem/Test_GenerateAndExecutePilotWrapper.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717
# python Test_GenerateAndExecutePilotWrapper.py url://to_PilotWrapper.py
1818

1919

20-
from __future__ import print_function
21-
from __future__ import absolute_import
22-
from __future__ import division
20+
from __future__ import absolute_import, division, print_function
2321

24-
import sys
2522
import os
23+
import sys
2624
import time
2725

2826
# 1) gets the (DIRAC-free) PilotWrapper.py
@@ -41,6 +39,7 @@
4139
rf = url_library_urlopen(sys.argv[1], context=context)
4240
else:
4341
rf = url_library_urlopen(sys.argv[1])
42+
pilotBranch = sys.argv[2]
4443

4544
with open("PilotWrapper.py", "wb") as pj:
4645
pj.write(rf.read())
@@ -53,7 +52,7 @@
5352

5453
res = pilotWrapperScript(
5554
pilotOptions="--setup=CI -N ce.dirac.org -Q DIRACQUEUE -n DIRAC.CI.ORG --pythonVersion=3 --debug",
56-
location="diracproject.web.cern.ch/diracproject/tars/Pilot/DIRAC/master/,wrong.cern.ch",
55+
location="diracproject.web.cern.ch/diracproject/tars/Pilot/DIRAC/" + pilotBranch + "/,wrong.cern.ch",
5756
)
5857

5958
with open("pilot-wrapper.sh", "wb") as pj:

0 commit comments

Comments
 (0)