Skip to content

Commit

Permalink
CMSSW multi microarch support: set env after sandbox extraction (#8853)
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored Dec 2, 2024
1 parent ddd6ce1 commit e5256c6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/CMSRunAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,9 @@ def compareBrachListWithReference(branchList, tier):
)

print(f"==== SCRAM Obj CREATED at {UTCNow()} ====")
if scram.project() or scram.runtime(): # if any of the two commands fail...
if scram.project(): # if scram project fails...
dgn = scram.diagnostic()
handleException("FAILED", EC_CMSMissingSoftware, f"Error setting CMSSW environment: {dgn}")
handleException("FAILED", EC_CMSMissingSoftware, f"Error creating CMSSW project area: {dgn}")
mintime()
sys.exit(EC_CMSMissingSoftware)
print(f"==== {options.cmsswVersion} release directory created ====")
Expand All @@ -671,6 +671,14 @@ def compareBrachListWithReference(branchList, tier):
print("==== Extract user sandbox in top and CMSSW directory ====")
extractUserSandbox(options.archiveJob)

#Multi-microarch env: Setting cmssw env after extracting the sandbox
print(f"==== SCRAM runtime environment CREATED at {UTCNow()} ====")
if scram.runtime(): # if scram runtime fails...
dgn = scram.diagnostic()
handleException("FAILED", EC_CMSMissingSoftware, f"Error setting CMSSW environment: {dgn}")
mintime()
sys.exit(EC_CMSMissingSoftware)

# tweaking of the PSet is needed both for CMSSWStack and ScriptEXE
print(f"==== Tweak PSet at {UTCNow()} ====")
tweakingScriptName = 'tweakThePset.sh'
Expand Down

0 comments on commit e5256c6

Please sign in to comment.