-
Notifications
You must be signed in to change notification settings - Fork 573
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
chore: add errors to the end of debug logs [CLI-671] #5683
Merged
j-luong
merged 3 commits into
feat/passing-ts-errors-to-go
from
chore/CLI-671_addErrorCatalogErrorsToDebugLogs
Jan 28, 2025
Merged
chore: add errors to the end of debug logs [CLI-671] #5683
j-luong
merged 3 commits into
feat/passing-ts-errors-to-go
from
chore/CLI-671_addErrorCatalogErrorsToDebugLogs
Jan 28, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
j-luong
force-pushed
the
chore/CLI-671_addErrorCatalogErrorsToDebugLogs
branch
from
January 24, 2025 10:25
63d993a
to
73d0c26
Compare
j-luong
force-pushed
the
chore/CLI-671_addErrorCatalogErrorsToDebugLogs
branch
2 times, most recently
from
January 24, 2025 11:21
c8467b2
to
2bac2dc
Compare
Suggestion: Let's improve the information presentation to make it better digestible. For example like this.
|
j-luong
force-pushed
the
chore/CLI-671_addErrorCatalogErrorsToDebugLogs
branch
2 times, most recently
from
January 27, 2025 15:01
acc67fc
to
eaf2ccf
Compare
j-luong
force-pushed
the
chore/CLI-671_addErrorCatalogErrorsToDebugLogs
branch
3 times, most recently
from
January 28, 2025 09:35
c8d6a40
to
2e6a398
Compare
j-luong
force-pushed
the
chore/CLI-671_addErrorCatalogErrorsToDebugLogs
branch
2 times, most recently
from
January 28, 2025 12:07
aa88bcf
to
ba6a55d
Compare
feat(python): added Python support for sys_platform [PEP-508]
j-luong
force-pushed
the
chore/CLI-671_addErrorCatalogErrorsToDebugLogs
branch
from
January 28, 2025 15:34
ba6a55d
to
ba33944
Compare
sandor-trombitas
approved these changes
Jan 28, 2025
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.
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Submission Checklist
What does this PR do?
This PR should add error catalog errors to the end of debug logs to aide in diagnosing issues.
Some notes on implementation:
ErrorCatalog.ErrorCode
is output in the debug logs to prevent too much repetitionErrorCatalog.Meta["details"]
is created and used instead ofErrorCatalog.Detail
. Its contents is deduped.ErrorCatalog.Meta["request-id"]
andErrorCatalog.Meta["request-path"]
are combined intoErrorCatalog.Meta["requests"]
and usedWhere should the reviewer start?
How should this be manually tested?
Run a command that results in an error catalog error, e.g.
SNYK_TOKEN=random ./binary-releases/snyk-<binary> test -d
INTERNAL_SNYK_CODE_IGNORES_ENABLED=true ./binary-releases/snyk-macos-arm64 code test ./emptyFolder -d
A new footer section should appear at the end of the debug logs with the list of error catalog errors
Screenshots (if appropriate)
When there are multiple Error Catalog errors in the
errorsList
: