-
-
Notifications
You must be signed in to change notification settings - Fork 776
Install pack with the latest tag #4743
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
Conversation
|
Have you actually test this change on a pack at GitHub with a tag? If so, can you post the output here? Thanks. |
|
Also closes #4384 (#4384 (comment)) |
Yes. |
|
@jinpingh Can you post the output here for test against a real pack? Thanks. |
|
a363763 to
c50c8c6
Compare
First part of Fixes StackStorm/discussions#354. If pack version is not specified, install the latest version from pack index.json (https://index.stackstorm.org/v1/index.json), otherwise install from master branch as today. Note: Direct github/repo install is not considered an Exchange index hit, therefore it is not covert by this fix.
c50c8c6 to
429e986
Compare
Root cause: Value passed to arg_ref for `fake_commit` is `v0.4.0` after new code changes, but local `ref` is None. So it failed comparison at line https://github.com/StackStorm/st2/blob/c0458f1a06c2a81cac81697817c422ffb7631047/contrib/packs/tests/test_action_download.py#L523 and mocked `gitref` value is not returned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work on finding the exact place for this change and fixing the old tests 👍
Please include a new dedicated test case that would cover and verify new behavior exclusively: st2 pack install will install latest stable release version/tag, taken from exchange index.
26ab318 to
219c9a2
Compare
arm4b
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Thanks for changes made!
With new improvement code StackStorm/st2#4743, if pack version is not provided, the latest version for pack from index.json is installed. Modify existing `e2e` test to check: 1. Install pack without version and check if the latest version for pack from index.json is installed. 2) install pack with version and check if the version specified is the version installed.
With new improvement code StackStorm/st2#4743, if pack version is not provided, the latest version for pack from index.json is installed. Modify existing `e2e` test `tests.test_run_pack_tests_tool` to check: 1. Install pack without version and check if the latest version for pack from index.json is installed. `st2 pack install csv` 2) install pack with version and check if the version specified is the version installed. `st2 pack install xml=0.3.0
With new improvement code StackStorm/st2#4743, if pack version is not provided, the latest version for pack from index.json is installed. Part of Fixes: https://github.com/StackStorm/discussions/issues/354 Modify existing `e2e` test `tests.test_run_pack_tests_tool` to check: 1. Install pack without version and check if the latest version for pack from index.json is installed. `st2 pack install csv` 2) install pack with version and check if the version specified is the version installed. `st2 pack install xml=0.3.0
With new improvement code StackStorm/st2#4743, if pack version is not provided, the latest version for pack from index.json is installed. Part of Fixes: https://github.com/StackStorm/discussions/issues/354 Modify existing `e2e` test `tests.test_run_pack_tests_tool` to check: 1. Install pack without version and check if the latest version for pack from index.json is installed. `st2 pack install csv` 2) install pack with version and check if the version specified is the version installed. `st2 pack install xml=0.3.0
First part of Fixes StackStorm/discussions#354.
If pack version is not specified, install the latest version from pack index.json (https://index.stackstorm.org/v1/index.json), otherwise install from master branch as today.
Note: Direct github/repo install is not considered an Exchange index hit, therefore it is not covert by this fix.
Closes #4384