Giter Site home page Giter Site logo

Comments (4)

arscan avatar arscan commented on May 28, 2024

Well that's a frustrating oversight. We probably should add some unit tests for this.

from crucible.

jawalonoski avatar jawalonoski commented on May 28, 2024

One possible solution is to reference/link to the result (all of which are under the size limit) rather than embed them within the test run.

But that would likely have downstream impacts... most notably processing the server score.

from crucible.

arscan avatar arscan commented on May 28, 2024

Results aren't embedded within test runs. Take a look at the test_runs and test_results collections in your local db.

I believe that line (self.test_results << result ) saves individual results to the test_result collection, and has each test_result reference back to its test_run with the test_run_id field. Maybe the fact that we are saving it all at once in one batch is causing this problem? We could try saving the test result individually, and manually set the test_run_id to point back to the test_run (instead of using mongoid's build in functionality for handling these relationships using array appends).

As an aside, if I was to do it again, I would also put requests/responses in it's own collection. That contains 99% of the data in our database, and would be nice split out into it's own collection so we could exclude it from database dumps, etc. It would also significantly speed up looking at test results by only downloading the request/response data when you click on 'view requests'.

from crucible.

jawalonoski avatar jawalonoski commented on May 28, 2024

Huh. Worth refactoring?

from crucible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.