Better HN
topnewbestaskshowjobs
Log inSign up

ankitdce

234 karma · joined Aug 29, 2014 (12y ago) · 125 submissions

Software engineer, ex-Google. Early stage startups, rapid prototyping, MVPs.

YC Badge: 0x7f2c5c3ad7ba0735cb97ecc1848de4e48178db67

Submissions

comment 3y ago · link · parent

For everyone who complains about monorepos, remember some of the most forward thinking engineering companies like Google and FB also use monorepos. All the arguments that people make in favor of polyrepo are making so because of lack of strong tooling for monorepos. That's also why Google and FB would not have scaled if they were using GitHub / GitLab but had to build their own. Also Google's original source control was built on top of perforce!

92.

Aviator (YC S21) is hiring engineers interested in dev productivity(ycombinator.com ↗)

by ankitdce · 3y ago

comment 5y ago · link · parent

Google's Changelist are just standard PullRequests

comment 5y ago · link · parent

From what I have heard, BuildKite seems to be a more reliable solution as it lets you spin up your own instances.

comment 5y ago · link · parent

That's very interesting feedback. We certainly don't have a way to force simulate failure.

A related capability we are working on is to also rerun the identified flaky tests X times so they pass. This depends on the capabilities of the test runner, so it will work with specific ones first (cypress, pytest, etc). That way you still make sure that flaky tests pass instead of supressing.

comment 5y ago · link · parent

That is a fair argument. Not all organizations have the bandwidth to measure and manage stability of builds. Some companies build internal tools / dev productivity team for this purpose. There are always right intentions to comment out the flaky test with the mindset of coming back to it, but it is also a very low priority item in most cases when you have to ship new features.

Fixing flaky tests can very commonly take longer than writing new tests.

comment 5y ago · link · parent

Curious, how often do you see a flaky test in your system? In my past experience at one of the mid-size startups, we used to get a new flaky test almost on a weekly basis in a monorepo. We started the process of actually flagging them as ignored (we created a separate tag for flaky tests), but later realized that the backlog of fixing flaky test never came down.

In another case observed, devs just got used to rerunning the entire suite (the flakiness here was about 10-20%)

comment 5y ago · link · parent

Haha great point. Well from what we have learned from our users is "fixing" test typically end up with "delete most of them". Fixing tests can be time consuming effort.

Another way to think about it is, whether Flaky tests are worth keeping? At some point if the tests fail often, do these really add value. And we think - it does. If you are able to identify flakiness from real failure and reduce noise, you can still avoid real failures.

comment 5y ago · link · parent

Yeh flaky tests generally creep up in a big service due to several issues. There are some best practices to avoid the tests that requires some discipline and good oversight! We wrote some stuff around it: https://www.flakybot.com/blog/five-causes-for-flaky-tests

This is by no means an exhaustive list, but our goal with FlakyBot is to get better at identifying root causes as we identify flakiness across the systems.

comment 5y ago · link · parent

Hi HN, we are Spriha and Ankit building Flakybot is a tool to automatically identify and suppress test-flakiness so that developers are better able to trust their test results.

Most CI systems leave it up to teams to manually identify and debug test flakiness. Since most CI systems today don’t handle test reruns, teams just end up with manually rerunning tests that are flaky. Ultimately, tribal knowledge gets built over time where certain tests are known to be flaky, but the flakiness isn’t specifically addressed. Our solution, Flakybot, removes one of the hardest parts of the problem: identifying flaky tests in the first place.

We ingest test artifacts from CI systems, and note when builds are healthy (so that we can mark them as “known-good builds” to use while testing for flakiness). This helps automatically identify flakiness, and proactively offer mitigation strategies, both in the short term and long term. You can read more about this here: https://ritzy-angelfish-3de.notion.site/FlakyBot-How-it-work...

We’re in the early stages of development and are opening up Flakybot for private beta to companies that have serious test-flakiness issues. The CI systems we currently support are Jenkins, CircleCI and BuildKite, but if your team uses a different CI and has very serious test-flakiness problems, sign up anyway and we’ll reach out. During the private beta, we’ll work closely with our users to ensure their test flakiness issues are resolved before we open it up more broadly.

101.

Show HN: FlakyBot – Identify and suppress flaky tests(flakybot.com ↗)

27 points · by ankitdce · 5y ago · 19 comments

comment 5y ago · link · parent

That's a great question. FWIW Gitlab does have merge train with similar baseline functionality. There's two part answer to your question: - even though it's trivial from the face of it, since we specialize in merging process, we are able to provide much more complex workflows, such as batch mode. - starting with MQ, our goal is continue focusing in engineering productivity and build as we understand the use cases better. We imagine a world where every team has the toolset that is built internally by developer productivity teams at the likes of Google, FB. We have to still start somewhere right :)

comment 5y ago · link · parent

Are you worried about market size of developer productivity tools in general or just about MQ? We intend to expand into other dev productivity capabilities adjacent to MQ. Our exploration into Flaky test management is also a step in that direction.

comment 5y ago · link · parent

Wow this is amazing. May be you should add MergeQueue to your list :)

- Yeh we define our own pre-conditions because some developers also use it for non-protected branches. The default picks up the Github build-in preconditions and allows you overwrite. - Can you clarify your fixup commit suggestion? So there's typically an option to squash and merge when merging the PR, but sounds like you want to maintain some of those commits and squash the rest? - Just read up the AzDO's semi-linear rebase.Yeh MQ should be able to do that as well. You can specify different config for rebasing the branch and for merging the PR.

Curious since you have done this much research - have you built or used any of the merge queues in your company? Would love to chat more. ankit[at]mergequeue[dot]com

comment 5y ago · link · parent

Interesting, you can potentially use MQ for automatic rebasing as well, but if there is a merge conflict, MQ will not be able to resolve it for you. If a rebase can be automatically resolved, then MQ will update the branch for you.

comment 5y ago · link · parent

Wow, that's a great story, maybe we should quote that :) If you are open to sharing more of that experience, I would love to hear that. You can also directly email me at ankit[at]mergequeue[dot]com if you don't want to post publicly.

comment 5y ago · link · parent

Yes it's somewhat similar to GitLab merge train. Of course we work with Github. And similar to other comments, there are a few more features including batch mode and flaky test management that make MQ a more interesting offering. We do not support Gitlab today.

comment 5y ago · link · parent

<3 curious where have you experience this the most? We are also trying to figure out at what point does the problem become acute.

comment 5y ago · link · parent

The product being discussed here doesn't solve the issue of merge conflicts itself, but rather of eventual consistency. Merge conflicts is only a part of it, and there are some heuristics that can be used to reduce those, but eventually require manual review. Perhaps with Github Copilot this can improve?

An example of the problem we are describing is explained here: https://blog.mergequeue.com/managing-github-merges-for-high-...

comment 5y ago · link · parent

Feels like this should be a post in itself! This is just my opinion so open to any push backs / comments.

IMO the main reasons for source control are: - having revisions / diffs that can be reviewed by someone else - while working independently in a distributed fashion - easy way to rollback to an older revision

I'm not too familiar with CRDTs, will add more comments after reading more about it, but let's take Google docs as example here. What if we were all writing code in Google docs, how would that turn out.

Google docs do a decent job of versioning, so the last point can still be satisfied. I think with a source code styled version of Google docs, one can easily tag versions and do rollbacks. The issue happens when collaborating. Just from my experience working in spreadsheets where > 10 users are actively trying to modify, overwriting each other becomes very common. You can argue that it might make it easy to also fix this, but what about running the code locally?

One would have to still take a snapshot - hope that it actually compiles. From my personal experience, while I'm writing code, it rarely compiles in the first attempt. So then we would really have to work on snapshots where we know it compiles. At that point, you are really creating "commits" and pushing it to the remote. I am not sure if we can really completely avoid conflicts in such model.

comment 5y ago · link · parent

Thanks @timtamboy63, now we know you you are :)

comment 5y ago · link · parent

Thanks for asking! We priced it to ensure that it's affordable for small teams and is only charging based on who uses it for larger teams. Would you have preferred a different plan.

comment 5y ago · link · parent

Early pricing is always a bit experimental. This was anchored on the cost saving from software subscriptions. There's certainly room for improvement.

comment 5y ago · link · parent

Thank you!

comment 5y ago · link · parent

Thanks for sharing that aynawn, I have not tested out 1password, I'll check it out.

comment 5y ago · link · parent

Thanks for checking it out @cgilbert3. Yes 2FA is added security for enterprise accounts but makes sharing seats / accounts much harder. This app simplifies some of that process without compromising security.

comment 5y ago · link · parent

Hey folks, I built this tool while stepping out of my last role. I realized how weird it was to transfer over the accounts to someone else where I owned the 2FA. The only other option is to remove the two-factor authentication completely. Would love any feedback / thoughts on this.

118.

Show HN: SharedOTP – Shared two-factor authentication mechanism(sharedotp.com ↗)

29 points · by ankitdce · 5y ago · 13 comments

comment 6y ago · link · parent

Hi all, I recently built this tool that enables developers to automate merge workflows for Github. I am always annoyed that even though CI automates running of your builds, it leaves the post execution process to be manual. This tool monitors your CI pipeline and takes appropriate actions based on your configuration post CI completion.

I would love any ideas or feedback on the tool.

12345