I've heard google does something fancier where they take a test, run it a bunch after it fails to check if it's failed
I think the system at work only runs each test a couple times before giving up and marking it failed
534 karma · joined June 23, 2018
I've heard google does something fancier where they take a test, run it a bunch after it fails to check if it's failed
I think the system at work only runs each test a couple times before giving up and marking it failed
At $dayjob this works well, if your CI comes up red with some unrelated test failing, you can mark the test as flakey in the UI and CI will allow your code to merge and a Jira ticket will be created for the test owner to fix their test (and it will be disabled for future test runs)
I think for small to medium projects, you can have all tests succeed but once the repo is large enough / has frequent enough changes, flakey tests are bound to slip in.
edit: for crossiants and other treats, A.J. King is my fav -- they supply a lot of the Boston cafes
Kane's for donuts
We’ve run into various bugs and weird performance gotchas (like the workers prefetch jobs which is terrible if they aren’t all the same size)
Sort of makes sense why drones have a couple blades so they can putter along for hours
They have a generous free tier and are open source so that’s a plus too
Which isn’t very pythonic imho
Also I’m pretty sure ‘if res.ok is True’ doesn’t work
I think it’s technically a combined sewer system that has both street water and sewage so when it rains, the system gets overloaded.
Fixing the sewer system is a massive project
In my experience, mypy tends to be more correct and correctly understands more python code.
For example, the following won't type check in pyright (it doesn't infer the type of out):
out = []
for x in bar:
out.append(x \* 2)
return out
Edit: also pyright's vendoring of type stubs is annoying as they take precedence over downloaded type stubs.Edit2: also lack of plugins, makes using things like Pydantic less type safe compared to mypy
Additionally, the social features the OP mentions are helpful in determining which RSS feed is the right one since some sites have multiple.
Not sure this applies to Auth.js, but with hosted offerings, it's really hard to migrate off. Like how do you get the passwords into your system without forcing everyone to reset them?
It’s a more advanced type system than Go and Java
Also does it automatically install dependencies? Feel like running npm install each time (or the equivalent) would be slow.
export interface SWRResponse<Data = any, Error = any> {
/**
* The returned data of the fetcher function.
*/
data: Data | undefined
/**
* The error object thrown by the fetcher function.
*/
error: Error | undefined
mutate: KeyedMutator<Data>
isValidating: boolean
isLoading: boolean
}
https://github.com/vercel/swr/blob/14956a840ac9b75fe321bf846...so if I check `isLoading` in my component then typescript isn't able to narrow/refine the type to something more specific since it isn't a sum type.
While with react-query, it's a proper sum type that can be differentiated by checking `isLoading`.
The type is actually quite long so here's just a bit
export type QueryObserverResult<TData = unknown, TError = unknown> =
| QueryObserverIdleResult<TData, TError>
| QueryObserverLoadingErrorResult<TData, TError>
| QueryObserverLoadingResult<TData, TError>
| QueryObserverRefetchErrorResult<TData, TError>
| QueryObserverSuccessResult<TData, TError>
export interface QueryObserverLoadingResult<TData = unknown, TError = unknown>
extends QueryObserverBaseResult<TData, TError> {
data: undefined
error: null
isError: false
isIdle: false
isLoading: true
isLoadingError: false
isRefetchError: false
isSuccess: false
status: 'loading'
}
https://github.com/TanStack/query/blob/9b21609350d9ad41faf5c...The key point in the type above is `isLoading: true` and `data: undefined`, which means if I check `isLoading === true`, then typescript knows the data is not available.
SWR doesn't provide these guarantees.
React-query has proper sum types for its hook’s return value
Stripe provides self serve with is nice for getting started and I’m guessing once you’re big enough to jump to adyen, you can likely get a discount on the sticker price since you have bargaining power
Would be super nice to be able to look at the sentry dashboard to find slow tests rather than having to break out the profiler
Edit: should have scrolled down more: https://news.ycombinator.com/item?id=33612776
Curious to hear more!
1Password moving into the developer space?