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

Pre-merge check failure for ogmios deployments #1704

Closed
TrevorBenson opened this issue Nov 15, 2023 · 6 comments
Closed

Pre-merge check failure for ogmios deployments #1704

TrevorBenson opened this issue Nov 15, 2023 · 6 comments

Comments

@TrevorBenson
Copy link
Collaborator

TrevorBenson commented Nov 15, 2023

Describe the bug
Ogmios deployment fails with the following errors during premerge (and local testing from master branch):

> Pre-merge check failure appears to be ogmios based:
> 
> ```
> 280.8 Installing Ogmios
> 115
> 281.3 curl: no URL specified!
> 116
> 281.3 curl: try 'curl --help' for more information
> 117
> 281.3 ERROR: Download of latest release of ogmios archive from GitHub failed! Please retry or manually install it.
> ```
> 

I can see the ogmios_asset_url curl returns. However the json from api.github.com does not appear to have the assets key, but does have an assets_url. I suspect the API implemented a change to the data structure, breaking ogmios setup.

To Reproduce
Steps to reproduce the behavior:

  1. Follow Guild docs Basics section
  2. Include ogmios deployment with -s o
  3. Observe error

Expected behavior
Ogmios deploys without errors.

Screenshots

Version:

  • OS: RHEL 9
  • Product version: ./guild-deploy.sh from master branch as of commit 0f0b938
  • Cardano Node version: N/A
  • Network you're connecting to: N/A (mainnet)

Additional context

Took a closer look during lunch and it seems that browser_download_url exists, however, it is no longer in the response's first indice of the first list.

$ curl -s https://api.github.com/repos/CardanoSolutions/ogmios/releases | jq '.[0].assets[].browser_download_url'
[guild@rhel92 tmp]$ 

It is now part of the second (1) indice of the first list .[1].assets.browser_download_url:

curl -s https://api.github.com/repos/CardanoSolutions/ogmios/releases | jq '.[1].assets[].browser_download_url'
"https://github.com/CardanoSolutions/ogmios/releases/download/v6.0.0-rc4/ogmios-v6.0.0-rc4-x86_64-linux.zip"
[guild@rhel92 tmp]$ 
@TrevorBenson
Copy link
Collaborator Author

it is now part of the second (1) indice of the first list .[1].assets.browser_download_url:

That is simply because the pre-compiled artefacts for ogmios have not yet been uploaded, outside of current PR's scope

@rdlrt Not sure I understand. Do you mean between each release there are moments where the ogmios_assets_url will fail to obtain a url and breaks the guild-deploy.sh script's deployment?

@rdlrt
Copy link
Contributor

rdlrt commented Nov 16, 2023

Do you mean between each release there are moments where the ogmios_assets_url will fail to obtain a url and breaks the guild-deploy.sh script's deployment?

yip - we should ideally loop through asset URL list for ogmios. Typically this wouldnt be an issue as we would only work against a stable release (not pre-release tag), but atm - we prefer ogmios v6.0.0rcX to v5.6.0

@rdlrt
Copy link
Contributor

rdlrt commented Nov 21, 2023

Closed in commit 7f8ca9b

@rdlrt rdlrt closed this as completed Nov 21, 2023
@TrevorBenson
Copy link
Collaborator Author

TrevorBenson commented Nov 24, 2023

Closed in commit 7f8ca9b

Commit 7f8ca9b did not address the Ogmios issue from what I can tell. For example, PR #1707 fails to build unless the o option is removed from dockerfile_bin. I had intended to submit a workaround with fallback logic in case there are extended periods (like now) where artifacts are not published and break deployments.

@rdlrt Is the preference to keep the Ogmios logic as it is, letting it cause deployment failures? If not I will reopen this issue and submit a PR for review.

@rdlrt
Copy link
Contributor

rdlrt commented Nov 24, 2023

PR #1707 did not have the commit for ogmios fix, it was amended to that commit later

@TrevorBenson
Copy link
Collaborator Author

TrevorBenson commented Nov 24, 2023

PR #1707 did not have the commit for ogmios fix, it was amended to that commit later

Sorry, my mistake meant #1703 not #1707 (the current PR).

I see the added commit with | grep linux.zip | head -1, I hadn't realized that was in alpha while tests were against master branch on 1707.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants