Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix: more explicit logging in load test #2309

Merged
merged 1 commit into from
Jun 9, 2022
Merged

Conversation

robx
Copy link
Contributor

@robx robx commented Jun 9, 2022

  • Write vegeta output to file explicitly.
    The previous version using tee captured the standard
    output of the withPgrst helper, too, causing weird
    errors when those had unexpected output.

  • Log and fail the postgrest build explicitly.
    In situations such as changing nix dependencies, the
    cabal build run could fail, but this wasn't visible
    in CI.

With these changes, the load test now fails with a nice
error message when the build fails.

@robx
Copy link
Contributor Author

robx commented Jun 9, 2022

This only fixes #2308 in so far as making the build failure explicit, but I'm okay with that for now.

@robx robx force-pushed the loadtest-fail branch from 803c96a to 6775378 Compare June 9, 2022 10:23
@wolfgangwalther
Copy link
Member

Yes, that's much better.

As proposed in #2308 I suggest we keep the issue open to run the loadtest conditionally later on. Maybe we just need to add some condition that a failure of the loadtest is fine. We don't have an automated evaluation of the loadtest results so far anyway - so the only failure mode is when the test itself didn't succeed.

* Write vegeta output to file explicitly.
  The previous version using `tee` captured the standard
  output of the `withPgrst` helper, too, causing weird
  errors when those had unexpected output.

* Log and fail the postgrest build explicitly.
  In situations such as changing nix dependencies, the
  `cabal build` run could fail, but this wasn't visible
  in CI.

With these changes, the load test now fails with a nice
error message when the build fails.
@robx robx force-pushed the loadtest-fail branch from 6775378 to 5aaab46 Compare June 9, 2022 12:56
@robx robx changed the title nix: more explicit logging in load test (fixes #2308) nix: more explicit logging in load test Jun 9, 2022
@robx robx merged commit 4dfcb59 into PostgREST:main Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants