Skip to content

reduce severity of JSON parsing error log, and skip parsing when the log is empty #4743

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

Merged
merged 2 commits into from
Jul 29, 2025

Conversation

rberrelleza
Copy link
Member

Proposed changes

Fixes # https://okteto.atlassian.net/browse/PROD-397

Reduce the severity of JSON parsing error log, and skip parsing when the log is empty

How to validate

Please provide step-by-step instructions to replicate your validation scenario. For bug fixes, detail how to reproduce both the bug and its fix, along with any observations.

  1. Check out a repo with a lot of images
  2. okteto build
  3. Observe the logs for failures

CLI Quality Reminders 🔧

For both authors and reviewers:

  • Scrutinize for potential regressions
  • Ensure key automated tests are in place
  • Build the CLI and test using the validation steps
  • Assess Developer Experience impact (log messages, performances, etc)
  • If too broad, consider breaking into smaller PRs
  • Adhere to our code style and code review guidelines

@rberrelleza rberrelleza requested a review from a team as a code owner July 22, 2025 20:44
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

❌ Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.89%. Comparing base (d7395da) to head (831751d).
⚠️ Report is 4 commits behind head on master.

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4743      +/-   ##
==========================================
- Coverage   48.91%   48.89%   -0.03%     
==========================================
  Files         356      356              
  Lines       29809    29811       +2     
==========================================
- Hits        14582    14576       -6     
- Misses      14066    14072       +6     
- Partials     1161     1163       +2     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rberrelleza
Copy link
Member Author

Asked our agent to file a separate PR for test coverage of logger.go in #4744

@jLopezbarb jLopezbarb merged commit 2efd605 into master Jul 29, 2025
11 of 13 checks passed
@jLopezbarb jLopezbarb deleted the rb/skip-empty-json-logs branch July 29, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants