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

Fix/docker build jq #1

Open
wants to merge 82 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
ab48a4f
CLI: Rename `verdi profile setdefault` to `verdi profile set-default`…
agoscinski Jun 6, 2024
3dbde9e
CLI: Remove the deprecated `verdi database` command (#6460)
sphuber Jun 6, 2024
4c11c06
CLI: Deprecate the `deprecated_command` decorator (#6461)
sphuber Jun 6, 2024
1b4a19a
Devops: Remove `verdi tui` from CLI reference documentation (#6464)
sphuber Jun 6, 2024
82bba13
Devops: Do not pin the mamba version (#6466)
danielhollas Jun 7, 2024
0812f4b
Devops: Add Dependabot config for maintaining GH actions (#6467)
danielhollas Jun 7, 2024
a56a138
CLI: Fix `verdi process [show|report|status|watch|call-root]` no output
agoscinski Jun 6, 2024
72692fa
CLI: Add `--most-recent-node` option to `verdi process watch`
agoscinski May 28, 2024
d91e0a5
CLI: Unify help of `verdi process` commands
agoscinski May 28, 2024
ccb5628
Devops: Bump the gha-dependencies group with 4 updates (#6468)
dependabot[bot] Jun 7, 2024
f553f80
CLI: Add RabbitMQ options to `verdi profile setup` (#6453)
sphuber Jun 7, 2024
202a3ec
CLI: Add the `verdi profile configure-rabbitmq` command (#6454)
sphuber Jun 7, 2024
cd0f9ac
🐛 `RabbitmqBroker`: catch `ConnectionError` for `__str__` (#6473)
mbercx Jun 18, 2024
022f049
CLI: Fix bug with profile name determination in `verdi presto` (#6477)
mbercx Jun 19, 2024
57598b1
✨ CLI: Make `NON_INTERACTIVE` option a switch instead of flag
mbercx Jun 19, 2024
aaada54
👌 CLI: Make `configure-rabbitmq` non-interactive by default
mbercx Jun 19, 2024
c2ca642
👌 CLI: Give feedback for `configure-rabbitmq`
mbercx Jun 19, 2024
6db2f40
Dependencies: Update `tabulate>=0.8.0,<0.10.0` (#6472)
sphuber Jun 24, 2024
6316099
CLI: Remove the RabbitMQ options from `verdi profile setup` (#6480)
sphuber Jun 28, 2024
8ea203c
CLI: Change `--profile` to `-p/--profile-name` for `verdi profile set…
GeigerJ2 Jun 28, 2024
56995e1
Engine: Improve error message when submitting without broker (#6465)
sphuber Jun 28, 2024
6a3a59b
Doc: Fixing several small issues (#6392)
agoscinski Jun 28, 2024
4cecda5
Devops: Disable code coverage in `test-install.yml` (#6479)
danielhollas Jun 28, 2024
a6cf7fc
Docs: Customize the color scheme through custom style sheet (#6456)
sphuber Jun 28, 2024
45a8b46
CLI: Fail early in `verdi presto` when profile name already exists (#…
sphuber Jun 28, 2024
66a2dce
CLI: Only configure logging in `set_log_level` callback once (#6493)
sphuber Jun 28, 2024
0ee0a0c
Docs: Rework the installation section (#6455)
sphuber Jun 28, 2024
737da38
Daemon: Fix `DbLogHandler` not being configured (#6491)
sphuber Jun 28, 2024
04926fe
Engine: Catch `NotImplementedError`in `get_process_state_change_times…
sphuber Jun 29, 2024
1d104d0
ORM: Cache the logger adapter for `ProcessNode` (#6492)
sphuber Jun 29, 2024
310ff1d
Docs: Clarify `Transport.copy` requires `recursive=True` if source is…
khsrali Jun 29, 2024
a44e643
Tests: Fix `tests.orm.nodes.test_node:test_delete_through_backend` (#…
sphuber Jun 30, 2024
24cfbe2
`QueryBuilder`: Remove implementation for `has_key` in SQLite storage…
sphuber Jun 30, 2024
297c3c9
Devops: Bump `docker/bake-action` from 4 to 5 (#6500)
dependabot[bot] Jul 1, 2024
61ae1a5
Dependencies: Update the requirements files (#6501)
sphuber Jul 1, 2024
076cd79
Devops: Update pre-commit step in CD workflow to match CI
sphuber Jul 1, 2024
2ccfeee
Release `v2.6.0`
sphuber Apr 17, 2024
9fe8fd2
Fixtures: Make `pgtest` truly an optional dependency (#6502)
sphuber Jul 1, 2024
9c26ce7
Release `v2.6.1`
sphuber Jul 1, 2024
14bb05f
Devops: Update pre-commit dependencies (#6504)
pre-commit-ci[bot] Jul 2, 2024
d86017f
Dependencies: Update requirements for `kiwipy` and `plumpy`
sphuber Oct 14, 2022
e913715
`Manager`: Catch `TimeoutError` when closing communicator
sphuber Jul 13, 2023
89cd03c
Docs: Fix typo in pytest plugins codeblock (#6513)
kmlefran Jul 3, 2024
11eefc9
Docs: Add `PluggableSchemaValidator` to nitpick exceptions (#6515)
sphuber Jul 4, 2024
6d2edc9
CLI: Accept mulitple node identifiers in `verdi node graph generate` …
sphuber Jul 4, 2024
f992443
Engine: Fix bug in upload calculation for `PortableCode` with SSH (#6…
sphuber Jul 5, 2024
6196dcd
`SqliteDosStorage`: Make the migrator compatible with SQLite (#6429)
sphuber Jul 5, 2024
5c1f5d6
Docs: Add `robots.txt` to only allow indexing of `latest` and `stable…
khsrali Jul 5, 2024
a3f734d
Docs: Update `redirects.txt` for installation pages (#6509)
GeigerJ2 Jul 5, 2024
c740b99
Docker: Fix release tag in publish workflow (#6520)
danielhollas Jul 5, 2024
a5da4ed
Devops: Mark `test_leak_ssh_calcjob` as nightly (#6521)
danielhollas Jul 10, 2024
9355a98
CLI: Add default for `output_file` in computer and code export comman…
GeigerJ2 Jul 10, 2024
120c8ac
CLI: Catch `NotImplementedError` in `verdi calcjob gotocomputer` (#6525)
khsrali Jul 10, 2024
9579378
Docker: Replace sleep with `s6-notifyoncheck` (#6475)
unkcpz Jul 11, 2024
cba6e7c
Dependencies: Update requirement to `psycopg~=3.0` (#6362)
sphuber Jul 11, 2024
954cbdd
`Scheduler`: Refactor interface to make it more generic (#6043)
sphuber Jul 11, 2024
2bdcb7f
Devops: Add type hints to `aiida.orm.utils.remote` (#6503)
danielhollas Jul 15, 2024
a610460
Dependencies: Pin requirement to minor version `sphinx~=7.2.0` (#6527)
sphuber Jul 16, 2024
de83e2c
`LocalTransport`: Fix typo for `ignore_nonexisting` in `put` (#6471)
MichaelGoulding Jul 17, 2024
a2063f8
CLI: Fix bug `verdi presto` when tab-completing without config (#6535)
sphuber Jul 17, 2024
17dc88c
CLI: `verdi computer test` report correct failed tests (#6536)
sphuber Jul 17, 2024
6b56d8b
Devops: Fix pymatgen import causing mypy to fail (#6540)
sphuber Jul 21, 2024
16b8fe4
Post release: add the `.post0` qualifier to version attribute
sphuber Jul 22, 2024
f1be224
Docker: Make warning test insensitive to deprecation warnings (#6541)
sphuber Jul 22, 2024
4038d55
Docs: Add succint overview of limitations of no-services profile
sphuber Jul 18, 2024
96d9fbd
Docs: Remove note in installation guide regarding Python requirement
sphuber Jul 18, 2024
d73731f
Docs: Move limitations warning to top of quick install
sphuber Jul 18, 2024
71422eb
Add the `SshAutoTransport` transport plugin (#6154)
sphuber Jul 23, 2024
5611dda
Engine: Change signature of `set_process_state_change_timestamp`
sphuber Jul 23, 2024
1b8c58b
Engine: Ignore failing process state change for `core.sqlite_dos`
sphuber Jul 23, 2024
7402c17
CLI: Fix `verdi storage migrate` for profile without broker (#6550)
sphuber Jul 25, 2024
ad1a431
CLI: Validate storage in `verdi storage version` (#6551)
sphuber Aug 5, 2024
cbf672f
Engine: Ensure node is sealed when process excepts (#6549)
sphuber Aug 6, 2024
faab95a
Docs: Correct signature of `get_daemon_client` example snippet (#6554)
khsrali Aug 6, 2024
fb36862
Post release: update version number and CHANGELOG after v2.6.2 release
sphuber Aug 7, 2024
c3b10b7
CLI: Fix exception for `verdi plugin list` (#6560)
sphuber Aug 19, 2024
c52ec67
Dependencies: Update requirement `paramiko~=3.0` (#6559)
sphuber Aug 20, 2024
655da5a
CI: Update ignore comment as the way that presumably updated mypy exp…
khsrali Sep 20, 2024
72a6b18
CLI: Add filters to verdi group delete. (#6556)
khsrali Sep 24, 2024
ab0c0ec
wip
agoscinski Sep 26, 2024
502396a
fix jq query
agoscinski Sep 27, 2024
015c550
fix typo
agoscinski Sep 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CLI: Add --most-recent-node option to verdi process watch
  • Loading branch information
agoscinski authored and sphuber committed Jun 7, 2024
commit 72692fa5cb667e2a7462770af18b7cedeaf8b3f0
18 changes: 15 additions & 3 deletions src/aiida/cmdline/commands/cmd_process.py
Original file line number Diff line number Diff line change
@@ -397,14 +397,23 @@ def process_play(processes, all_entries, timeout, wait):

@verdi_process.command('watch')
@arguments.PROCESSES()
@options.MOST_RECENT_NODE()
@decorators.with_dbenv()
@decorators.with_broker
@decorators.only_if_daemon_running(echo.echo_warning, 'daemon is not running, so process may not be reachable')
def process_watch(broker, processes):
def process_watch(broker, processes, most_recent_node):
"""Watch the state transitions for a process."""

if not processes:
raise click.UsageError('Please specify one or multiple processes by their identifier (PK, UUID or label).')
if not processes and not most_recent_node:
raise click.UsageError(
'Please specify one or multiple processes by their identifier (PK, UUID or label) or use an option.'
)

if processes and most_recent_node:
raise click.BadOptionUsage(
'most_recent_node',
'cannot specify individual processes and the `-M/--most-recent-node` flag at the same time.',
)

from time import sleep

@@ -423,6 +432,9 @@ def _print(communicator, body, sender, subject, correlation_id):
communicator = broker.get_communicator()
echo.echo_report('watching for broadcasted messages, press CTRL+C to stop...')

if most_recent_node:
processes = [get_most_recent_node()]

for process in processes:
if process.is_terminated:
echo.echo_error(f'Process<{process.pk}> is already terminated')
6 changes: 6 additions & 0 deletions tests/cmdline/commands/test_process.py
Original file line number Diff line number Diff line change
@@ -282,6 +282,12 @@ def test_process_watch(self, run_cli_command):
assert result.exit_code == ExitCode.USAGE_ERROR
assert len(result.output_lines) > 0

# Running with both identifiers should raise an error and print something
options = ['--most-recent-node', '1']
result = run_cli_command(cmd_process.process_watch, options, raises=True)
assert result.exit_code == ExitCode.USAGE_ERROR
assert len(result.output_lines) > 0

def test_process_status_call_link_label(self, run_cli_command):
"""Test ``verdi process status --call-link-label``."""
node = WorkflowNode().store()