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

The build in the CI is broken #1855

Closed
mcagl opened this issue Nov 15, 2024 · 2 comments · Fixed by #1856
Closed

The build in the CI is broken #1855

mcagl opened this issue Nov 15, 2024 · 2 comments · Fixed by #1856

Comments

@mcagl
Copy link
Contributor

mcagl commented Nov 15, 2024

Issue description

This pipeline run did not build the site after the merge of this PR that updated the tutorial to newer python/django, so the deployed website is still at the old versions.

Language

It is a problem with the CI

Operating system

It is a problem with the CI

@das-g
Copy link
Member

das-g commented Nov 19, 2024

The error seems to be

/home/runner/work/_temp/27dc039a-1a81-4838-beea-9079b31a6aea.sh: line 4: rename: command not found

at https://github.com/DjangoGirls/tutorial/actions/runs/11323400245/job/31485981412#step:4:260 which probably corresponds to

rename 's/^book/django-girls-tutorial/' book_*.epub

I wonder why that should fail, though, as

packages: calibre rename
should install the package providing that command. https://github.com/DjangoGirls/tutorial/actions/runs/11323400245/job/31485981412#step:3:28 seems to indicate it was retrieved from a cache.

@ekohl Can you look into this?

@ekohl
Copy link
Collaborator

ekohl commented Nov 19, 2024

rename

Confusingly enough, rename doesn't provide the rename binary according to https://packages.ubuntu.com/jammy/all/rename/filelist. There is also rename.ul from util-linux on Ubuntu 24.04 which should be present by default, but I noticed ubuntu-latest still points to 22.04 here.

My theory is that when the package wasn't cached it ran DPKG triggers, which sets up alternatives:

Setting up rename (2.02-1) ...
update-alternatives: using /usr/bin/file-rename to provide /usr/bin/rename (rename) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/rename.1.gz because associated file /us
r/share/man/man1/file-rename.1p.gz (of link group rename) doesn't exist

Then the cache action may only cache the files but not run triggers.

I've submitted #1856 which I think is the easiest way to fix it now. Right after I submitted it I figured out why it probably broke, so I updated the message right after.

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

Successfully merging a pull request may close this issue.

3 participants