Update image used for CircleCI#664
Conversation
A little more information on this. The output from Compare that to the passing build here: |
I just pushed a commit that will display the output from |
| appropriate/curl -4 --insecure --retry 20 --retry-delay 2 --retry-connrefused https://localhost/v1/projects \ | ||
| | tee /dev/tty \ | ||
| | grep -q '\[\]' | ||
| docker compose exec -T service npx pm2 list | grep -c "online" | grep -q 4 || exit 1 |
There was a problem hiding this comment.
I removed exit 1, because if grep -q 4 doesn't find 4, it should already return with an exit status of 1. That alone will cause the command to exit, since CircleCI runs bash with -e (docs). The other uses of grep above don't use exit.
lognaturel
left a comment
There was a problem hiding this comment.
Thank you! I left it as-is when I did the last update pass here thinking that there were unlikely to be changes that would affect host functionality between releases of 20.04. I do think we should generally track what we use in Cloud which is currently 20.04 latest. That means this is indeed an improvement and we can look into the pm2 issue when we plan on doing an upgrade to hosts.
When I view a build in CircleCI, I see the following warning (e.g., here):
This PR resolves the warning by updating the image.
What has been done to verify that this works as intended?
CircleCI continues to pass.
Why is this the best possible solution? Were any other approaches considered?
This PR targets the current version of Ubuntu 20.04. If we were concerned that we might introduce something to Central that would work in a new version of Ubuntu 20.04, but not an older one, we could intentionally target an older version. It looks like one of the options is
previous, which is 3–6 months old, though I think that's Ubuntu 22.04. That link says, "We recommend using thedefaultversion and not pinning to a date version." The list of images available for Ubuntu 20.04 is here.Relatedly, I saw that Ubuntu 20.04 will reach EOL in 2025. With that in mind, I tried specifying
image: default. It looks like that's currentlyubuntu-2204:2024.04.4. However, when I do so, CircleCI fails. From a glance, it looks like pm2 isn't working as expected. That sounds like it could be an issue worth looking into. I'm not able to do so at this particular moment, but I'd be happy to file an issue about it if that'd be helpful.Before submitting this PR, please make sure you have:
nextbranch OR only changed documentation/infrastructure (masteris stable and used in production)