| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
I think we also want to guard against an error in the function itself so the test can't fail either. We could use Sys.which to check for sysctl or also wrap in try(catch)
Sorry, something went wrong.
|
Good catch on the test that would also fail there. I've added in tryCatch to the function itself |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the quick fix!
Sorry, something went wrong.
|
After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit e543ee6. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them. |
Sorry, something went wrong.
### Rationale for this change We should never allow rosetta checking from causing an error ### What changes are included in this PR? ~Wrap rosetta checking in a tryCatch~ our use of `try()` wasn't doing what we thought, it actually needs to have `silent = TRUE` specified to _not_ error. ### Are these changes tested? I tested them locally by manipulating the system call to a mangled command that doesn't exist, observing the error on load, then wrapping in trycatch. We might consider adding a test in CI, though there would be considerable complexity for something like that ### Are there any user-facing changes? No, though we will need to pull it into any point release * Closes: apache#38752 Authored-by: Jonathan Keane <jkeane@gmail.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
### Rationale for this change We should never allow rosetta checking from causing an error ### What changes are included in this PR? ~Wrap rosetta checking in a tryCatch~ our use of `try()` wasn't doing what we thought, it actually needs to have `silent = TRUE` specified to _not_ error. ### Are these changes tested? I tested them locally by manipulating the system call to a mangled command that doesn't exist, observing the error on load, then wrapping in trycatch. We might consider adding a test in CI, though there would be considerable complexity for something like that ### Are there any user-facing changes? No, though we will need to pull it into any point release * Closes: apache#38752 Authored-by: Jonathan Keane <jkeane@gmail.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
### Rationale for this change We should never allow rosetta checking from causing an error ### What changes are included in this PR? ~Wrap rosetta checking in a tryCatch~ our use of `try()` wasn't doing what we thought, it actually needs to have `silent = TRUE` specified to _not_ error. ### Are these changes tested? I tested them locally by manipulating the system call to a mangled command that doesn't exist, observing the error on load, then wrapping in trycatch. We might consider adding a test in CI, though there would be considerable complexity for something like that ### Are there any user-facing changes? No, though we will need to pull it into any point release * Closes: #38752 Authored-by: Jonathan Keane <jkeane@gmail.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
### Rationale for this change We should never allow rosetta checking from causing an error ### What changes are included in this PR? ~Wrap rosetta checking in a tryCatch~ our use of `try()` wasn't doing what we thought, it actually needs to have `silent = TRUE` specified to _not_ error. ### Are these changes tested? I tested them locally by manipulating the system call to a mangled command that doesn't exist, observing the error on load, then wrapping in trycatch. We might consider adding a test in CI, though there would be considerable complexity for something like that ### Are there any user-facing changes? No, though we will need to pull it into any point release * Closes: apache#38752 Authored-by: Jonathan Keane <jkeane@gmail.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
### Rationale for this change We should never allow rosetta checking from causing an error ### What changes are included in this PR? ~Wrap rosetta checking in a tryCatch~ our use of `try()` wasn't doing what we thought, it actually needs to have `silent = TRUE` specified to _not_ error. ### Are these changes tested? I tested them locally by manipulating the system call to a mangled command that doesn't exist, observing the error on load, then wrapping in trycatch. We might consider adding a test in CI, though there would be considerable complexity for something like that ### Are there any user-facing changes? No, though we will need to pull it into any point release * Closes: apache#38752 Authored-by: Jonathan Keane <jkeane@gmail.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
| Back | FazBrowse Home | New Git URL |
Rationale for this change
We should never allow rosetta checking from causing an error
What changes are included in this PR?
Wrap rosetta checking in a tryCatch our use of try() wasn't doing what we thought, it actually needs to have silent = TRUE specified to not error.
Are these changes tested?
I tested them locally by manipulating the system call to a mangled command that doesn't exist, observing the error on load, then wrapping in trycatch. We might consider adding a test in CI, though there would be considerable complexity for something like that
Are there any user-facing changes?
No, though we will need to pull it into any point release