shuttle-hq / synth

The Declarative Data Generator
https://www.getsynth.com/
Apache License 2.0
1.37k stars 107 forks source link

Tests failing #383

Closed iamwacko closed 1 year ago

iamwacko commented 1 year ago

Describe the bug One of the tests on .json from a tutorial is failing.

To Reproduce Steps to reproduce the behavior: Have the cachix github action run.

See error

---- docs_blog_2021_08_31_seeding_databases_tutorial_dot_md stdout ----
/build/source/synth/tmp/docs/blog/2021-08-31-seeding-databases-tutorial:224 has a JSON only code block that will be skipped
thread 'docs_blog_2021_08_31_seeding_databases_tutorial_dot_md' panicked at 'Unable to open the namespace "docs/blog/2021-08-31-seeding-databases-tutorial"

Caused by:
    0: at file docs/blog/2021-08-31-seeding-databases-tutorial/735.json
    1: Failed to parse collection
    2: expected `,` or `}` at line 4 column 38
should contain one of the following errors: {
    "unknown variant `date_time`",
}', synth/tests/docs.rs:75:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    docs_blog_2021_08_31_seeding_databases_tutorial_dot_md

Expected behavior No error was expected.

Environment (please complete the following information): Github Actions

Additional context The only change between failing and passing was a minor change to documentation. I don't know why it fails now.

AlexMikhalev commented 1 year ago

cachix github action didn't run until Damien fixed permissions - this test was failing before.

iamwacko commented 1 year ago

The tests passed at one point recently.

test result: ok. 50 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

     Running tests/examples.rs (target/release/deps/examples-fe9d75c926767c1c)
iamwacko commented 1 year ago

I just reran the job and the test passed.

iamwacko commented 1 year ago

@all-contributors please add @iamwacko infra.

allcontributors[bot] commented 1 year ago

@iamwacko

I've updated the pull request to add @iamwacko! :tada: