Comments (7)
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.
@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.
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.
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.
from hasura-cloud-preview-apps.
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.
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.
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)
- Reusing a non-empty DB results in the migration failing HOT 1
- Is this still being worked on? HOT 2
- Fetching metadata takes a really long time HOT 5
- Ability to run regression tests on preview apps?
- null errors / project not reachable HOT 2
- Fix the errors related to 'require' HOT 1
- setup release automation through github actions
- revoke connections before dropping ephemeral database
- elegant logging HOT 1
- have an opinionated SSL policy
- Job failing when using standard tier access token HOT 1
- Pushing to the same branch/PR again fails
- Hasura Preview Apps action fails most of times on first run
- Ability to assign custom domain through the input variables
- MIgrations take forever to run and often hangs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hasura-cloud-preview-apps.