Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Nov 3, 2023
1 parent d2ea102 commit 197c866
Showing 1 changed file with 47 additions and 43 deletions.
90 changes: 47 additions & 43 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- dteam
- gridpp

container: python:${{ matrix.python }}-slim
# container: python:${{ matrix.python }}-slim

steps:
- uses: actions/checkout@v4
Expand All @@ -36,6 +36,10 @@ jobs:
HOSTCERT_BASE64: ${{ secrets.HOSTCERT_BASE64 }}
HOSTKEY_BASE64: ${{ secrets.HOSTKEY_BASE64 }}
run: |
which python
python --version
ls /usr/bin/python*
which update-alternatives
cd Pilot
mkdir -p etc/grid-security
echo "$HOSTCERT_BASE64" | base64 --decode > etc/grid-security/hostcert.pem
Expand Down Expand Up @@ -140,51 +144,51 @@ jobs:
matching:
runs-on: ubuntu-latest
# matching:
# runs-on: ubuntu-latest

strategy:
matrix:
python:
- 2.7.18
- 3.6.15
- 3.9.17
pilot_schema:
- pilot_oldSchema.json
- pilot_newSchema.json
# strategy:
# matrix:
# python:
# - 2.7.18
# - 3.6.15
# - 3.9.17
# pilot_schema:
# - pilot_oldSchema.json
# - pilot_newSchema.json

container: python:${{ matrix.python }}-slim
# container: python:${{ matrix.python }}-slim

steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v3

- name: Test CernVM-FS
run: ls /cvmfs/dirac.egi.eu

- name: Retrieve the secret and decode it to a file
env:
HOSTCERT_BASE64: ${{ secrets.HOSTCERT_BASE64 }}
HOSTKEY_BASE64: ${{ secrets.HOSTKEY_BASE64 }}
run: |
cd Pilot
mkdir -p etc/grid-security
echo "$HOSTCERT_BASE64" | base64 --decode > etc/grid-security/hostcert.pem
echo "$HOSTKEY_BASE64" | base64 --decode > etc/grid-security/hostkey.pem
chmod 440 etc/grid-security/hostcert.pem
chmod 400 etc/grid-security/hostkey.pem
- name: tests
run: |
cd Pilot
cp ../tests/CI/${{ matrix.pilot_schema }} pilot.json
sed -i "s/VAR_JENKINS_SITE/DIRAC.Jenkins.ch/g" pilot.json
sed -i "s/VAR_JENKINS_CE/jenkins-full.cern.ch/g" pilot.json
sed -i "s/VAR_JENKINS_QUEUE/jenkins-queue_not_important/g" pilot.json
sed -i "s/VAR_DIRAC_VERSION/integration/g" 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
sed -i "s#VAR_USERDN_GRIDPP#${DIRACUSERDN_GRIDPP}#g" pilot.json
python dirac-pilot.py --modules https://github.com/DIRACGrid/DIRAC.git:::DIRAC:::integration -M 1 -S DIRAC-Certification -N jenkins-full.cern.ch -Q jenkins-queue_not_important -n DIRAC.Jenkins.ch --wnVO=dteam --cert --certLocation=${GITHUB_WORKSPACE}/Pilot/etc/grid-security --debug
# steps:
# - uses: actions/checkout@v4
# - uses: cvmfs-contrib/github-action-cvmfs@v3

# - name: Test CernVM-FS
# run: ls /cvmfs/dirac.egi.eu

# - name: Retrieve the secret and decode it to a file
# env:
# HOSTCERT_BASE64: ${{ secrets.HOSTCERT_BASE64 }}
# HOSTKEY_BASE64: ${{ secrets.HOSTKEY_BASE64 }}
# run: |
# cd Pilot
# mkdir -p etc/grid-security
# echo "$HOSTCERT_BASE64" | base64 --decode > etc/grid-security/hostcert.pem
# echo "$HOSTKEY_BASE64" | base64 --decode > etc/grid-security/hostkey.pem
# chmod 440 etc/grid-security/hostcert.pem
# chmod 400 etc/grid-security/hostkey.pem
# - name: tests
# run: |
# cd Pilot
# cp ../tests/CI/${{ matrix.pilot_schema }} pilot.json
# sed -i "s/VAR_JENKINS_SITE/DIRAC.Jenkins.ch/g" pilot.json
# sed -i "s/VAR_JENKINS_CE/jenkins-full.cern.ch/g" pilot.json
# sed -i "s/VAR_JENKINS_QUEUE/jenkins-queue_not_important/g" pilot.json
# sed -i "s/VAR_DIRAC_VERSION/integration/g" 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
# sed -i "s#VAR_USERDN_GRIDPP#${DIRACUSERDN_GRIDPP}#g" pilot.json
# python dirac-pilot.py --modules https://github.com/DIRACGrid/DIRAC.git:::DIRAC:::integration -M 1 -S DIRAC-Certification -N jenkins-full.cern.ch -Q jenkins-queue_not_important -n DIRAC.Jenkins.ch --wnVO=dteam --cert --certLocation=${GITHUB_WORKSPACE}/Pilot/etc/grid-security --debug


integration-cvmfs_matching:
Expand Down

0 comments on commit 197c866

Please sign in to comment.