GithubHelp home page GithubHelp logo

Comments (9)

trotzig avatar trotzig commented on June 14, 2024 1

I've just deployed a fix for the race-condition to happo.io. I'll close this issue, but feel free to reopen if the issue doesn't go away.

from happo.io.

trotzig avatar trotzig commented on June 14, 2024

Thanks for the report! I’ll look into this after the weekend. Sounds like something isn’t triggered the right way.

Are you using CircleCi, Travis, or a different CI system? This might not matter, I’m just making sure I can debug this in the best possible way.

from happo.io.

matthieu-foucault avatar matthieu-foucault commented on June 14, 2024

Thanks for the quick response!
We use CircleCI. I am wondering if us using a different base branch than the default might have to do with this issue

from happo.io.

trotzig avatar trotzig commented on June 14, 2024

It shouldn't matter, but I'll make sure to check that.

from happo.io.

trotzig avatar trotzig commented on June 14, 2024

Sorry for not reporting any results back here. I haven't forgot about it, it's just that other more important things snuck in before I had a chance of addressing this. 🤷

I hope to look at this during the week though.

from happo.io.

matthieu-foucault avatar matthieu-foucault commented on June 14, 2024

No worries, let me know if I can help debug the issue

from happo.io.

trotzig avatar trotzig commented on June 14, 2024

Okay, I think I've confirmed this is a race condition. The happo-cypress lib posts to the create job API endpoint right after it has initialized an async-report. In your case, the first call is very fast and posts a "success" status to the commit on GitHub right away. The second call posts a pending "job started" status as well, overriding the initial success status.

While this could be fixed in the happo-cypress library, I'm going to handle things on the server as well (working on that now). I think other clients might make assumptions about order not being important anyway, so we might as well fix in one place.

from happo.io.

matthieu-foucault avatar matthieu-foucault commented on June 14, 2024

This is working fine now, thanks!

from happo.io.

trotzig avatar trotzig commented on June 14, 2024

Excellent, thanks for the report!

from happo.io.

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.