-
Notifications
You must be signed in to change notification settings - Fork 15
NETOBSERV-1693 Prompt for copying files on exit #60
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
Conversation
Skipping CI for Draft Pull Request. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #60 +/- ##
==========================================
- Coverage 28.99% 28.96% -0.03%
==========================================
Files 8 8
Lines 1045 1046 +1
==========================================
Hits 303 303
- Misses 720 721 +1
Partials 22 22
Flags with carried forward coverage won't be shown. Click here to find out more.
|
${K8S_CLI_BIN} cp -n netobserv-cli collector:output ./output | ||
if [ "$isE2E" = true ]; then | ||
copyOutput | ||
elif [ "$captureStarted" = true ]; then |
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.
not sure why we need captureStarted
since we are in cleanup path then captured should always been started no ?
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.
if the script crash before running the pod, it will ask for copy whereas it can't so that's a safeguard
${K8S_CLI_BIN} wait \ | ||
-n netobserv-cli \ | ||
--for=condition=Ready pod/collector | ||
--for=condition=Ready pod/collector || exit 1 |
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.
why did u drop exit 1
here ?
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.
if the pods are not available, I want the script to crash here
/lgtm |
@jpinsonneau CLI can only be tested with a downstream build so you can go ahead and merge it and I can verify it with a downstream build |
sure @Amoghrd, thanks for letting me know. |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Ask for copy on exit
The total capture size will be displayed in #59
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.