Skip to content

Commit ffde42d

Browse files
authored
Merge pull request #195 from PanDAWMS/next
3.12.2.2
2 parents 777bb99 + e5f0e56 commit ffde42d

9 files changed

Lines changed: 12 additions & 10 deletions

File tree

PILOTVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12.1.99
1+
3.12.2.2

pilot/common/errorcodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# under the License.
1818
#
1919
# Authors:
20-
# - Paul Nilsson, paul.nilsson@cern.ch, 2017-25
20+
# - Paul Nilsson, paul.nilsson@cern.ch, 2017-26
2121
# - Wen Guan, wen.guan@cern.ch, 2018
2222

2323
"""Error codes set by the pilot."""
@@ -397,6 +397,7 @@ def add_error_code(
397397
pilot_error_diags = ErrorCodes.pilot_error_diags
398398
if errorcode not in pilot_error_codes:
399399
error_msg = msg if msg else self.get_error_message(errorcode)
400+
errorcode = int(errorcode) # make sure errorcode is an int (in case it was passed as a string)
400401
if priority:
401402
pilot_error_codes.insert(0, errorcode)
402403
pilot_error_diags.insert(0, error_msg)

pilot/scripts/stagein.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def extract_error_info(errc: str) -> (int, str):
379379

380380
_code = re.search(r'error code: (\d+)', errc)
381381
if _code:
382-
error_code = _code.group(1)
382+
error_code = int(_code.group(1)) # int, e.g. 1099
383383

384384
_msg = re.search('details: (.+)', errc)
385385
if _msg:

pilot/scripts/stageout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def extract_error_info(_err: str) -> tuple:
277277

278278
_code = re.search(r'error code: (\d+)', _err)
279279
if _code:
280-
error_code = _code.group(1)
280+
error_code = int(_code.group(1))
281281

282282
_msg = re.search('details: (.+)', _err)
283283
if _msg:

pilot/user/atlas/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,7 @@ def get_redundants() -> list:
20092009
"/panda_pilot*",
20102010
"/work",
20112011
"README*",
2012+
"CLAUDE.md",
20122013
"MANIFEST*",
20132014
"*.part*",
20142015
"docs",

pilot/user/atlas/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def get_payload_environment_variables(cmd: str, job_id: int, task_id: str, attem
417417
if analysis_job:
418418
variables.append('export ROOT_TTREECACHE_SIZE=1;')
419419
try:
420-
core_count = int(os.environ.get('ATHENA_PROC_NUMBER'))
420+
core_count = int(os.environ.get('ATHENA_PROC_NUMBER') or os.environ.get('ATHENA_PROC_NUMBER_JOB'))
421421
except Exception:
422422
_core_count = 'export ROOTCORE_NCPUS=1;'
423423
else:

pilot/util/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
# Pilot version
2828
RELEASE = '3' # released number should be fixed at 3 for Pilot 3
2929
VERSION = '12' # version number is '1' for first release, '0' until then, increased for bigger updates
30-
REVISION = '1' # revision number should be reset to '0' for every new version release, increased for small updates
31-
BUILD = '99' # build number should be reset to '1' for every new development cycle
30+
REVISION = '2' # revision number should be reset to '0' for every new version release, increased for small updates
31+
BUILD = '2' # build number should be reset to '1' for every new development cycle
3232

3333
SUCCESS = 0
3434
FAILURE = 1

pilot/util/https.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,9 +1446,9 @@ def add_error_codes(data: dict, job: JobData) -> None:
14461446
pilot_error_codes = job.piloterrorcodes
14471447
if pilot_error_codes != []:
14481448
logger.warning(f'pilot_error_code(s) = {pilot_error_codes} (will report primary/first error code)')
1449-
data['pilot_error_code'] = pilot_error_codes[0]
1449+
data['pilot_error_code'] = int(pilot_error_codes[0])
14501450
else:
1451-
data['pilot_error_code'] = pilot_error_code
1451+
data['pilot_error_code'] = int(pilot_error_code)
14521452

14531453
def remove_timestamp(log_entry: str) -> str:
14541454
"""Strip a ``YYYY-MM-DD HH:MM:SS[,mmm]`` timestamp from a log entry.

pilot/util/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def handle_updated_job_object(job: JobData, xdata: list, label: str = "stage-in"
373373
error_code = file_dictionary["error"][1]
374374
if error_code:
375375
job.piloterrorcodes, job.piloterrordiags = errors.add_error_code(
376-
error_code, msg=error_diag
376+
int(error_code), msg=error_diag
377377
)
378378
else:
379379
msg = f"{label} file dictionary not found"

0 commit comments

Comments
 (0)