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

CLI: Add verdi devel launch-multiply-add #6601

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

GeigerJ2
Copy link
Contributor

@GeigerJ2 GeigerJ2 commented Nov 4, 2024

For us devs (@agoscinski, @khsrali) to also debug WorkChains, and/or get those into a fresh profile, akin to verdi devel launch-add.

Copy link
Contributor

@agoscinski agoscinski left a comment

Choose a reason for hiding this comment

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

Looks good, not sure why test fail

assert re.search(r'Submitted workflow', result.stdout)

node = QueryBuilder().append(ProcessNode, tag='node').order_by({'node': {'ctime': 'desc'}}).first(flat=True)
submit_and_await(node)
Copy link
Contributor

Choose a reason for hiding this comment

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

very useful command, did not know about it

Copy link
Contributor Author

@GeigerJ2 GeigerJ2 Nov 5, 2024

Choose a reason for hiding this comment

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

Literally copy-pasted everything from the tests for verdi devel launch-add :D but yes, indeed very useful, thanks for pointing it out!

configures ``bash`` on the ``localhost``. If the localhost is not yet configured as a ``Computer``, that is also
done automatically.
"""
from shutil import which
Copy link
Contributor

Choose a reason for hiding this comment

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

did not know about it, useful

@GeigerJ2
Copy link
Contributor Author

GeigerJ2 commented Nov 5, 2024

Looks good, not sure why test fail

Story of my life :D

@GeigerJ2 GeigerJ2 force-pushed the feature/devel-launch-multiply-add branch from ee41c82 to 7d4fe57 Compare November 5, 2024 10:09
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 96.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 77.89%. Comparing base (ef60b66) to head (bd7e99e).
Report is 131 commits behind head on main.

Files with missing lines Patch % Lines
src/aiida/cmdline/commands/cmd_devel.py 96.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6601      +/-   ##
==========================================
+ Coverage   77.51%   77.89%   +0.39%     
==========================================
  Files         560      567       +7     
  Lines       41444    42151     +707     
==========================================
+ Hits        32120    32829     +709     
+ Misses       9324     9322       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Without it, the `localhost` computer would have already been created in
the tests for `launch-add`, so the first test for `launch-multiply-add`
would fail.
@GeigerJ2 GeigerJ2 force-pushed the feature/devel-launch-multiply-add branch from 7d4fe57 to bd7e99e Compare November 5, 2024 10:44
@GeigerJ2
Copy link
Contributor Author

GeigerJ2 commented Nov 5, 2024

Pls approve when CI is done, @agoscinski, pretty please :3

@GeigerJ2 GeigerJ2 merged commit 2ed19dc into aiidateam:main Nov 5, 2024
12 checks passed
@GeigerJ2 GeigerJ2 deleted the feature/devel-launch-multiply-add branch November 5, 2024 14:13
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.

2 participants