News for hackers. Stuff that matters.
Re:Git-bug: Distributed, offline-first bug tracker embedded ... by foreigner on Thursday November 24, 2022 @10:19AM (#33732262)
I understand why the bug IDs are hashes, but that's going to be pretty inconvenient for practical use. Yes I know we manage it with Git commit names, but bug IDs are printed and spoken much more than commits, e.g. when communicating with a test team, management, or even in release notes.

I wonder if we could use some sort of distributed naming scheme for this, similar to Blockchain DNS?

Re:Git-bug: Distributed, offline-first bug tracker embedded ... by password4321 on Thursday November 24, 2022 @10:55AM (#33732739)
Someone said blockchain on HN, look out!

Only half-joking here: it probably wouldn't be too much work to incorporate hash cracking: https://news.ycombinator.com/item?id=33704297

But you can't use just auto-incrementing IDs in a distributed system.

Re:Git-bug: Distributed, offline-first bug tracker embedded ... by topogios on Thursday November 24, 2022 @11:02AM (#33732839)
Perhaps there is a way to use tagging for "aliasing" a given issue?
Re:Git-bug: Distributed, offline-first bug tracker embedded ... by wankle on Thursday November 24, 2022 @11:19AM (#33733044)
Git repos already grow large as it is, I would like to keep all blockchain use off of all my systems.
Re:Git-bug: Distributed, offline-first bug tracker embedded ... by bryanlarsen on Thursday November 24, 2022 @12:02PM (#33733548)
The git log is a block chain.
Re:Git-bug: Distributed, offline-first bug tracker embedded ... by anonyme-honteux on Thursday November 24, 2022 @12:24PM (#33733835)
Nope the git log is a merkle tree. The blockchain is a merkle tree plus all the layers of overengineering you need to have a consensus algorithm. And usually you "need" a consensus algorithm mostly for ideological reasons. My view is that building trust is better than assuiming it can't or shouldn't exist.
Re:Git-bug: Distributed, offline-first bug tracker embedded ... by eudoxus on Thursday November 24, 2022 @05:31PM (#33736989)
To be pedantic, both git logs and blockchains are actually Merkle DAGs or Hash Graphs, whichever you prefer. All Merkle Trees are Merkle DAGs but not all Merkle DAGs are Merkle Trees.
Re:Git-bug: Distributed, offline-first bug tracker embedded ... by bryanlarsen on Thursday November 24, 2022 @05:37PM (#33737033)
Merkle tree is a technical term with a specific meaning.

Block chain is a fairly generic, badly misused term that I assert also covers the git log, which is actually a chain of cryptographic blocks where each block includes the hash of the previous. It even has a consensus algorithm. You can disagree, but your assertion is just an opinion in constrast to a misuse of the term Merkle tree.

Re:Git-bug: Distributed, offline-first bug tracker embedded ... by fdye on Thursday November 24, 2022 @12:16PM (#33733726)
+1 to this commenter

Really cool idea, but I would second a shorter and sequential way of ID'ing bugs. Its common in QA flows to use the JIRA-like shorthand to discuss/assign tickets. <Proj alias>-<sequential num>. Proj-alias is usually like 3 letters/nums (project configurable). So like SEC-3640, QWE-123, etc. Human-readable/discussable bug ID is gonna be something desired. Hash could stay as an alternate for those with deeper GIT knowledge, but its gonna get verbose to discuss a ticket.

Re:Git-bug: Distributed, offline-first bug tracker embedded ... by jedberg on Thursday November 24, 2022 @01:48PM (#33734902)
It doesn't even have to be that complicated. How many bugs and contributors can a project have?

Add a bug_id_lockfile where you claim a namespace that starts with a letter, and if you sync up and someone has already claimed that namespace, you have to change and rename your bugs. The time of the checkin determines who gets it. There might be a couple bugs you have to rename, if you don't sync up right away.

So my bugs would start with A, yours with B, and so on. Once you get to 26 contributors you do two letters, etc.