Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-28929: Allow non-string HTCondor attributes #19

Merged
merged 3 commits into from Feb 24, 2021

Conversation

MichelleGower
Copy link
Collaborator

The HTCondor plugin's code assumed that attribute value was a string. But Walltime on NCSA's DAC cluster needs to be an integer. So this ticket fixed the plugin code. Also some unrelated doc changes.

Update doc/conf.py to new version
Add a :no-inherited-members: option to the automodapi directive in
    ctrl_bps/doc/lsst.ctrl.bps/index.rst to workaround bug.
Since having to test building the docs, included minor text changes:
    Update pipeline syntax from ':' to '#' to match stack changes.
    Fix one missed capitalization change (qgraph_file to qgraphFile).
htcondor = None


@unittest.skipIf(not htcondor, "Warning: Missing HTCondor API. Skipping")
Copy link
Member

Choose a reason for hiding this comment

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

This is fine, although I think I'd prefer skipIf(htcondor is None, ...) to be explicit. You can also say:

@unittest.skipUnless(htcondor is not None, "...")

value : `str`
String that needs to have characters escaped.
value : `Any`
Value that needs to have characters escaped if string
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need a period at the end of this sentence?

else:
pval = value

print(f'+{key} = {pval}', file=stream)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add a brief comment here hinting why this check in necessary here? Since it is so "close" to identical check in htc_escape() it took me longer that I'd like to admit to figure out that they serve two different purposes.

@MichelleGower MichelleGower merged commit 89fe1a4 into master Feb 24, 2021
@MichelleGower MichelleGower deleted the tickets/DM-28929 branch February 24, 2021 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants