Skip to content

fix: addressing #2197 by allowing 256 character account names in slurm#2198

Merged
johanneskoester merged 1 commit intosnakemake:mainfrom
LJI-Bioinformatics:fix/long-slurm-account-names
Jun 16, 2023
Merged

fix: addressing #2197 by allowing 256 character account names in slurm#2198
johanneskoester merged 1 commit intosnakemake:mainfrom
LJI-Bioinformatics:fix/long-slurm-account-names

Conversation

@jgbaum
Copy link
Copy Markdown
Contributor

@jgbaum jgbaum commented Mar 28, 2023

Description

This changes the format string on the calls to 'sacct' and 'sacctmgr' to allow for long slurm account names. This fix seems to work on our slurm cluster.

QC

  • The PR contains a test case for the changes or the changes are already covered by an existing test case.
  • The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

@jgbaum jgbaum requested a review from johanneskoester as a code owner March 28, 2023 22:22
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-advanced-security
Copy link
Copy Markdown

You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

@jgbaum jgbaum changed the title addressing #2197 by allowing 256 character account names in slurm fix: addressing #2197 by allowing 256 character account names in slurm Mar 28, 2023
Copy link
Copy Markdown
Member

@dlaehnemann dlaehnemann left a comment

Choose a reason for hiding this comment

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

Seems like a trivial change to me, where I can't see any negative side effects. So if this fixes the problem locally, this should be fine to merge.

@dlaehnemann
Copy link
Copy Markdown
Member

Also, we should follow up on your suggestion for a more thorough fix:
#2197 (comment)

But this fix works for now, and doesn't need any further digging into the slurm docs... 😅

@ReubenJ
Copy link
Copy Markdown

ReubenJ commented Jun 14, 2023

Would greatly appreciate this change. Most of TU Delft's accounts are longer than 20 characters (examples), meaning we cannot make use of --slurm on our cluster. Sorry to bump, but any reason this can't be merged @johanneskoester?

Edit: Can confirm that this fix works for me.

@johanneskoester johanneskoester merged commit ab58c65 into snakemake:main Jun 16, 2023
@johanneskoester
Copy link
Copy Markdown
Contributor

Sorry for the delay. This slipped my attention. If something like that happens, always feel free to ping me via discord (username johanneskoester).

@johanneskoester
Copy link
Copy Markdown
Contributor

I'll release this today.

@ReubenJ
Copy link
Copy Markdown

ReubenJ commented Jun 16, 2023

No worries! Thank you 🙌

vsoch pushed a commit to vsoch/snakemake that referenced this pull request Jun 20, 2023
…s in slurm (snakemake#2198)

### Description

This changes the format string on the calls to 'sacct' and 'sacctmgr' to
allow for long slurm account names. This fix seems to work on our slurm
cluster.

### QC
<!-- Make sure that you can tick the boxes below. -->

* [ ] The PR contains a test case for the changes or the changes are
already covered by an existing test case.
* [x] The documentation (`docs/`) is updated to reflect the changes or
this is not necessary (e.g. if the change does neither modify the
language nor the behavior or functionalities of Snakemake).
johanneskoester pushed a commit that referenced this pull request Jun 22, 2023
🤖 I have created a release *beep* *boop*
---


##
[7.29.0](v7.28.3...v7.29.0)
(2023-06-21)


### Features

* introduce --workflow-profile for additional workflow specific profiles
that overwrite global profiles; add ability to define key-value CLI
flags like --set-threads or --set-resources as multi-level dictionaries
in profile config yaml files
([#2310](#2310))
([9675c17](9675c17))


### Bug Fixes

* addressing [#2197](#2197)
by allowing 256 character account names in slurm
([#2198](#2198))
([ab58c65](ab58c65))
* removed distutils from snakemake
([#2312](#2312))
([9b8c362](9b8c362))
* Update __init__.py to move "file" param to "print"
([#2291](#2291))
([92352b6](92352b6))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

5 participants