Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TS-173] Intermittent Errors when Retrieving Version #80

Open
qmg-jhayden opened this issue Jan 16, 2023 · 2 comments
Open

[TS-173] Intermittent Errors when Retrieving Version #80

qmg-jhayden opened this issue Jan 16, 2023 · 2 comments
Labels
jira-issue Issue tracked on JIRA

Comments

@qmg-jhayden
Copy link

qmg-jhayden commented Jan 16, 2023

Hi

We're seeing intermittent errors, without a helpful error message, around the step where it retrieves the browser download url.

I have a suspicion that any error message will be getting masked when the response from curl -Ls https://api.github.com/repos/codacy/git-version/releases/latest is being piped to the jq statement.

Furthermore, the url in the else statement is returning a 404 - but that is potentially being hidden when the output is being directed to > /usr/local/bin/git-version

Run codacy/git-version@80c816f11db8dea5e3a81025f598193015b51832
  with:
    release-branch: master
    minor-identifier: minor:
    major-identifier: major:
    prefix: v
    tool-version: latest
    dev-branch: dev
    log-paths: ./
Run set -eo pipefail
  set -eo pipefail
  if [ "latest" = "latest" ]; then
    download_url="$(curl -Ls https://api.github.com/repos/codacy/git-version/releases/latest | jq -r .assets[0].browser_download_url)"
  else
    download_url="https://github.com/codacy/git-version/releases/download/latest/git-version"
  fi
  curl -Ls "$download_url" > /usr/local/bin/git-version
  chmod +x /usr/local/bin/git-version
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Error: Process completed with exit code [6](https://github.com/xxxxxxx#step:4:6).

Is anyone else seeing this same behaviour?

Thanks

@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Jan 16, 2023
@github-actions github-actions bot changed the title Intermittent Errors when Retrieving Version [TS-173] Intermittent Errors when Retrieving Version Jan 16, 2023
@github-actions
Copy link

Internal ticket created : TS-173

@sv3ndk
Copy link

sv3ndk commented Jul 24, 2023

We've experienced the same issue today in one of our builds.
As a work-around, I set the tool version parameter to a fixed value; tool-version: 2.8.0, to make sure the execution flow always goes via the else path of the code snippet mentioned in the description, and so far it seems to work for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

2 participants