karancode / kustomize-github-action

:european_castle: Github action for kustomize
https://github.com/marketplace/actions/kustomize-github-action
MIT License
44 stars 28 forks source link

[BUG] v1.3.0 gets stuck waiting forever for kustomize download url #38

Open nfoucha opened 1 year ago

nfoucha commented 1 year ago

Describe the bug

As of v1.3.0, it looks like the API throttling issue has gone the opposite direction. Where before the action would fail, it now runs forever.

To Reproduce

Run a GitHub actions workflow with some number of kustomize steps (on this specific build it's 9 parallel steps)

Expected behavior

The action should complete normally with some delay due to API throttling.

Screenshots/Actions log

image

getting download url for kustomize 4.2.0

Running on:

Additional context

As with the original issue #35 this is intermittent in nature. Rerunning the failed steps eventually works. Subsequent runs may fail different kustomize steps.

With the code in the PR that addressed the initial issue, I would expect a hard failure after ~120s. That's not happening here as the action was still running after 25 minutes.

ekristen commented 1 year ago

I'm seeing this behavior a LOT. Like multiple times a day. I am pretty sure this is getting rate limited by the API.

karancode commented 1 year ago

@nfoucha could you try with latest version @master or v1.3.1 ? Thanks to @ekristen's contrib.

nfoucha commented 1 year ago

I unfortunately left the company where I was encountering this issue. @cwhite-ecr can you take a look?

cwhite-ecr commented 1 year ago

@karancode @nfoucha, I set up v1.3.1 against the workflow reported against in this issue and have not run into any limiting since doing so.

okkero commented 1 year ago

Hi. I'm still experiencing this a lot on master. Even in the cases where it doesn't hang forever, it still takes a minute or two to get the Kustomize download URL.

byted commented 1 year ago

same for us. On master we get stuck regularly.

ekristen commented 1 year ago

@byted if you add authentication based on the docs it should resolve it.

davidwincent commented 1 year ago

Seeing 2 minutes plus on step "getting download url for kustomize 5.0.0"

Workflow file:

name: "Validate dev"
on:
  pull_request:
    branches:
      - main
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
  kustomize-argocd:
    name: "Kustomize deploy/overlays/dev/argocd"
    runs-on: ubuntu-latest
    steps:
      - name: "Checkout"
        uses: actions/checkout@master

      - name: "Dry run"
        uses: karancode/kustomize-github-action@master
        with:
          kustomize_install: true
          kustomize_version: "5.0.0"
          kustomize_build_dir: "deploy/overlays/dev/argocd"
          kustomize_comment: true
          kustomize_output_file: "gitops/overlays/dev/argocd/rendered.yaml"
        env:
          GITHUB_ACCESS_TOKEN: ${{ env.GITHUB_TOKEN }}
davidwincent commented 1 year ago

Seeing 2 minutes plus on step "getting download url for kustomize 5.0.0"

Workflow file:

name: "Validate dev"
on:
  pull_request:
    branches:
      - main
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
  kustomize-argocd:
    name: "Kustomize deploy/overlays/dev/argocd"
    runs-on: ubuntu-latest
    steps:
      - name: "Checkout"
        uses: actions/checkout@master

      - name: "Dry run"
        uses: karancode/kustomize-github-action@master
        with:
          kustomize_install: true
          kustomize_version: "5.0.0"
          kustomize_build_dir: "deploy/overlays/dev/argocd"
          kustomize_comment: true
          kustomize_output_file: "gitops/overlays/dev/argocd/rendered.yaml"
        env:
          GITHUB_ACCESS_TOKEN: ${{ env.GITHUB_TOKEN }}

Changing workflow to this worked for me:

name: "Validate dev"
on:
  pull_request:
    branches:
      - main

jobs:
  kustomize-argocd:
    name: "Kustomize deploy/overlays/dev/argocd"
    runs-on: ubuntu-latest
    steps:
      - name: "Checkout"
        uses: actions/checkout@master

      - name: "Dry run"
        uses: karancode/kustomize-github-action@master
        with:
          kustomize_install: true
          kustomize_version: "5.0.0"
          kustomize_build_dir: "deploy/overlays/dev/argocd"
          kustomize_comment: false
          kustomize_output_file: "itops/overlays/dev/argocd/rendered.yaml"
          token: ${{ secrets.GITHUB_TOKEN }}
gvillafanetapia commented 1 month ago

had the same issues in 1.3.0 downgraded to 1.2.4 and its working fine