-
Notifications
You must be signed in to change notification settings - Fork 283
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
URL encode test result files #4574
URL encode test result files #4574
Conversation
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4574 +/- ##
==========================================
+ Coverage 92.17% 92.40% +0.23%
==========================================
Files 192 193 +1
Lines 6297 6317 +20
==========================================
+ Hits 5804 5837 +33
+ Misses 493 480 -13 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
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.
Thanks for the PR @Swiddis.
I am aware of this issue and this might cause confusion; but I believe the link should be accessible if you include all of the URL address with spaces.
One thing I'm worried about this PR is that our implementation should also be compatible with local directory address when we pass in local base_path
so replacing space here may not be working for local test record.
Hm, good point on local test suites... I could try introducing a check for if I'm aware that the link is accessible if you copy the address with spaces -- it's mostly annoying with some text editors when copying directly from yaml, since they typically won't respect the yaml unquoted-string whitespace conventions and this ends up in needing to find and delete stray spaces. |
Yeah I think you could have another check to see if opensearch-build/src/test_workflow/test_recorder/test_recorder.py Lines 40 to 44 in b86cf75
|
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Updated the logic and associated test cases |
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.
Does it make sense to change on line 40 instead?
Ignore it, I think I didnt realize the |
Thanks. |
Signed-off-by: Simeon Widdis <sawiddis@gmail.com>
Signed-off-by: Simeon Widdis <sawiddis@gmail.com>
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.
LGTM! Thanks.
Description
Following up on #4569: URL encode the filenames in the test manifest file to better support tools scanning these files for links.
Issues Resolved
Closes #4569.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.