-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Narrow the default path searched for debug files #290
Comments
This issue is closely related to #277, implementing the narrower path may even resolve the problem that user was having |
It might be good to also provide a filter of which files to exclude from scan results, as that would be easier for us than specifying a path altogether |
When bundling an app for distribution, the first step is creating an Xcode Archive ( fastlane actions can change shared values in the lane context. Any fastlane action running afterwards will be able to access these shared values using The same goes for the command On a side-note, this is how they find the debug symbols archive in the action The deprecated fastlane action Other actions are also using this variable: Using this context variable could be a good first step to narrow down the lookup path to debug symbols |
Changing the lookup behavior could break for customers relying on current implementation. To fix the issue in a minor we can add the logic and allow enabling it with an option/feature flag, which will be the default in the next major. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
The
sentry_debug_files_upload
function passes.
as the path to thesentry-cli debug-files upload
command, unless the user supplies thepath
parameter. This causessentry-cli
to search the entire project for debug files, which is potentially a waste of time if we search a bunch of directories which we know don't have debug files in them, and can also cause errors if we encounter an error while reading any of the files that we are searching (which is desirable if those turn out to be debug files, but undesirable if we know that these files are definitely not debug files). For instance, if a project contains some intentionally corrupted zip files used for testing, these would cause Sentry CLI to fail.Instead of passing
.
as the default path, we should pass the narrowest path that we can. I'm not super familiar with the types of projects that Fastlane is used for, but if there is always some directory which contains the debug files, we should pass this directory.If there is not a consistent location where the debug files are stored in Fastlane projects, then we should urge users to use the
path
argument to supply a narrow path to their debug files, and we should deprecate the default option, making it required to provide apath
from the next major release.The text was updated successfully, but these errors were encountered: