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: report log collection failure to user #2354

Merged
merged 3 commits into from
Sep 25, 2023

Conversation

daniel-weisse
Copy link
Member

Context

During constellation init, if the init request and the subsequent log collection fails, the CLI reports "Fetched bootstrapper logs are stored in ...".
This is not true, since the log collection itself failed.

Proposed change(s)

Properly report log collection failed, if it did.

Related issue

AB#3272

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
@daniel-weisse daniel-weisse added the bug fix Fixing a bug label Sep 22, 2023
@daniel-weisse daniel-weisse added this to the v2.12.0 milestone Sep 22, 2023
@netlify
Copy link

netlify bot commented Sep 22, 2023

Deploy Preview for constellation-docs canceled.

Name Link
🔨 Latest commit eea9f70
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/65115271bf43750008a5f05c

@github-actions
Copy link
Contributor

github-actions bot commented Sep 22, 2023

Coverage report

Package Old New Trend
cli/internal/cmd 56.00% 55.90% ↘️

cli/internal/cmd/init.go Outdated Show resolved Hide resolved
cli/internal/cmd/init.go Outdated Show resolved Hide resolved
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
cli/internal/cmd/init_test.go Outdated Show resolved Hide resolved
cli/internal/cmd/init_test.go Outdated Show resolved Hide resolved
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
@daniel-weisse daniel-weisse merged commit fa4da88 into main Sep 25, 2023
8 checks passed
@daniel-weisse daniel-weisse deleted the fix/cli/log-collection-error branch September 25, 2023 10:10
msanft pushed a commit that referenced this pull request Sep 27, 2023
* Report log collection failure to user

* Try collecting logs for more error cases

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
derpsteb pushed a commit that referenced this pull request Oct 2, 2023
* Report log collection failure to user

* Try collecting logs for more error cases

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants