Git Product home page Git Product logo

Comments (7)

sfarqu avatar sfarqu commented on May 16, 2024 2

Thank you for bringing this issue up, and apologies for lack of response so far. I've raised a ticket internally to investigate this, will update here with any progress.

from hasura-cloud-preview-apps.

sfarqu avatar sfarqu commented on May 16, 2024 1

@jasongoetz One of the issues we discovered with this action is that the error message is incorrect. Error: could not find the GitHub job; the associated deployment was terminated is always displayed no matter what the actual problem is. This makes it more difficult to identify the actual problem in these cases. This issue is being picked up this sprint and should be resolved soon.

This action uses the Preview Apps API (see previewApps.ts for the queries that are being made) so if you need a custom action you may be able to use this as a reference for any customizations you need.

from hasura-cloud-preview-apps.

osdiab avatar osdiab commented on May 16, 2024 1

So after trying to add more logging to the actual action, I find nothing very helpful - basically

  • the GQL query itself (query getJobStatus($jobId: uuid!)) doesn't throw anything
  • it just returns a null value
  • the jobId came from the creation of the github preview app (mutation createPreviewApp), which lends one to think that the GraphQL API ought to be able to get the status, but maybe it's dependent on some async thing that may or may not be ready? or some caching is being messed up?

my best guess is that it's querying too early before the job exists in Hasura's system (or there's some bug in how the querying logic works maybe). so maybe a reasonable approach would be to just have it retry a few times instead of erroring immediately to give the system a chance to properly return this value.

from hasura-cloud-preview-apps.

osdiab avatar osdiab commented on May 16, 2024 1

Tried retrying 3 times with 2 second time outs, that didn't do the trick. trying retrying up to 10 times (20s) (that didn't work either). I'm also finding that this isn't consistently just on the first run, when i retry jobs it sometimes happens again for... reasons. So yeah, it's probably not just some async delay on Hasura Cloud's end, it seems like something is fundamentally breaking on the other side.

Screenshot 2023-06-18 at 23 03 17

from hasura-cloud-preview-apps.

jasongoetz avatar jasongoetz commented on May 16, 2024

I have been experiencing the same issue. Is this happening with everyone? I don't imagine there is any way around this right now.

from hasura-cloud-preview-apps.

jasongoetz avatar jasongoetz commented on May 16, 2024

This issue now happens for us on every single run. Re-running the job leads to the same error. Error: could not find the GitHub job; the associated deployment was terminated

We have the need to configure Vercel and Hasura together in our preview environments so they are aware of each other's URLs. So a custom action is necessary if we're going to have preview environments that work.

Should I try to work with the Preview Apps API instead? Would that give me any more success? https://hasura.io/docs/latest/deployment/hasura-cloud/ci-cd/preview-apps/#preview-apps-api

from hasura-cloud-preview-apps.

osdiab avatar osdiab commented on May 16, 2024

Mentioning considerably later, this is still happening. Is it safe to assume that this project is dead at Hasura?

from hasura-cloud-preview-apps.

Related Issues (16)

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.