HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Marceltan

no profile record

Submissions

What does Werner Herzog's nihilist penguin teach us? (2017)

lwlies.com
35 points·by Marceltan·5 ay önce·40 comments

Migrating cells and the new science of microchimerism

nature.com
39 points·by Marceltan·6 ay önce·2 comments

Show HN: Tusk Drift – Open-source tool for automating API tests

github.com
56 points·by Marceltan·8 ay önce·17 comments

A new patch could help to heal the heart

news.mit.edu
4 points·by Marceltan·8 ay önce·0 comments

comments

Marceltan
·6 ay önce·discuss
Nice, this was helpful for us internally. Good call on allowing importing of existing .claude/settings.json, makes my life easier on personal projects.
Marceltan
·8 ay önce·discuss
Am curious what the personalization looks like implementation-wise. Anything that makes it stand out compared to other wealth management platforms?
Marceltan
·8 ay önce·discuss
Initial setup takes <10 mins (including time spent testing that traces get recorded), we have a `tusk init` setup wizard to walk you through creating a config.
Marceltan
·8 ay önce·discuss
Thanks! Good question. Tusk Drift isn't quite designed for these use cases.

Currently, Drift is language specific. You'd need the SDK installed in your backend while recording tests. This is because Drift captures not just the HTTP request/response pairs, but also all underlying dependency calls (DB queries, Redis operations, etc.) to properly mock them during replay.

A use case we do support is refactors within the same language. You'd record traces in your current implementation, refactor your code, then replay those traces to catch regressions.

For cross-language rewrites or browser-exported requests, you might want to look at tools that focus purely on HTTP-level recording/replay like Postman Collections. Hope this helps!
Marceltan
·8 ay önce·discuss
We instrument JWT libraries directly (jsonwebtoken, jwks-rsa). Both `jwt.sign()` and `jwt.verify()` are captured during recording and replayed with the original results. During replay, you get back the recorded verification result. So if the token was valid during recording, it stays valid during replay, even if it would be expired "now". The test runs in the temporal context of when it was recorded.
Marceltan
·8 ay önce·discuss
Thanks for sharing this. :)
Marceltan
·8 ay önce·discuss
Also yes, appreciate you calling this out. The deviation classification after replay + automated RCA for unintended deviations is another differentiator. Let me know if you have feedback when you get time to explore.
Marceltan
·8 ay önce·discuss
Fair shout. Our instrumentations (https://github.com/Use-Tusk/drift-node-sdk?tab=readme-ov-fil...) hook directly into pg, mysql2, ioredis, firestore, etc., at the library level.

We capture the actual DB queries, Redis cache hits, JWT generation, and not just the HTTP calls (like you would see with mitmproxy), which lets us replay the full request chain without needing a live database or cache. This way each test runs idempotently.
Marceltan
·8 ay önce·discuss
Sounds good Chris, would love to hear your thoughts once you've played around with it.
Marceltan
·8 ay önce·discuss
Good questions. I'll respond one by one:

1. With our Cloud offering, Tusk Drift detects schema changes, then automatically re-records traces from new live traffic to replace the stale traces in the test suite. If using Drift purely locally though, you'd need to manually re-record traces for affected endpoints by hitting them in record mode to capture the updated behavior.

2. Our CLI tool includes built-in dynamic field rules that handle common non-deterministic values with standard UUID, timestamp, and date formats during response comparison. You can also configure custom matching rules in your `.tusk/config.yaml` to handle application-specific non-deterministic data.

3. Our classification workflow correlates deviations with your actual code changes in the PR/MR (including context from your PR/MR title and body). Classification is "fine-tuned" over time for each service based on past feedback on test results.