Don't use link to latest stable release for nightly#1802
Conversation
|
@mre @thomas-zahner Could you review this one? I think when The latest stable doesn't yet have WDYT? |
Dockerfile-CI.alpine.Dockerfile
Outdated
| esac) \ | ||
| && BASE_URL=$(case $LYCHEE_VERSION in \ | ||
| "latest" | "nightly") echo "https://github.com/lycheeverse/lychee/releases/latest/download";; \ | ||
| "latest" | "nightly") echo "https://github.com/lycheeverse/lychee/releases/download/nightly";; \ |
There was a problem hiding this comment.
Have you double-checked that the URL structure is indeed different?
So:
- https://github.com/lycheeverse/lychee/releases/latest/download
- https://github.com/lycheeverse/lychee/releases/download/nightly
I'm not quite sure where that difference comes from.
There was a problem hiding this comment.
Just saw your other comment here, which means you probably tested it locally and it worked. Still confused why the URL-structure is different. Is it a GitHub quirk or what am I missing here? 🤔
There was a problem hiding this comment.
@mre I was initially confused too!
https://github.com/lycheeverse/lychee/releases/latest/download redirects to https://github.com/lycheeverse/lychee/releases/download/lychee-v0.19.1 at the moment. When the filename is appended, you end up with (for example) https://github.com/lycheeverse/lychee/releases/latest/download/lychee-aarch64-unknown-linux-gnu.tar.gz redirecting to https://github.com/lycheeverse/lychee/releases/download/lychee-v0.19.1/lychee-aarch64-unknown-linux-gnu.tar.gz.
https://github.com/lycheeverse/lychee/releases/download/nightly doesn't redirect. So when the filename is appended, you end up with https://github.com/lycheeverse/lychee/releases/download/nightly/lychee-aarch64-unknown-linux-gnu.tar.gz, which I think is a better choice.
There was a problem hiding this comment.
The short version of my comment here: #1802 (comment) is that:
- This doesn't exist: https://github.com/lycheeverse/lychee/releases/latest/download/lychee-aarch64-unknown-linux-musl.tar.gz
- This does exist: https://github.com/lycheeverse/lychee/releases/download/nightly/lychee-aarch64-unknown-linux-musl.tar.gz
So, when the next release is cut and has a lychee-aarch64-unknown-linux-musl.tar.gz for the latest stable version, the existing configuration in this project will start working (and you shouldn't have these failures: https://github.com/lycheeverse/lychee/actions/runs/17020826384/job/48249611607#step:10:355).
But it occurred to me, @mre, that you might prefer the behavior introduced by this PR.
|
@eread @mre For your info: I've released v0.20.0 but the docker build step still fails. I didn't investigate the problem myself yet. Maybe the CI logs contain new information as someone mentioned with a new release the step might work again. Or would this PR potentially resolve the issue? |
@thomas-zahner Thanks for releasing that! The command that's being run is at: https://github.com/lycheeverse/lychee/actions/runs/17148270680/job/48648658034#step:9:218. I note that When I run a cut-down version of the command locally ( So I wonder if it's a timing issue. Perhaps the Interestingly, this PR would change that behaviour. It seems like the project does expect When I run a similar command for the Alpine-based Dockerfile ( So it does seem like if those jobs could run again, they'd work? 🤔 |
|
You are right, this is a timing issue. I've reran the job and it passed now 👍 One thing I notice is that docker images are not tagged with any version numbers, e.g. |
@thomas-zahner There hasn't been tagged Docker images since the move to https://github.com/release-plz/release-plz in this project. A few attempts have been made to get that to work again. It we look at this job :https://github.com/lycheeverse/lychee/actions/runs/17137903575/job/48618381985#step:9:220, we can see the image is tagged with: So two outstanding issues I think:
Tagging and pushing is already working elsewhere, and so is the order of operations presumably. There must still be old release logic in the configuration. CC @mre |
a5a7774 to
438baf3
Compare
|
@thomas-zahner @mre Ok, I've refactored this one. Basically, in the context of a call to
I haven't yet seen a call to To make WDYT? |
|
Thanks for the thorough analysis, @eread. |
@trask You've worked on some of this for this project in the past (for example: #1738). Any thoughts? |
Don't use link to latest stable release for nightly.