Rivenris
Rivenris
TTCTheo's Typesafe Cult
Created by DemiTastes on 1/1/2025 in #questions
Trying to wrap my head around Docker, Dockerfile, Docker Compose - and what about for OSS projects?
@DemiTastes To answer a question about dockerhub duplications: Yup some are just duplications, but more often than not, people publish their versions. And since docker images are layered, you can take base image, install an additional dependency and publish it to dockerhub or your private repo. This is especially usefull when that docker image installs and/or compiles something (e.g. system-wide binary) as in the end you'll get an image with those deps baked in. I do this all the time - take existing image, install additional tools, publish to private image repository and reuse that as an image during CI/CD to speed up build times.
10 replies
TTCTheo's Typesafe Cult
Created by faheem on 12/31/2024 in #questions
Anyone using Sentry without being overwhelmed by random errors?
Couple of additional noise-canceling tips: - Make sure you have Sentry off on local dev environment unless testing the integration specifically, or some specific errors - Make sure you have Sentry off for running test suites
9 replies
TTCTheo's Typesafe Cult
Created by faheem on 12/31/2024 in #questions
Anyone using Sentry without being overwhelmed by random errors?
Personally I follow the following rules to handle those errors: - Filtering errors out is my last resort, when I am sure the error is gibberish that comes outside of my code (third party lib that does not allow me to catch an error) - Any error coming from normal usage (related to aborting, network changes etc) I catch and handle correctly (sometimes it's showing a toast to the user, and sometimes just console.warn or console.error with better message) - Any unknown error gets investigated and fixed - js allows you to use anything in throw, however, Sentry is not prepared for this. A note here - I am not sure how they are dealing with Suspense, since those work due to Promise being thrown. I'd guess Sentry has it covered for the React lib, but worth mentioning anyway.
9 replies
TTCTheo's Typesafe Cult
Created by faheem on 12/31/2024 in #questions
Anyone using Sentry without being overwhelmed by random errors?
@faheem From my experience, rarely are errors reported in Sentry occuring at random. Source to some may be obscured by code minification, or detached if they occur in async handlers. There is tons of possibilities on what you are experiencing, but on the top of my head, from what you pointed out: Request aborted - I think these can happen in two ways (not sure if they belong to the exact same error type): 1. You start a request, but then click a link and the request gets canceled as the browser wants to move on to new route. Totally normal, can be ignored, unless you are seeing some requests canceled that shouldn't be there in the first place. 2. You are using AbortController and signals in fetch requests and not catching the promise exceptions. E.g. this may happen when you are using react query signals that are passed. For those I would write catch segments that are filtering such exceptions out before propagating them upwards, since usually, abort signal is sent by design. <unknown> - these happen usually when you throw something that is not an Error instance. Some validators do this, so pay attention where in the source the error happens. Network error - Usually lack of internet, but also server is down, or you turned on a vpn when some request was happening.
9 replies
TTCTheo's Typesafe Cult
Created by Kugabi on 12/27/2024 in #questions
Coding from a non-Mac PC while building on a Mac
@Kugabi Did you look into fastlane? https://fastlane.tools/ - this is a tool I tend to use for any on-mac builds from CI/CD pipelines and I think it can be adopted simply for remote builds.
15 replies