Giter VIP home page Giter VIP logo

Comments (9)

tibotiber avatar tibotiber commented on August 13, 2024 1

I have no idea why this is happening, we're on the same environment, using the same docker image, pulling the same script and it works for us but not you. I've pinged the hasura team at hasura/graphql-engine#5389, hopefully they'll be able to help.

from hasura-action.

zallarak avatar zallarak commented on August 13, 2024 1

Thanks for your responsiveness. The weirdest part is, it actually works if I retry it enough times.

from hasura-action.

tibotiber avatar tibotiber commented on August 13, 2024

@chrisknu does this look similar to what you faced recently? How did you debug and find the sed issue?

from hasura-action.

chrisknu avatar chrisknu commented on August 13, 2024

Possibly.

Tested it by forking the repo, switching the install location to the stable branch, and updating my action to use the fork. Its worth noting the action, in its current state, is successfully installing/running on the repo I'm working with.

Running the command line locally, committing the -n sed flag will show the output. Prior to flipping to the stable branch, the CLI command was failing.

from master:
curl -s -f -H 'Content-Type: application/json' https://releases.hasura.io/graphql-engine\?agent\=cli-get.sh\) | sed -e "s/^."$release":"([^\",}])".*$/\1/p"
yields
{"latest":"v1.2.2","prerelease":"v1.3.0-beta.4"}

from stable:
curl -s -f -H 'Content-Type: text/plain' https://releases.hasura.io/graphql-engine?agent=cli-get.sh
yields
v1.2.2%

..it didnt seem to have the % in there last time I ran this.. but does today.

Fun sidenote: the hasura/graphql-engine/cli repo lists master as the install branch but the docs list stable.

from hasura-action.

zallarak avatar zallarak commented on August 13, 2024

This still totally fails for me. Any ideas? did the docker image change?

from hasura-action.

tibotiber avatar tibotiber commented on August 13, 2024

It's actually working for me as well, my action is on master which is the same as latest, and uses the stable branch of hasura. Is there anything special about your setup @zallarak? Would you mind sharing the workflow configuration?

To be fair, it was also working for me when @chrisknu posted his PR. There seeem to be some inconsistencies in experience overall. Are we all running our workflows on similar setup? Mine is on Github hosted ubuntu-latest.

from hasura-action.

zallarak avatar zallarak commented on August 13, 2024

ubuntu-latest

 ---> Using cache
 ---> b252f417865a
Step 9/14 : RUN apk add --no-cache curl bash libstdc++
 ---> Using cache
 ---> 73e78547d5fc
Step 10/14 : RUN curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash
 ---> Running in e4730a8ed212
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   139  100   139    0     0    302      0 --:--:-- --:--:-- --:--:--   302

100  3482  100  3482    0     0   6895      0 --:--:-- --:--:-- --:--:--  6895
--> Getting latest version...
--> 
--> Failed while attempting to install hasura graphql-engine cli. Please manually install:
--> 
--> 2. Open your web browser and go to https://github.com/hasura/graphql-engine/releases
--> 2. Download the cli from latest release for your platform. Name it 'hasura'.
--> 3. chmod +x ./hasura
--> 4. mv ./hasura /usr/local/bin
--> 
FAILED> exiting... 
The command '/bin/sh -c curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash' returned a non-zero code: 1

##[error]Docker build failed with exit code 1

from hasura-action.

tibotiber avatar tibotiber commented on August 13, 2024

There seem to be an element of response on the issue I've opened in their repo. Seems like an internal thing to how the install script works. Let's wait for now I guess.

from hasura-action.

tibotiber avatar tibotiber commented on August 13, 2024

This has now been reported fixed upstream. See hasura/graphql-engine#5389 (comment). Feel free to re-open if the problem persists.

from hasura-action.

Related Issues (13)

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.