562 karma · joined Mar 1, 2020 (6y ago) · 156 submissions
121.
Complex Procedural Rust Macros(getsynth.com ↗)
1 points · by openquery · 5y ago · discuss
122.
Mobile phones on aircraft(en.wikipedia.org ↗)
48 points · by openquery · 5y ago · 50 comments
124.
Gather - Online workspace for teams(gather.town ↗)
1 points · by openquery · 5y ago · 4 comments
comment 5y ago · link · parent
We've been quite frustrated with the status quo of test data generation - after speaking to tons of other devs we've realised that many people are struggling when it comes to generating realistic looking test data.
Also, where people don’t want to copy sensitive production data to testing environments, data obfuscation can be a huge time-sink.
Enter Synth: a declarative data generator (see our website: https://getsynth.com/, github: https://github.com/getsynth/synth)
Synth enables devs and dev teams to have their application data models as code (basically a hierarchy of files) in their repos. These files can then be used to generate data for a local dev environment, automated testing in CI or even for sharing across organisations. The parameters of generation can also be tweaked to push the data model to its limits for QA, and even scaled for load testing / performance testing.
We're now working on taking the next step, and building a DSL around Synth. The Synth DSL will enable users to concisely define what data should look like and get going.
We're open source and written 100% in Rust. We believe that by making test data be as easy as using production data, we can improve the security and privacy for all of us. We'd love to get more early users as the initial feedback is positive but limited.
Thank you and looking forward to any feedback / ideas about how we can build a better tool for you!
P.S. Synth launched on HN a while back (https://news.ycombinator.com/item?id=24198114) as an ML solution to create realistic (and safe) copies of your sensitive production data as a service. This approach quickly hit several limitations which couldn't address the use-cases we are trying to solve, happy to go into more details on this if anyone is interested.
127.
Tired of creating test data by hand, we've built an open source data generator(getsynth.com ↗)
14 points · by openquery · 5y ago · 3 comments
comment 5y ago · link · parent
I love Terraform and have used it for years (before 0.12 I think). The workflow, meaningful diffs and reproducible 'infrastructure-as-code' gave a user experience that really was a massive step up to what I was used to (basically cloud console and scripts in CI).
In fact the Terraform workflow / philosophy inspired some of the design of an OSS 'data-as-code' tool (https://www.getsynth.com/) that we're building a company around. We wanted to use HCL instead of JSON for our config to start off with, but the Rust HCL parsers when we started the project weren't really robust so we settled.
Anyway, congratulations Hashicorp!
comment 5y ago · link · parent
If you need to create test data with complex business logic, referential integrity and constraints we've been working on declarative data generator that is build exactly for this: https://github.com/openquery-io/synth.
130.
Synth (YC S20) Is Hiring Rust Software Engineers(ycombinator.com ↗)
by openquery · 5y ago
comment 5y ago · link · parent
> Anyone able to weigh in on what "at scale" means here? Just "N number of records" where N is larger than is tenable by manual curation?
Scale here refers to the complexity of the schema. (I admit perhaps the wording is misleading). If your schema is sufficiently complex, generating coherent data can be a massive PITA - Synth alleviates that pain :).
> What about generating realistic amounts of data for performance testing (millions of records), and pushing that to shared database servers, or making it available for developers to populate their local databases? Are there best practices for this?
Good question. As Synth currently stands, theoretically it can do millions of rows but it would take a while as it's making calls to a Python runtime to piggy-back off the Faker lib.
I think I'll make a follow up post about this as it is quite an interesting question.
132.
How to create PostgreSQL test data at scale(openquery-io.github.io ↗)
22 points · by openquery · 5y ago · 2 comments
comment 6y ago · link · parent
But honestly, kudos to the YC team. At a time when remote working was not as established as it is today - things were still awkward as people were not necessarily used to socialising over Zoom - the array of tools which have been developed to make remote working easier during the pandemic were not as refined and so on - the YC team delivered a really excellent experience which was very fulfilling.
We had loads of time with the partners - we met a bunch of other founders (even became friends with some). Every event that I attended was executed perfectly, with almost 0 scheduling or connection issues.
The only reality (not much could be done about this) which was a bit awkward is juggling time zones. We are based in Europe so all events were deep in the PM.
(Also not paying an exorbitant rent for 3 months definitely helped our runway)
comment 6y ago · link · parent
Yes we've seen this quite a lot in the wild. The truth is this is not very well defined - how do you get your data to tell a story depends on the story you are trying to tell.
We are trying to come up with a more rigorous framework for abstract representations of 'scenarios' . It's on our roadmap so keep an eye out for this :)
comment 6y ago · link · parent
What I can say is that these were alternative[0] datasets.
[0] https://en.wikipedia.org/wiki/Alternative_data_(finance)
comment 6y ago · link · parent
From what we have seen, Delphix is very much focused exclusively on large enterprise, and by extension does not look like a tool which is focused on the developer experience (could be wrong here).
We are much more focused at addressing the engineers in businesses - at the end of the day it's developers who will be using this tooling.
comment 6y ago · link · parent
The gist of it is that if the the original data has a spike around -71, you will indeed see a spike in the synthetic copy as well. What it boils down to under the hood is a decision on the value of a continuous degree of freedom between two pieces of information:
- the information that you have a significant number of users located in Boston, and
- the information that any given particular user is located in Boston.
At a high level, we are taking the view that for your synthetic data to be realistic, it would need to spike around Boston if and only if most of your users are in Boston. This also means that you are not leaking information about any given individual user and that the behavior of the crowd is OK. Put more simply, if you have a single user located in Boston and all the others in, say, San Francisco, then your synthetic data should not end up having users in Boston at all.
Currently we do not have any bespoke support for lat/lon data, beyond it being like any other float of course. It is planned for the next release though! So check back in a couple weeks and it'll be there
comment 6y ago · link · parent
Feel free to get in touch if you would like to discuss more about your use case :)
comment 6y ago · link · parent
Yes - this is a WIP. Thanks for pointing it out
> `synth model inspect` output does not match the docs - how do I see the JSON?
Ah yes this is a typo in the docs. We'll fix it up. What you're looking for is: `synth --format json model inspect <model-id> | jq`
Thanks for the feedback!
comment 6y ago · link · parent
> Is there a way to guarantee a specific set of test data each time
Absolutely. You can seed the model so that the data you get each time is completely reproducible
> For this testing it's not as important that the data is repeatable, but the testers have a few different scenarios they want to test, so I'd need a way to make a low-data, medium-data, and high-data test set where the backing data fit within some ranges.
This is a great use-case for Synth. With the upcoming Firehose API you can point it at an existing database and specify how much synthetic data you want to generate and pump into your db.
For now you can either create a database and write the ETL, or do `synth model sample <model-id> --ouput <some-directory> --sample-size <number-of-rows>` to sample directly from the model into a directory of CSV files and use that to load your database
Feel free to get in touch if you would like to learn more :)
comment 6y ago · link · parent
> It is 100% easier for me to export a little production data to test on (and maybe sanitize), or to write a small script to generate a few users and those things I need to test.
In your case it may very well be. But when you are an organization with a schema which has 100+ tables and these tables have scattered sensitive information this can become a nightmare to manage. I've seen this first hand. Furthermore if you are trying to generate more than 'a little' data this can get more complex as you have to create factories and write a lot of code to make the whole thing coherent and tell a story. I think undertaking the added complexity of Synth is a trade-off one should consider depending on the sophistication of the testing data they require.
> If I did use it, i'd prefer it to be much easier to use
I think this misconception may be attributed to the fact that we use machine learning under the hood. We've spent a lot of time abstracting the developer away from this. In fact you can run the whole lifecycle with 1 line of code:
`synth model new --from-database <database-uri> --train --deploy`
> I would still be concerned about whether this is deterministically creating data or if its random?
At this point you can choose. You can either pick a seed with which the whole generation process starts (this may not be in production yet) or elect to randomly seed it.
Thanks for the great questions :)
comment 6y ago · link · parent
Even in the early days we've seen crazy data types and constraints that makes our job of completely automating the process hard. However, every instance of this makes the product better and this transfers to the next customer.
> You really need an analysis phase that can tell a customer whether their data will work or not
This is part of the roadmap, it's a non-trivial piece of engineering. In the meantime you can try it for free and see if it works for you :)
comment 6y ago · link · parent
For now text data will be marked as `categorical` or `text`. When you have sensitive data you want to use `text` which will provide a lorem-ipsum type generator.
If the model has classified that column with the semantic type `text`, no information from the column should be leaked :)