question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate deterministic output

See original GitHub issue

Since we’re using the current date for ids of the graphs in the SVG output, we can’t generate a deterministic output and thus we can’t use automated tools to check whether those graph have changed (by just diffing the output)

It was changed here: https://github.com/knsv/mermaid/commit/5b6dfb01a6a3d458893c71249b9e9e7c5a911140 Is there any specific reason to do that? Can we revert that commit or find any other solution? Maybe make this configurable?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
julianbeicommented, Nov 23, 2020

I have added a PR here: https://github.com/mermaid-js/mermaid/pull/1787

Please give some feedback. The Date.now() Ids are getting annoying in our setup where prior to each release an SVG is generated and checked into git. Right now the SVG needs to be overwritten every time.

So I added this feature PR.

1reaction
sindre-nistadcommented, May 18, 2020

As a side, the ID could start at some pseudorandom point, determined by the user, or the Base64 string that is given.

Read more comments on GitHub >

github_iconTop Results From Across the Web

deterministic output - Informatica Documentation
Source or transformation output that does not change between session runs when the input data is consistent between runs.
Read more >
Deterministic algorithm - Wikipedia
In computer science, a deterministic algorithm is an algorithm that, given a particular input, will always produce the same output, with the underlying ......
Read more >
How to Create Deterministic Guids - Stack Overflow
You need to make a distinction between instances of the class Guid , and identifiers that are globally unique. A "deterministic guid" is...
Read more >
C# Compiler Options - code generation options | Microsoft Learn
Deterministic compilation can be used for establishing whether a binary is compiled from a trusted source. Deterministic output can be useful ...
Read more >
Deterministic Tensorflow Part 1: Model Training - jackd
Determinism : our programs should produce exactly the same outputs for the same inputs. Pre-emptibility: our programs should be able to be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found