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

fix(qa): cleanup SecretService #14657

Open
wants to merge 2 commits into
base: rox-28100-retry-grpc-call
Choose a base branch
from

Conversation

janisz
Copy link
Contributor

@janisz janisz commented Mar 18, 2025

Description

This PR uses @Retry annotation to cleanup SecretService.
Instead of returning false/null let's throw an exception and have explicit failure when secret could not be created.

  • CHANGELOG update is not needed
  • Documentation is not needed

Testing

  • inspected CI results

Automated testing

  • modified existing tests
  • contributed no automated tests

How I validated my change

CI

@janisz
Copy link
Contributor Author

janisz commented Mar 18, 2025

This change is part of the following stack:

Change managed by git-spice.

@janisz janisz mentioned this pull request Mar 18, 2025
5 tasks
@janisz janisz requested a review from porridge March 18, 2025 15:33
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at b5afab4.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.8.x-261-gb5afab4d5a.

Copy link

codecov bot commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.16%. Comparing base (942fc4c) to head (b5afab4).

Additional details and impacted files
@@                    Coverage Diff                     @@
##           rox-28100-retry-grpc-call   #14657   +/-   ##
==========================================================
  Coverage                      49.16%   49.16%           
==========================================================
  Files                           2532     2532           
  Lines                         185503   185548   +45     
==========================================================
+ Hits                           91203    91228   +25     
- Misses                         87069    87082   +13     
- Partials                        7231     7238    +7     
Flag Coverage Δ
go-unit-tests 49.16% <ø> (+<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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@porridge porridge left a comment

Choose a reason for hiding this comment

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

  1. I'm assuming @Retry has some built-in sleep and appropriate logging?
  2. Why are we bothering with making these tests nicer if there is now an officially blessed goal of migrating away from groovy?

@janisz
Copy link
Contributor Author

janisz commented Mar 19, 2025

  1. Correct evaluateWitRetry logs failures
    log.debug("Caught exception. Retrying in ${pauseSecs}s (attempt ${i} of ${retries}): " + t)
  2. I did it because you asked chore(qa): compile static on services #14620 (comment)

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