Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Conversation

@johnstcn
Copy link
Member

I made a simple and dumb script to check the modules on registry.coder.com.
Gonna see how it goes for the moment before hooking it up to any sad trombones.

@johnstcn johnstcn self-assigned this Nov 14, 2024
Copy link

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

printf "=== Check module %s at %s\n" "${module}" "${url}"
status_code=$(curl --output /dev/null --head --silent --fail --location "${url}" --retry 3 --write-out "%{http_code}")
# shellcheck disable=SC2181
if (( status_code != 200 )); then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the server returns 3XX cache responses?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't noticed any of those after running it but I suppose the proof is in the eating.

Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions but LGTM.

@johnstcn johnstcn merged commit 57d96ca into main Nov 15, 2024
2 checks passed
@johnstcn johnstcn deleted the cj/check-modules branch November 15, 2024 12:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants