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

(CAT-1869) - Add configurable dsc_timeout #319

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

jordanbreen28
Copy link
Contributor

@jordanbreen28 jordanbreen28 commented Jun 10, 2024

Summary

This PR introduces a new instance variable @timeout, set
to nil by default. A new method set_dsc_timeout is added to
handle the setting of @timeout based on the name_hash[:dsc_timeout]
value. This timeout specifies the number of seconds the ps_manager will
await the dsc invocation to return, before moving on.

The ps_manager.execute method call now includes the timeout value.
The error message for when output is nil has been updated to include
information about the timeout, if it is set.

Does not affect previous behaviour, therefore is completely backwards
compatible with previous versions.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@jordanbreen28 jordanbreen28 force-pushed the cat-1869-add_configurable_timeout branch 3 times, most recently from d1c7df4 to 9a4a837 Compare June 10, 2024 14:00
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.10%. Comparing base (b78625a) to head (f7094c8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #319      +/-   ##
==========================================
+ Coverage   92.01%   92.10%   +0.08%     
==========================================
  Files           6        6              
  Lines         714      722       +8     
==========================================
+ Hits          657      665       +8     
  Misses         57       57              

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

@jordanbreen28 jordanbreen28 force-pushed the cat-1869-add_configurable_timeout branch from bc2c5f6 to dd76db3 Compare June 11, 2024 09:05
This commit introduces a new instance variable @timeout, set
to nil by default. A new method set_dsc_timeout is added to
handle the setting of @timeout based on the name_hash[:dsc_timeout]
value. This timeout specifies the number of seconds the ps_manager will
await the dsc invocation to return, before moving on.

The ps_manager.execute method call now includes the timeout value.
The error message for when output is nil has been updated to include
information about the timeout, if it is set.

Does not affect previous behaviour, therefore is completely backwards
compatible with previous versions.
@jordanbreen28 jordanbreen28 force-pushed the cat-1869-add_configurable_timeout branch 2 times, most recently from 8a31945 to 26cb1e1 Compare June 11, 2024 11:39
@jordanbreen28 jordanbreen28 marked this pull request as ready for review June 11, 2024 11:55
@jordanbreen28 jordanbreen28 requested a review from a team as a code owner June 11, 2024 11:55
@jordanbreen28 jordanbreen28 force-pushed the cat-1869-add_configurable_timeout branch from 26cb1e1 to f7094c8 Compare June 11, 2024 11:59
Copy link
Contributor

@gavindidrichsen gavindidrichsen left a comment

Choose a reason for hiding this comment

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

Great job!

@gavindidrichsen gavindidrichsen merged commit fa44143 into main Jun 11, 2024
8 checks passed
@gavindidrichsen gavindidrichsen deleted the cat-1869-add_configurable_timeout branch June 11, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants