Skip to content

Conversation

@padovan
Copy link
Contributor

@padovan padovan commented Feb 4, 2025

Screenshot from 2025-02-04 08-09-59

Show only relevant information. Next step we will add an option to download the logs.

So we can push some of messages we print today out for
clear view for our audience who only want to see info
relevant to their test and tree.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Abort won't exit immedially, but generate an Click execption
instead. However, we want to exit right away. The suggestion
is to just use sys.exit()

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Our users don't need to see the background infomation from
Maestro. We can show only the needful information.

With time we will also show links to logs and other info in
concise way.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
except requests.exceptions.HTTPError as ex:
kci_err(ex.response.json().get("detail"))
click.Abort()
sys.exit(errno.ENOENT)
Copy link
Member

@aliceinwire aliceinwire Feb 5, 2025

Choose a reason for hiding this comment

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

why use errno.ENOENT? I thought was referred only to local directory not for HTTPError

ENOENT means "No such file or directory", and is for path operations.

https://github.com/torvalds/linux/blob/5c8c229261f14159b54b9a32f12e5fa89d88b905/include/uapi/asm-generic/errno-base.h#L6

required=False,
)
@click.option("--instance", help="API instance to use", required=False)
@click.option("--debug", is_flag=True, help="Enable debug info")
Copy link
Member

Choose a reason for hiding this comment

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

nice to have a debug option

@aliceinwire
Copy link
Member

aliceinwire commented Feb 5, 2025

please remove the debug related commits from this PR
As not directly related with the improvement of watch command option

@aliceinwire aliceinwire merged commit 23b5951 into kernelci:main Feb 10, 2025
2 checks passed
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