Code Monkey home page Code Monkey logo

Comments (23)

qpetraroia avatar qpetraroia commented on July 30, 2024 1

Hey @gruebel,

we are looking into it

from setup-helm.

gruebel avatar gruebel commented on July 30, 2024 1

@OliverMKing sadly it still fails https://github.com/bridgecrewio/checkov/runs/6496731470?check_suite_focus=true

Current workflow steps

  integration-tests:
    strategy:
      fail-fast: true
      matrix:
        python: ["3.7", "3.8", "3.9", "3.10"]
        os: [ubuntu-latest, macos-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v3
        with:
          python-version: ${{ matrix.python }}
      - uses: actions/setup-node@v3
      - uses: azure/setup-helm@217bf70cbd2e930ba2e81ba7e1de2f7faecc42ba  # v2

from setup-helm.

github-actions avatar github-actions commented on July 30, 2024

This issue is idle because it has been open for 14 days with no activity.

from setup-helm.

github-actions avatar github-actions commented on July 30, 2024

This issue is idle because it has been open for 14 days with no activity.

from setup-helm.

gruebel avatar gruebel commented on July 30, 2024

@qpetraroia any update so far?

from setup-helm.

github-actions avatar github-actions commented on July 30, 2024

This issue is idle because it has been open for 14 days with no activity.

from setup-helm.

hairmare avatar hairmare commented on July 30, 2024

Has this been fixed in v2.1?

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

This seems to be working in v2.1. I'm unsure why this error occurred because there's no clear difference between v2.0 and v2.1 that would impact this issue. I've tested on the GitHub runner.

Can you please provide steps to reproduce.

from setup-helm.

github-actions avatar github-actions commented on July 30, 2024

This issue is idle because it has been open for 14 days with no activity.

from setup-helm.

github-actions avatar github-actions commented on July 30, 2024

This issue is idle because it has been open for 14 days with no activity.

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

@gruebel I attempted to reproduce it with your exact workflow. It still seems to be working correctly. Do you have any other information that we are missing?

https://github.com/OliverMKing/AKS-GitHub-Actions-Demo/actions/runs/2571044535

from setup-helm.

gruebel avatar gruebel commented on July 30, 2024

hey @OliverMKing I don't what you did with v3, but now it works 😄

from setup-helm.

gruebel avatar gruebel commented on July 30, 2024

It looked like it worked, but it doesn't work consistently. Sometimes yes and quite often no.

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

The difference between v3 and v2 is just a Node16 upgrade. Are you using a self hosted runner maybe?

I'll attempt to reproduce on my repo by running a few times.

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

Ideas:

  • Add a retry

Really need to figure out exactly what is throwing the 403 though.

from setup-helm.

gruebel avatar gruebel commented on July 30, 2024

@OliverMKing so I had an idea and enabled the debug logs to maybe give us some better idea, what could be wrong and it looks like there is a rate limit issue 😄

##[debug]Evaluating condition for step: 'Run azure/setup-helm@v3'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run azure/setup-helm@v3
##[debug]Loading inputs
##[debug]Loading env
Run azure/setup-helm@v3
##[debug]Downloading https://api.github.com/repos/helm/helm/releases
##[debug]Downloading /Users/runner/work/_temp/3dce280f-d28a-40ae-b2dd-35924239ab12
##[debug]Failed to download from "https://api.github.com/repos/helm/helm/releases". Code(403) Message(rate limit exceeded)
Error: Error: Unexpected HTTP response: 403
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run azure/setup-helm@v3

these are not self hosted ones, because we don't have our own macos runner.

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

That is the exact issue. Not sure there's any great ways for getting around the github api rate limit. We can provide a clearer error message instead of throwing the 403.

To temporarily avoid this you can use a specific helm version instead of latest.

from setup-helm.

gruebel avatar gruebel commented on July 30, 2024

makes sense, but why does it work with v1 better compared to v2/v3? And why is only the mac runner failing and not the others?

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

v1 has a fallback to a "stable" version if it can't fetch the latest. Not sure that's the ideal situation but we could add an input with a fallback.

Unsure why only the mac runner would be failing. The GitHub API should be platform-agnostic.

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

const helmJSONPath: string = await toolCache.downloadTool(helmAllReleasesUrl)

The bug is here. We need to move this to inside the try catch.

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

Second improvement is to swap from using the REST api to the GraphQL one. The GraphQL limit with this query is 5,000 per hour

{
  repository(name: "helm", owner: "helm") {
    releases(last: 100) {
      nodes {
        tagName
      }
    }
  }
}

versus only 1,000 per hour with the current REST.

from setup-helm.

OliverMKing avatar OliverMKing commented on July 30, 2024

Created a release. v3.1 (and v3) will fix this issue.

Appreciate the help!

from setup-helm.

gruebel avatar gruebel commented on July 30, 2024

@OliverMKing thanks for effort and fix 🥇 works as reliable as before.

from setup-helm.

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.