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

feat(client): write .last-upload.results also after non-legacy uploads #4229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ptoscano
Copy link
Contributor

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

While that file is deprecated and it is good that it is not written after non-legacy uploads, in practice it is actually used by tooling that uses insights-client.

To avoid breaking functionalities in other software when switching to non-legacy, write /etc/insights-client/.last-upload.results also after non-legacy uploads. While those softwares are fixed to not rely on that file, at least this is one small step ahead in switching the default away to non-legacy without regressions elsewhere.

Implements CCT-710

Copy link
Contributor

@m-horky m-horky left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.69%. Comparing base (19e6afa) to head (e3017f4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4229      +/-   ##
==========================================
- Coverage   76.70%   76.69%   -0.01%     
==========================================
  Files         759      759              
  Lines       41792    41794       +2     
  Branches     9604     9604              
==========================================
  Hits        32055    32055              
- Misses       8638     8639       +1     
- Partials     1099     1100       +1     
Flag Coverage Δ
unittests 76.67% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

While that file is deprecated and it is good that it is not written
after non-legacy uploads, in practice it is actually used by tooling
that uses insights-client.

To avoid breaking functionalities in other software when switching to
non-legacy, write /etc/insights-client/.last-upload.results also after
non-legacy uploads. While those softwares are fixed to not rely on that
file, at least this is one small step ahead in switching the default
away to non-legacy without regressions elsewhere.

Implements CCT-710

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
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.

3 participants