Skip to content

Commit 37d8716

Browse files
feat: Add legacy logging with pilot, diracx
1 parent 3b20343 commit 37d8716

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

.github/workflows/integration.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- TEST_NAME: "Backward Compatibility"
3939
ARGS: CLIENT_INSTALLATION_BRANCH=rel-v8r0 PILOT_INSTALLATION_BRANCH=rel-v8r0
4040
- TEST_NAME: "Test DiracX latest"
41-
ARGS: TEST_DIRACX=Yes
41+
ARGS: TEST_DIRACX=Yes --diracx-dist-dir $GITHUB_WORKSPACE/diracx-dist
4242

4343
steps:
4444
- uses: actions/checkout@v4
@@ -57,7 +57,22 @@ jobs:
5757
packaging \
5858
pyyaml \
5959
requests \
60-
typer
60+
typer \
61+
build
62+
- name: Building wheels
63+
run: |
64+
# Clone diracx
65+
git clone https://github.com/Robin-Van-de-Merghel/diracx.git $GITHUB_WORKSPACE/diracx
66+
67+
# Create dist dir
68+
mkdir -p $GITHUB_WORKSPACE/diracx-dist
69+
70+
# Building diracx
71+
for pkg_dir in $GITHUB_WORKSPACE/diracx/diracx-* $GITHUB_WORKSPACE/diracx; do
72+
echo "Building $pkg_dir"
73+
python -m build --outdir "$GITHUB_WORKSPACE/diracx-dist" $pkg_dir
74+
done
75+
6176
- name: Prepare environment
6277
run: ./integration_tests.py prepare-environment ${{ matrix.ARGS }}
6378
- name: Install server

tests/.dirac-ci-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ config:
44
CLIENT_UPLOAD_BASE64: SSBsaWtlIHBpenphIQo=
55
CLIENT_UPLOAD_LFN: LFN:/vo/test_lfn.txt
66
CLIENT_UPLOAD_FILE: test_lfn.txt
7-
PILOT_INSTALLATION_COMMAND: dirac-pilot.py --modules /home/dirac/LocalRepo/ALTERNATIVE_MODULES/DIRAC -M 2 -N jenkins.cern.ch -Q jenkins-queue_not_important -n DIRAC.Jenkins.ch --pilotUUID=whatever12345 --CVMFS_locations=/home/dirac/ -o diracInstallOnly --wnVO=vo --debug
7+
PILOT_INSTALLATION_COMMAND: dirac-pilot.py --modules /home/dirac/LocalRepo/ALTERNATIVE_MODULES/DIRAC -M 2 -N jenkins.cern.ch -Q jenkins-queue_not_important -n DIRAC.Jenkins.ch --pilotUUID=whatever12345 --CVMFS_locations=/home/dirac/ -o diracInstallOnly --wnVO=vo --debug --diracx_URL=http://diracx:8000/ -z
88
PILOT_JSON: "{
99
\"timestamp\": \"2023-02-13T14:34:26.725499\",
1010
\"CEs\": {
@@ -37,7 +37,7 @@ config:
3737
\"https://server:9135/Configuration/Server\"
3838
]
3939
}"
40-
PILOT_DOWNLOAD_COMMAND: "git clone --single-branch --branch master https://github.com/DIRACGrid/Pilot.git && mv Pilot/Pilot/*.py . && rm -rf Pilot"
40+
PILOT_DOWNLOAD_COMMAND: "git clone --single-branch --branch robin-add-pilot-logging https://github.com/Robin-Van-de-Merghel/Pilot.git && mv Pilot/Pilot/*.py . && rm -rf Pilot"
4141

4242
# List of feature variables which must be passed when preparing
4343
required-feature-flags: []

tests/CI/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ services:
269269
- DIRACX_DB_URL_JOBLOGGINGDB=mysql+aiomysql://Dirac:Dirac@mysql/JobLoggingDB
270270
- DIRACX_DB_URL_SANDBOXMETADATADB=mysql+aiomysql://Dirac:Dirac@mysql/SandboxMetadataDB
271271
- DIRACX_DB_URL_PILOTAGENTSDB=mysql+aiomysql://Dirac:Dirac@mysql/PilotAgentsDB
272-
- 'DIRACX_OS_DB_PILOTLOGSDB={"sqlalchemy_dsn": "mysql+aiomysql://Dirac:Dirac@mysql/PilotLogsDB"}'
273272
- DIRACX_DB_URL_TASKQUEUEDB=mysql+aiomysql://Dirac:Dirac@mysql/TaskQueueDB
274273
- DIRACX_SERVICE_AUTH_TOKEN_KEYSTORE=file:///keystore/jwks.json
275274
- DIRACX_SERVICE_AUTH_TOKEN_ISSUER=http://diracx:8000
@@ -278,11 +277,11 @@ services:
278277
- DIRACX_SERVICE_AUTH_STATE_KEY=uSNPPtZ1EbC5np13zOwmWJ84Duix753Hejzk/u/MQE4=
279278
# Obtained with echo 'InsecureChangeMe' | base64 -d | openssl sha256
280279
- DIRACX_LEGACY_EXCHANGE_HASHED_API_KEY=07cddf6948d316ac9d186544dc3120c4c6697d8f994619665985c0a5bf76265a
280+
- 'DIRACX_OS_DB_PILOTLOGSDB={"hosts": "elastic:changeme@opensearch:9200", "use_ssl": false, "verify_certs": false}'
281281
- 'DIRACX_OS_DB_JOBPARAMETERSDB={"hosts": "elastic:changeme@opensearch:9200", "use_ssl": false, "verify_certs": false}'
282282
- DIRACX_SANDBOX_STORE_BUCKET_NAME=sandboxes
283283
- DIRACX_SANDBOX_STORE_AUTO_CREATE_BUCKET=true
284284
- 'DIRACX_SANDBOX_STORE_S3_CLIENT_KWARGS={"endpoint_url": "http://s3-direct:9090", "aws_access_key_id": "console", "aws_secret_access_key": "console123"}'
285-
286285
ports:
287286
- 8000:8000
288287
depends_on:

tests/CI/run_pilot.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ touch /home/dirac/etc/grid-security/vomses/vomses
2929
# Copy over the pilot proxy
3030
cp /ca/certs/pilot_proxy /tmp/x509up_u$UID
3131

32+
export X509_USER_PROXY=/tmp/x509up_u$UID
33+
3234
eval "${PILOT_DOWNLOAD_COMMAND}"
3335

3436
echo "${PILOT_JSON}" > pilot.json

0 commit comments

Comments
 (0)