generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 20
feat: User friendly error when executable not found #177
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
Closed
jblagden
wants to merge
49
commits into
OpenJobDescription:mainline
from
jblagden:better_error_subprocess_executable
Closed
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
4b110f3
Adds user-friendly messaging when the adaptor executable isn't found.
jblagden 1fee6ec
feat! Adds user-friendly messaging when the adaptor executable isn't …
jblagden cefeb69
Merge branch 'better_error_subprocess_executable' of https://github.c…
jblagden 687b384
Resolves code smells called out by sonarqube
jblagden 61c67a1
Adds a test for executable not found error
jblagden 85bad29
Adds a test for executable not found error
jblagden 2540d7b
Merge branch 'better_error_subprocess_executable' of https://github.c…
jblagden 702c8aa
Merge branch 'mainline' into better_error_subprocess_executable
jblagden b24d36d
Merge branch 'better_error_subprocess_executable' of https://github.c…
jblagden b9141bd
Merge branch 'better_error_subprocess_executable' of https://github.c…
jblagden 8e59494
Updates test assertions to include the whole executable path
jblagden b938841
Merge branch 'OpenJobDescription:mainline' into better_error_subproce…
jblagden 5ff9e53
Adds a test for executable not found error
jblagden 4adb9cc
Merge branch 'better_error_subprocess_executable' of https://github.c…
jblagden 3f320fc
chore(deps): update python-semantic-release requirement (#159)
dependabot[bot] 68ad896
chore: allow pywin32 >= 307 (#162)
joel-wong-aws c41feab
chore(release): 0.8.2 (#165)
client-software-ci 415ef9f
fix!: Ensure all open uses UTF-8 instead of default encoding. (#171)
karthikbekalp e93ef36
chore(release): 0.9.0 (#173)
client-software-ci a87840a
feat! Adds user-friendly messaging when the adaptor executable isn't …
jblagden 4c89a0a
Resolves code smells called out by sonarqube
jblagden d800bbd
Adds a test for executable not found error
jblagden e34036d
chore: update GitHub issue templates (#176)
joel-wong-aws 1984974
chore: increase log level for daemon _serve args to info (#169)
joel-wong-aws 5dd3862
chore: add maintenance label to maintenance GitHub template (#182)
joel-wong-aws 77104bc
chore(deps): update python-semantic-release requirement (#181)
dependabot[bot] 1b0de05
chore(deps): update hatch requirement from ==1.13.* to ==1.14.* (#168)
dependabot[bot] f4d7793
chore(deps): update ruff requirement from ==0.8.* to ==0.9.* (#175)
dependabot[bot] ea7852a
test: Broaden regex to ignore copyright header file created by setupt…
moorec-aws d554197
chore(deps): update psutil requirement from ==6.1.* to ==7.0.* (#185)
dependabot[bot] 10e9aa1
chore(deps): update black requirement from ==24.* to ==25.* (#184)
dependabot[bot] 5ad6501
chore(deps): update python-semantic-release requirement (#183)
dependabot[bot] 6fe1018
chore(deps): update ruff requirement from ==0.9.* to ==0.11.* (#189)
dependabot[bot] 313d2ab
chore(deps): update pytest-cov requirement from ==6.0.* to ==6.1.* (#…
dependabot[bot] 574ba15
chore: changes for mypy update (#191)
edwards-aws f9010ea
chore(deps): update pytest-timeout requirement from ==2.3.* to ==2.4.…
dependabot[bot] 9fde718
chore(deps): update pytest to 8.3.* (#193)
moorec-aws 26877c7
chore(deps): update hatch-vcs requirement from ==0.4.* to ==0.5.*
dependabot[bot] ac63a2e
chore(deps): update pytest-xdist requirement from ==3.6.* to ==3.7.*
dependabot[bot] 4990ab3
chore(deps): update pytest requirement from ==8.3.* to ==8.4.*
dependabot[bot] c865716
chore(deps): update mypy requirement from ==1.15.* to ==1.16.*
dependabot[bot] 4a4d794
fix: sdist failed to install (#199)
epmog 46be6cb
docs: Refine the introduction, move usage into docs dir
mwiebe f3ccf6f
ci: update to tag based release workflows (#201)
moorec-aws 0068076
docs: Write a worked example of defining a Blender adaptor (#202)
mwiebe ca7c47a
chore(deps): update python-semantic-release requirement
dependabot[bot] 40606f8
Merge branch 'better_error_subprocess_executable' of https://github.c…
jblagden 9ab0997
Signing unsigned commits
jblagden 44f8c28
Merge branch 'OpenJobDescription:mainline' into better_error_subproce…
jblagden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If we're using
shutil.whichto resolve the program, it will be better to do this before we callsubprocess.Popen, and then modifyargs[0]to contain the result of that. We found that on Windows,subprocess.Popenandshutil.whichcan get different answers, so the approach you've implemented could make inaccurate error messages.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.
Interesting - do you recall how we might be able to re-create that? It might be worth a unit test to save future folks from a similar pitfall. I'll get a tweak up as soon as I can - likely tomorrow morning.
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.
What a mistake it was to commit to a time I'd get back to this!
I think I've got it all straightened out now though, let me know what you think when you have a chance.