Skip to content

[8.1] Parsing the jdl input by using the Job API#6300

Closed
simon-mazenoux wants to merge 1 commit intoDIRACGrid:integrationfrom
simon-mazenoux:feat-parsing-the-jdl-file-into-a-job-object
Closed

[8.1] Parsing the jdl input by using the Job API#6300
simon-mazenoux wants to merge 1 commit intoDIRACGrid:integrationfrom
simon-mazenoux:feat-parsing-the-jdl-file-into-a-job-object

Conversation

@simon-mazenoux
Copy link
Contributor

BEGINRELEASENOTES

*API
NEW: JDLs are now parsed using the Job API

ENDRELEASENOTES

@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from 9487f9c to fcb234d Compare August 10, 2022 09:12
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch 5 times, most recently from 7a7d58a to 0a821f0 Compare August 30, 2022 12:05
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from 0a821f0 to dac20c9 Compare September 19, 2022 07:16
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from dac20c9 to 644cfd2 Compare April 25, 2023 12:50
@simon-mazenoux simon-mazenoux changed the title [8.1] Parsing the jdl input by using the Job API [8.0] Parsing the jdl input by using the Job API Apr 25, 2023
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from 644cfd2 to 1096dc8 Compare April 25, 2023 13:15
@simon-mazenoux simon-mazenoux changed the base branch from integration to rel-v8r0 April 25, 2023 13:17
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from 1096dc8 to ec513cc Compare April 25, 2023 13:28
@DIRACGridBot DIRACGridBot added the alsoTargeting:integration Cherry pick this PR to integration after merge label Apr 25, 2023
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch 4 times, most recently from 5aa948b to f407807 Compare April 26, 2023 12:40
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from f407807 to 278b362 Compare May 5, 2023 13:46
@simon-mazenoux simon-mazenoux marked this pull request as ready for review May 10, 2023 12:32
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from 278b362 to 02957e1 Compare May 15, 2023 15:58
@simon-mazenoux simon-mazenoux requested a review from chaen as a code owner May 15, 2023 15:58
@simon-mazenoux simon-mazenoux changed the base branch from rel-v8r0 to integration May 15, 2023 15:59
@simon-mazenoux simon-mazenoux changed the title [8.0] Parsing the jdl input by using the Job API [8.1] Parsing the jdl input by using the Job API May 15, 2023
@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from 02957e1 to 5d5c0db Compare May 16, 2023 16:02
"Extra JDL attribute parsed by the loadJDLasJob function",
)

# TODO: Replace the two lines above by the following ones to let time for
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines should replace the above line from v8.2, shouldn't they?

You should probably change that in your documentation: https://github.com/DIRACGrid/DIRAC/pull/6300/files#diff-6d81cf9183302a57608464ac03712f23286f63667a7e7061cb79a3c9a164c3d7R94

Also, once merged, you can open an issue to remind us to make the change from v8.2.

@@ -0,0 +1,156 @@
# pylint: disable=protected-access,missing-docstring, invalid-name

from unittest.mock import patch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can use the pytest mocker instead of the unittest one (see Test_HTCondorComputingElement).
To be checked.

self.maxRescheduling = self.getCSOption("MaxRescheduling", 3)

# loading the function that will be used to determine the platform (it can be VO specific)
res = ObjectLoader().loadObject("ConfigurationSystem.Client.Helpers.Resources", "getDIRACPlatform")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would depend on this discussion: #7018

if value is None:
value = jobDescription.getAttributeFloat(attribute)
if value is None:
value = jobDescription.get_expression(attribute)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this line here?

Suggested change
value = jobDescription.get_expression(attribute)

@simon-mazenoux simon-mazenoux force-pushed the feat-parsing-the-jdl-file-into-a-job-object branch from 5d5c0db to e7b84eb Compare May 23, 2023 16:10
@fstagni
Copy link
Contributor

fstagni commented Jun 22, 2023

As discussed: not for now.

@fstagni fstagni closed this Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alsoTargeting:integration Cherry pick this PR to integration after merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants