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

Use version from report as output message version #227

Merged
merged 2 commits into from
May 29, 2024

Conversation

epapbak
Copy link
Collaborator

@epapbak epapbak commented May 27, 2024

Description

Use proper value for "version" field, now that it is included in the generated report. This also allows us to keep sending the same message as before (we keep alll the existing contracts and don't mess with the internals of our pipeline), instead of sending the report with the new "version" field included in the new format.

If the received report does not include the version field (always expected), the output message's version will be 0, causing the aggregator to warn about improper message version.

Fixes CCXDEV-12869

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Testing steps

CI

Checklist

  • pre-commit run -a passes
  • updated documentation wherever necessary
  • added or modified tests if necessary
  • updated schemas and validators in insights-data-schemas in case of input/output change

@epapbak epapbak force-pushed the CCXDEV-12869 branch 2 times, most recently from ae918d2 to 2cd3d8d Compare May 28, 2024 13:34
@codecov-commenter
Copy link

codecov-commenter commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.77%. Comparing base (e075476) to head (47e2c37).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #227   +/-   ##
=======================================
  Coverage   85.77%   85.77%           
=======================================
  Files          28       28           
  Lines        1181     1181           
=======================================
  Hits         1013     1013           
  Misses        168      168           

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

@epapbak
Copy link
Collaborator Author

epapbak commented May 28, 2024

/retest

@epapbak
Copy link
Collaborator Author

epapbak commented May 29, 2024

/retest

@epapbak epapbak marked this pull request as ready for review May 29, 2024 10:25
@epapbak epapbak merged commit d16849a into RedHatInsights:main May 29, 2024
8 checks passed
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.

5 participants