action #160688
closed
cpanspec: Run autoupdate for devel:languages:perl in github workflow size:M
Added by tinita 6 months ago.
Updated 4 months ago.
Description
See also my report on the Perl Toolchain Summit: https://perlpunk.github.io/posts/2024-05-the-annual-perl-toolchain-summit/ "Running cpanspec"
I started to do this already for a past hack week but then was never able to finish it.
It's now the second attempt, and I should reserve some time for this to actually finish it.
Acceptance criteria¶
AC1: autoupdate devel:languages:perl runs in a github cron workflow that can also be dispatched when necessary
AC2: We have an up-to-date container in OBS that is used in the workflow
AC3: devel:languages:perl:CPAN-{A..Z} are still updated on our internal host, using the new https://github.com/openSUSE/autoupdate-perl repo
AC4: autoupdate code is not duplicated (e.g. remove it from https://github.com/openSUSE/cpanspec)
Tasks¶
- Github Workflow
- Container in OBS with service trigger
- devel:languages:perl:CPAN-{A..Z} are updated on our cloud server using podman with the new container, so that updating the server or moving it somewhere else is easier
- Remove autoupdate code from cpanspec repo
Related issues
1 (1 open — 0 closed)
- Subject changed from cpanspec: Run autoupdate for devel:languages:perl in github workflow to cpanspec: Run autoupdate for devel:languages:perl in github workflow size:m
- Description updated (diff)
- Status changed from New to Workable
- Subject changed from cpanspec: Run autoupdate for devel:languages:perl in github workflow size:m to cpanspec: Run autoupdate for devel:languages:perl in github workflow size:M
- Status changed from Workable to In Progress
- Due date set to 2024-07-06
Setting due date based on mean cycle time of SUSE QE Tools
- Status changed from In Progress to Workable
- Status changed from Workable to In Progress
- Description updated (diff)
- Description updated (diff)
- Description updated (diff)
- Description updated (diff)
- Due date changed from 2024-07-06 to 2024-07-13
Bumping due date due to openSUSE conf
The CPAN-{A..Z} updates on our cloud server will now run in a container, so it will be easy to move that to any other server.
We only need podman and a cpanmirror
user.
Next run tomorrow morning.
% crontab -l
IMAGE=registry.opensuse.org/home/tinita/cpanspec/container/containers/opensuse/autoupdate-perl
5 2 * * * podman run -it --rm --userns=keep-id -v$HOME:/home/$USER $IMAGE /home/$USER/autoupdate-perl/bin/fetch-cpan.sh >> $HOME/obs-mirror/logs/cpan.log 2>&1
5 4 * * * podman run -it --rm --userns=keep-id -v$HOME:/home/$USER $IMAGE /home/$USER/autoupdate-perl/bin/update-dlp-cpan.sh >> $HOME/obs-mirror/logs/cpanupdate.log 2>&1
The autoupdate-perl cron workflow is enabled and should run tomorrow morning.
https://github.com/openSUSE/autoupdate-perl/actions
Regarding running the Makefile.PL isolated I think I'll go for sudoing to a different user for now.
- Copied to action #163571: cpanspec: Move cronjob for auto updating devel:languages:perl:CPAN-{A..Z} off the obsolete engcloud size:M added
@tinita why do you add documentation for openSUSE and OBS relevant workflows on SUSE internal documentation places?
- Status changed from In Progress to Feedback
- Status changed from Feedback to Resolved
Also available in: Atom
PDF