install-crystal icon indicating copy to clipboard operation
install-crystal copied to clipboard

Nightly Installs Failing

Open grepsedawk opened this issue 2 years ago • 9 comments

Right now, when you try to install a nightly, it results in a circleCI 401 (unauthenticated) error: https://github.com/public-law/devise.cr/runs/5568601799?check_suite_focus=true#step:3:12

grepsedawk avatar Mar 16 '22 10:03 grepsedawk

Working on it. Thanks!

beta-ziliani avatar Mar 16 '22 11:03 beta-ziliani

For reference: https://github.com/crystal-lang/crystal/pull/11902

straight-shoota avatar Mar 16 '22 12:03 straight-shoota

Cool, I thought I saw reference to somebody working on it, just wanted to make sure something was documented for others' having similar issues

For reference, the changes required to fix the common ci.yml look like this: https://github.com/grepsedawk/sharded.cr/commit/77ec4ca2df67cede29bb13fc43e1eb8c9a1b294d

grepsedawk avatar Mar 16 '22 12:03 grepsedawk

Removing nightly builds shouldn't be necessary, really. I'm confident we'll have this fixed and running quickly. Having a nightly build fail once shouldn't be an issue (they're unstable nightlies after all, so failure could happen for all kinds of reasons).

straight-shoota avatar Mar 16 '22 12:03 straight-shoota

The next nightlies should be available again (https://github.com/crystal-lang/crystal/pull/11902). We're just missing an update for the action.

straight-shoota avatar Mar 21 '22 22:03 straight-shoota

Ah, in the meantime the old approach to fetching the nightlies started working again on its own 😅

oprypin avatar Mar 21 '22 22:03 oprypin

🤦‍♂️

Maybe too many people complained at circle ci and they rolled back?

I think we should still continue with this change, though. We'd just depend on cicleci changing their mind again.

straight-shoota avatar Mar 21 '22 22:03 straight-shoota

More importantly, it's The Right Thing to Do™

beta-ziliani avatar Mar 22 '22 00:03 beta-ziliani

Failed again for me, but with a different error, could just be another blip :shrug:.

Installing package dependencies
Looking for latest Crystal build
sudo -n apt-get install -qy --no-install-recommends --no-upgrade -- libevent-dev libgmp-dev libpcre3-dev libssl-dev libxml2-dev libyaml-dev
Found Crystal build https://circleci.com/gh/crystal-lang/crystal/6[8](https://github.com/Blacksmoke16/oq/runs/5698495489?check_suite_focus=true#step:3:8)260

Error: TypeError: Cannot read property 'url' of undefined

https://github.com/Blacksmoke16/oq/runs/5698495489?check_suite_focus=true

Blacksmoke16 avatar Mar 25 '22 21:03 Blacksmoke16

This seems to have come back up, although with a new error:

2023-03-17T02:17:04.4892859Z Run crystal-lang/install-crystal@v1
2023-03-17T02:17:04.4893171Z with:
2023-03-17T02:17:04.4893381Z   crystal: nightly
2023-03-17T02:17:04.4893777Z   token: ***
2023-03-17T02:17:04.8896321Z Installing package dependencies
2023-03-17T02:17:04.8914142Z Looking for latest Crystal build
2023-03-17T02:17:04.9214428Z [command]sudo -n apt-get install -qy --no-install-recommends --no-upgrade -- libevent-dev libgmp-dev libpcre3-dev libssl-dev libxml2-dev libyaml-dev
2023-03-17T02:17:06.0214546Z Found Crystal build https://circleci.com/gh/crystal-lang/crystal/75069
2023-03-17T02:17:06.8993191Z ##[error]TypeError: artifacts.find is not a function

https://github.com/athena-framework/athena/actions/runs/4443502701/jobs/7800816554

EDIT: Seems to be intermittent. Probably something to do with the request to get the artifacts failing and returning an error object versus array.

Blacksmoke16 avatar Mar 17 '23 03:03 Blacksmoke16

https://discuss.circleci.com/t/issues-fetching-artifacts-vi-ui-and-api/47496/5

Thanks for reporting this. We have identified the root cause and will be rolling it back within the next hour.

That has since been completed and re-ran some of the jobs that failed due to this and they passed. So should be good to go.

Blacksmoke16 avatar Mar 20 '23 14:03 Blacksmoke16

I'm seeing this error again: artifacts.find is not a function 😞

https://github.com/crystal-lang/test-ecosystem/actions/runs/9549827678/job/26320931726

straight-shoota avatar Jun 17 '24 15:06 straight-shoota

Doesn't seem to be exact issue as last time. I'm kinda at a loss on this one. Can see this failure: https://github.com/Blacksmoke16/oq/actions/runs/9554914440/job/26338348064

Found Crystal build https://circleci.com/gh/crystal-lang/crystal/84001

But if I follow along with the code https://github.com/crystal-lang/install-crystal/blob/d2446e1c80c6741d8639115c1166578b43c62265/index.js#L405-L411

It works fine, in Chrome console at least:

image

:thinking:

Blacksmoke16 avatar Jun 17 '24 22:06 Blacksmoke16

Ah, I figured it out. When I reproduced the steps I was logged into CircleCI. However, hitting up the artifacts endpoint for that build in incognito results in:

{"message":"You must log in first"}

I found a thread and bumped it as it seems there was a change in behavior. TBD if that is intended or not.

Blacksmoke16 avatar Jun 18 '24 02:06 Blacksmoke16

OK we have a problem indeed. It also happens on test runs of the action from today https://github.com/crystal-lang/install-crystal/actions/runs/9559784277

oprypin avatar Jun 18 '24 06:06 oprypin

Seems to be working again as of now. Tho as per the other responses to that thread, TBD if it's actually resolved, or will break again at some point in the near future...

Blacksmoke16 avatar Jun 18 '24 13:06 Blacksmoke16