-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: submitAndMatch | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'integration' | ||
- 'rel-v8r0' | ||
|
||
jobs: | ||
submitAndMatch: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cvmfs-contrib/github-action-cvmfs@v3 | ||
|
||
- name: Test CernVM-FS | ||
run: ls /cvmfs/dirac.egi.eu | ||
|
||
- name: Checkout Pilot repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: DIRACGrid/Pilot | ||
path: Pilot | ||
|
||
- name: Retrieve the secret and decode | ||
env: | ||
HOSTCERT_BASE64: ${{ secrets.HOSTCERT_BASE64 }} | ||
HOSTKEY_BASE64: ${{ secrets.HOSTKEY_BASE64 }} | ||
run: | | ||
mkdir -p Pilot/Pilot/etc/grid-security | ||
echo "$HOSTCERT_BASE64" | base64 --decode > Pilot/Pilot/etc/grid-security/hostcert.pem | ||
echo "$HOSTKEY_BASE64" | base64 --decode > Pilot/Pilot/etc/grid-security/hostkey.pem | ||
chmod 440 Pilot/Pilot/etc/grid-security/hostcert.pem | ||
chmod 400 Pilot/Pilot/etc/grid-security/hostkey.pem | ||
- name: Install DIRAC client and submit a job | ||
run: | | ||
mkdir client | ||
cd client | ||
bash /cvmfs/dirac.egi.eu/installSource/DIRACOS-Linux-x86_64.sh 2>&1 | ||
source diracos/diracosrc | ||
pip install ${GITHUB_WORKSPACE} | ||
dirac-configure -S "DIRAC-Certification" -C "https://lbcertifdirac70.cern.ch:9135/Configuration/Server" --UseServerCertificate -o /DIRAC/Security/CertFile=${GITHUB_WORKSPACE}/Pilot/Pilot/etc/grid-security/hostcert.pem -o /DIRAC/Security/KeyFile=${GITHUB_WORKSPACE}/Pilot/Pilot/etc/grid-security/hostkey.pem | ||
dirac-admin-get-proxy aboyer dteam_user -o /DIRAC/Security/UseServerCertificate=True --out="/tmp/x509up_u${UID}" -ddd | ||
echo -e '[\n Arguments = "Hello World";\n Executable = "echo";\n Site = "DIRAC.CI.org";' > test.jdl | ||
echo " JobName = \"${GITHUB_JOB}_$(date +"%Y-%m-%d_%T" | sed 's/://g')\"" >> test.jdl | ||
echo "]" >> test.jdl | ||
dirac-wms-job-submit test.jdl | ||
- name: Run pilot | ||
run: | | ||
cd Pilot/Pilot | ||
cp ../../tests/Integration/pilot.json pilot.json | ||
sed -i "s#VAR_CS#https://lbcertifdirac70.cern.ch:9135/Configuration/Server#g" pilot.json | ||
sed -i "s#VAR_USERDN#/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=alboyer/CN=819281/CN=Alexandre Franck Boyer#g" pilot.json | ||
g_job="${{ github.ref }}${GITHUB_JOB//-/}" | ||
pilotUUID="${g_job//_/}""$(shuf -i 2000-65000 -n 1)" | ||
pilotUUID=$(echo $pilotUUID | rev | cut -c 1-32 | rev) | ||
python dirac-pilot.py --modules ${GITHUB_WORKSPACE} -M 1 -S DIRAC-Certification -N ci-full.github.com -Q queue_not_important -n DIRAC.CI.org --cert --certLocation=${GITHUB_WORKSPACE}/Pilot/Pilot/etc/grid-security --wnVO=dteam --pilotUUID="${pilotUUID}" --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"timestamp": "2023-02-13T14:34:26.725499", | ||
"CEs": { | ||
"ci.github.com": { | ||
"Site": "DIRAC.CI.org", | ||
"GridCEType": "TEST" | ||
}, | ||
"ci-full.github.com": { | ||
"Site": "DIRAC.CI.org", | ||
"GridCEType": "TEST-FULL" | ||
} | ||
}, | ||
"Defaults": { | ||
"Pilot": { | ||
"RemoteLogging": "False", | ||
"Commands": { | ||
"TEST": "CheckWorkerNode, InstallDIRAC, ConfigureBasics, RegisterPilot, CheckCECapabilities, CheckWNCapabilities, ConfigureSite, ConfigureArchitecture, ConfigureCPURequirements", | ||
"TEST-FULL": "CheckWorkerNode, InstallDIRAC, ConfigureBasics, RegisterPilot, CheckCECapabilities, CheckWNCapabilities, ConfigureSite, ConfigureArchitecture, ConfigureCPURequirements, LaunchAgent" | ||
} | ||
} | ||
}, | ||
"dteam": { | ||
"Pilot": { | ||
"Version": "integration", | ||
"CheckVersion": "False", | ||
"pilotFileServer": "lbcertifdirac70.cern.ch:8443", | ||
"pilotRepoBranch": "should_not_matter", | ||
"pilotRepo": "https://github.com/should_not_matter/Pilot.git", | ||
"GenericPilotGroup": "dteam_pilot", | ||
"GenericPilotDN": "VAR_USERDN", | ||
"PilotLogLevel": "DEBUG" | ||
} | ||
}, | ||
"ConfigurationServers": [ | ||
"VAR_CS" | ||
] | ||
} |