Better HN
topnewbestaskshowjobs
Log inSign up

_cfl0

1 karma · joined Feb 17, 2023 (3y ago) · 41 submissions

Submissions

comment 3y ago · link · parent

I built haystack - natural language search engine for workplace technical knowledge.

I've been a software engineer for a few years now,

A few weeks ago I was scrolling through confluence pages trying to find ssh connection details to our jenkins second integration machine for 40 minutes straight, later I discovered my co-worker slack'ed me the ssh connection string *two months ago*.

A week later I started working on haystack - a search engine for workplace apps.. It enables you to search slack, confluence, jira, teams, sharepoint, github, and email in one place.

It supports natural language queries so a query like: "how to connect to integ2 machine?" yields:

  ssh -i private.pem ubuntu@ec2-integration2.eu-est-1.compute.amazonaws.com
Privacy?

haystack is self hosted and stores user data locally, it has a completely client-side version, and a a self-hosted docker container version - only you have access to internal docs, I didn't want to deal with security compliance headaches caused from storing user data in the cloud + I don’t want your internal docs/messages.

Rolled it out to my co-workers a week ago and they thought it's a hit, so I'm planning on releasing it publicly on March 2023.

*Early access*

More technical details are available on github, code released on March 23’:

<https://github.com/haystackoss/haystack>

If you want to try it out before March 2023 - Available here <https://haystack.it>

comment 4y ago · link · parent

Sure, read docs.nabaz.io (CI solution w/ storage over mongodb)

comment 4y ago · link · parent

You aren't interrupted, you choose when to alt+tab to see your test results.

comment 4y ago · link · parent

Main difference is that crystalball still runs all the tests, but runs the recently failed ones first.

Nabaz selects a small subset of affected tests, reducing CPU usage, and more importantly improving speed drastically!

comment 4y ago · link · parent

10.

comment 4y ago · link · parent

Nx is even clealry different. It isn’t run on every code change, but on commits.

You can’t use it live, And also the analysis granularity is just way too wide compared to this.

comment 4y ago · link · parent

Right.. Because out of a 100 tests it will run close to that number. when you change code most of the time only a handful of tests or less need to run.

comment 4y ago · link · parent

Had what since forever? Does jest analyze the changes you make and compare them to code coverage? (hint: no)

The key innovation piece here is the speed that the extreme selectively enables you.

comment 4y ago · link · parent

I also have a CI solution I’m launching soon.

Other than that, most of this tech was forgotten in the late 90s early 2000s

comment 4y ago · link · parent

Not bulletproof, but a-ok if your running a full run just before the commit.

comment 4y ago · link · parent

Toda ;)

comment 4y ago · link · parent

The second part is the aim here.

This is more of a code watcher than a test watcher specifically.

comment 4y ago · link · parent

collab w/ me ;)

comment 4y ago · link · parent

Not only the time to boot, but also if you don’t run tests selectively, you’re already too slow.

comment 4y ago · link · parent

Furthermore, it will still display the build error + the previous failure list.

So you can always rely on that background terminal for actual test failure reasons.

comment 4y ago · link · parent

Problem being is “make && make check” take way too much time normally.

comment 4y ago · link · parent

The ordering feature is actually being built as we speak. analyzing liklihood can still be beneficial to cut down time even more.

If I would get a break from hn comments I could finish it today lol ;)

comment 4y ago · link · parent

1. No, if build fails hypertest will just discard the result. autosave is even prefered.

2. The first run and every subsequent one collects code coverage which is saved in an sqlite db. Every file change is compared to the code coverage.

Although this approach isnt perfect, The idea here is being fast. I always rerun the entire suite just before committing the code.

comment 4y ago · link · parent

Love that mantra! Dont really agree, it’s not intended for that.

I use it as I would run tests through a terminal normally. Built this because I hate running tests.

comment 4y ago · link · parent

Bazel is awesome, it just runs way too many tests to be fast enough

comment 4y ago · link · parent

Well, I would say the biggest difference is while the watch mode you described runs all the tests for every change.

hypertest only runs the tests the were impacted by the changed code. Resulting is blazing fast performance.

I’d say it’s even fast than apples alt+tab animation most of the time.

comment 4y ago · link · parent

Appreciated! Would love to hear you’re feedback after you ran it also :)

23.

Show HN: I built a tool to get instant test results(github.com ↗)

96 points · by _cfl0 · 4y ago · 63 comments

comment 4y ago · link · parent

Well, I wouldn't say i'm being selfless here, I benefit as a user lol :)

comment 4y ago · link · parent

Some background, I was diagnosed with ADHD when I was 5, moved in and out of schools through elementry/middleschool, ultimatly dropped out of highschool, I'm familiar with ADHD ;)

If you have any suggestions/feature-requests., or maybe have some ADHD experiences to share. this is for sure the place.

12