Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Oct 5, 2023
1 parent b0cbfcb commit fa8a684
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
sed -i "s/VAR_JENKINS_SITE/DIRAC.Jenkins.ch/g" pilot.json
sed -i "s/VAR_JENKINS_CE/jenkins-lhcb.cern.ch/g" pilot.json
sed -i "s/VAR_JENKINS_QUEUE/jenkins-queue_not_important/g" pilot.json
sed -i "s/VAR_DIRAC_VERSION//g" pilot.json
sed -i "s/VAR_DIRAC_VERSION/v11.0.20/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
Expand Down
5 changes: 5 additions & 0 deletions Pilot/pilotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,17 @@ def _locateInstallationScript(self):
def _getPreinstalledEnvScript(self):
""" Get preinstalled environment script if any """

self.log.debug(f"self.pp.preinstalledEnv = {self.pp.preinstalledEnv}")
self.log.debug(f"self.pp.preinstalledEnvPrefix = {self.pp.preinstalledEnvPrefix}")

preinstalledEnvScript = self.pp.preinstalledEnv
if not preinstalledEnvScript and self.pp.preinstalledEnvPrefix:
version = self.pp.releaseVersion or "pro"
arch = platform.system() + "-" + platform.machine()
preinstalledEnvScript = os.path.join(self.pp.preinstalledEnvPrefix, version, arch, "diracosrc")

self.log.debug(f"preinstalledEnvScript = {preinstalledEnvScript}")

if preinstalledEnvScript:
self.log.info("Evaluating env script %s" % preinstalledEnvScript)
if not safe_listdir(os.path.dirname(preinstalledEnvScript)):
Expand Down

0 comments on commit fa8a684

Please sign in to comment.