Skip to content

Add warning for outdated SessionManagerPlugin version - #10520

Open
rongjina987 wants to merge 1 commit into
aws:developfrom
rongjina987:session-manager-plugin-version-warn
Open

Add warning for outdated SessionManagerPlugin version#10520
rongjina987 wants to merge 1 commit into
aws:developfrom
rongjina987:session-manager-plugin-version-warn

Conversation

@rongjina987

Copy link
Copy Markdown

Issue #, if available:
There is the no warning message on terminal for outdated SessionManagerPlugin version, making slow adoption rate of new SessionManagerPlugin release

Description of changes:
Display warning message on terminal when SessionManagerPlugin version is outdated. Define version 1.2.764.0 as the minimum suggested plugin version

Testing:
Warning message on outdated plugin version

Screenshot 2026-07-31 at 10 24 17 AM

Clean terminal on satisfied plugin version
Screenshot 2026-07-31 at 10 25 15 AM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rongjina987
rongjina987 requested a review from a team as a code owner July 31, 2026 18:08

@jonathan343 jonathan343 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hey @rongjina987, overall these changes seem fine. Have two pretty minor suggestions.

else:
return False

def meets_or_exceeds(self, version):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This function seems to implement identical behavior to meets_requirements, but is inclusive. Can we just update meets_requirements to accept an inclusive parameter that defaults to false: meets_requirement(version, inclusive=False). Then you could just do:

...
if inclusive:
    return norm_version >= norm_min_version
return norm_version > norm_min_version

Comment on lines +36 to +37
'WARNING: An outdated SessionManagerPlugin version detected. Please upgrade it to the latest version. \n'
'For more information, refer:\n'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

super nit - split this string into two lines for readability. The string value is unaffected

Suggested change
'WARNING: An outdated SessionManagerPlugin version detected. Please upgrade it to the latest version. \n'
'For more information, refer:\n'
'WARNING: An outdated SessionManagerPlugin version detected. '
'Please upgrade it to the latest version. \n'
'For more information, refer:\n'

@codecov-commenter

codecov-commenter commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.64%. Comparing base (70d3b38) to head (61eecce).
⚠️ Report is 147 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #10520      +/-   ##
===========================================
+ Coverage    93.42%   93.64%   +0.22%     
===========================================
  Files          211      212       +1     
  Lines        17312    17383      +71     
===========================================
+ Hits         16174    16279     +105     
+ Misses        1138     1104      -34     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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