question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

automate-symbolication: Option to fail silently?

See original GitHub issue

I’m trying to use automate-symbolication, or automatically uploading source maps for a react native project. However, looks like failing to upload to bugsnag (due to timeouts or spotty internet) is causing the entire build step to fail.

I would like to know, or request, if it would be possible to only upload source maps if a “production” build is being generated (that is, for iOS only do this when archiving, and for Android only when running ./gradlew bundleProdRelease). Otherwise, this is very inconvenient since installing “production” builds into the device directly from XCode or ADB will also trigger a source map upload.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cristianoccazinspcommented, Jan 27, 2021

It says it is a “retired document”, but I guess the info is still valid. Anyways, with your first response I believe I got it to work as expected now. Thanks!

1reaction
xljonescommented, Jan 26, 2021

Hey @cristianoccazinsp,

I’m unsure what the DEPLOYMENT_LOCATION and ACTION variables are.

These are environment variables which are generated by Xcode when you run a build. They can be accessed by the build phase scripts at build-time which will allow you to know what kind of build is happening. If ACTION is equal to build, it’s a debug or release build, if it’s set to install it’s building for an archive.

Unfortunately, there’s no particularly good reference for these environment variables from Apple as far as I know – other than this resource, which gives some examples for each of the exported environment variables.

You can output all of your environment variables in a build by adding a simple build phase script as follows to your Xcode build phases if you want to test out what the env variables look like for different build types:

  • Shell: /bin/sh​
  • Script: export​
  • Ensure “Show environment variables in build log” is selected. image

what’s the difference between the enabled and uploadReactNativeMappings flags?

bugsnag.uploadReactNativeMappings = false switches the JS sourcemap upload off. bugsnag.enabled = false switches the whole plugin off, including source map uploading.

do I also need to set enabled if I’m using variant filters?

I’d recommend that you do set enabled to false for variants that you don’t want Bugsnag to run on, just so that you don’t have any assets uploading needlessly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle errors with grace: failing silently is not an option
The first step of handling errors is to identify when an “error” is not an “error!”. This of course depends on your application's...
Read more >
Provide option to fail silently. · Issue #1293 · stedolan/jq - GitHub
I'm using jq inside of a shell script where it is part of a command pipeline. It is looking for an item in...
Read more >
Is there a way to make "mv" fail silently? - Unix StackExchange
— GNU's mv has nice "destination first" option ( -t ) and xargs can skip running its command if there's no input at...
Read more >
ThreadPool Tasks Fail Silently (and how to fix it)
Asynchronous tasks issued to the ThreadPool can fail silently. ... This can be achieved by setting the error_callback argument to the name ......
Read more >
Method that fails loudly vs silently - Stack Overflow
So, I have two questions: Does it sound as a good idea to create two API endpoints instead of one?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found