-
Notifications
You must be signed in to change notification settings - Fork 224
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
👌 IMPROVE: Add account
option to LsfScheduler
#4832
👌 IMPROVE: Add account
option to LsfScheduler
#4832
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4832 +/- ##
===========================================
+ Coverage 79.54% 79.58% +0.04%
===========================================
Files 519 519
Lines 37092 37093 +1
===========================================
+ Hits 29502 29517 +15
+ Misses 7590 7576 -14
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Mmm I know this is a bit of a PITA because most of the these would be more related to the error messages you are fixing than the actual addition of BTW: not sure if you requested from @chrisjsewell because you wanted him to check or test for anything specific, the PR looks rather straightforward to me, so I could approve it once the tests are there if you want. |
Fine to be reviewed by anyone that feels confident. It isn't a difficult change but some experience with the LSF scheduler would be useful. Don't really have time to be adding tests for these exception cases though. |
Ah, ok, I see. In that case yes, we can wait for @chrisjsewell review. In the meantime, if you don't mind, I could try adding up the tests for these exception raises. |
That'd be great. Please feel free to go ahead |
@sphuber did you allow for modifications in your PR-branch? I can't seem to push changes to it. I'm trying the following: (aiida-full) workuser@apolos-Air aiida-core % git status
On branch pr4832_lsf
nothing to commit, working tree clean
(aiida-full) workuser@apolos-Air aiida-core % git remote -vv
fork https://ramirezfranciscof@github.com/ramirezfranciscof/aiida-core.git (fetch)
fork https://ramirezfranciscof@github.com/ramirezfranciscof/aiida-core.git (push)
sphuber https://ramirezfranciscof@github.com/sphuber/aiida-core (fetch)
sphuber https://ramirezfranciscof@github.com/sphuber/aiida-core (push)
(aiida-full) workuser@apolos-Air aiida-core % git push --set-upstream sphuber:fix/lsf-scheduler-add-account-option
ssh: Could not resolve hostname sphuber: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. |
You are even already added as a collaborator on my fork, but I think it wouldn't even be necessary in principle.
and then push your branch as
|
What do you mean "weird"? Do you say for the I anyways tried changing it and push how you suggested and didn't work. This seemed to do the trick though:
I was suspecting it would be related to the million different ways in which git tries to deduce which are the source branch and target repo/branch, of which apparently I'm not yet super clear on how they work. Anyhow, it worked now, so as you were... (EDIT: I got the solution from here, just for reference) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I thought that since I was adding tests and the testsuite was not very complex I would migrate the format to pytest, but apparently this complicated a bit github's understanding of the changes.
If it helps, I think you can just ignore test_parse_common_joblist_output
, or just verify that the only thing I did was taking it out of the class (idem for test_submit_output
and test_kill_output
).
8ba6cf2
to
d7bbafe
Compare
Thanks a lot @ramirezfranciscof . For me this would be good to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep all good in the hood 👍
LsfScheduler
: add support for account
optionaccount
option to LsfScheduler
grr @aiidateam/dependency-manager, pip has suddenly decided that it can't resolve dependencies for |
Looks like it might just be timing out? 😕 |
Yeh thats because it can't work out compatible dependencies, it just goes on forever downloading exponential numbers of package versions. If you can workout what package has changed since it was working, and pin that, then this behaviour will disappear |
I just ran an analysis and found that the following packages had releases since yesterday:
Of those only tqdm and pre-commit could be affected since django and sqlalchemy are constrained to older versions. For the record, the following packages had releases in the past 7 days:
|
thanks @csadorf, at a guess I reckon it could be this: tlocke/pg8000@16b08f3 |
nope no joy |
I tried to constrain tqdm, pre-commit, pg8000, and pytest, but no luck so far. |
I've ran pipenv against the requirements with all extras and found the following conflict:
|
nice cheers, out of interest how long did this take to identify the conflict? |
Just a few minutes. Let's continue discussion relating to this particular problem in the associated issue: #4850 |
No description provided.