Giter VIP home page Giter VIP logo

Comments (7)

cboltz avatar cboltz commented on August 18, 2024

For -Current vs. -Media, I remember c531e6b ;-) (but in the meantime, it seems both exist again)

For -Current, I'd tend not to include the respin number. IMHO the idea behind -Current is that it always links to the latest version, and we even have https://download.opensuse.org/distribution/openSUSE-current/ that gets switched to the latest release since years. Therefore having and changing -Current (without -N) symlinks for the respins (like we already do during beta and final release) would make sense IMHO.

Obviously that would mean to remove the -2 when you release -3, but after that, you don't need to change anything on get.o.o for the respins.

FYI: get.o.o gets deployed hourly (cronjob starts at the full hour, actual deployment of all jekyll-based pages happens about 5 minutes later)

from get-o-o.

hellcp avatar hellcp commented on August 18, 2024

I'm thinking in context of #55 for example, I'm not sure is this is the right approach. I kind of wish that what is currently symlinks was handled as temporary redirects, so that images are downloaded with different filenames with new snapshots, and same for checksums, they should be temporary redirects to files with the filename (inside and outside) that matches the target of the redirect. Of course there is a drawback that redirects don't mirror at all, we could have symlinks set up for mirrors so they don't straight up fail on us, and we can't provide a single command for checking the checksum that fits all cases because the downloaded filename is ever changing. I'm sure there's more. Otherwise I would probably ask for the publish script to actually automatically create a branch that can be pr'd to this repo without having to rely on a person to update the file manually every time (since I know how prone to mistakes that is, since I'm also a human being)

from get-o-o.

lkocman avatar lkocman commented on August 18, 2024

I think the problem with the symlinks is that they're produced with the obs publisher. I somehow thought that the -Current is gone as well. Or at least @adrianschroeter was working on that part.

If we keep -Current then I'd also expect it's the version (as in has only 15.3 not the release part in it).

from get-o-o.

lkocman avatar lkocman commented on August 18, 2024

One of manual steps is currently to ping autobuild team to bump the respin number in the obs-publisher as well. Adrian would be a good contact for this task.

from get-o-o.

lkocman avatar lkocman commented on August 18, 2024

I've added this script that just points version less -Current symlink to thelatest -Media symlink with release in it.

mirror@pontifex2:~/bin> ls -la `pwd`/update_leap_current_symlink
-rwxr-xr-x 1 mirror stage 669 Mar  7 13:20 /home/mirror/bin/update_leap_current_symlink
commit c36b4421e67332442a8f6b91b8cb5eda0f4f783c (HEAD -> master)
Author: opensuse mirror <[email protected]>
Date:   Mon Mar 7 13:20:40 2022 +0000

    Add script to update current symlinks for QuarterlyUpdates

diff --git a/bin/update_leap_current_symlink b/bin/update_leap_current_symlink
new file mode 100755
index 0000000..3b4f86a
--- /dev/null
+++ b/bin/update_leap_current_symlink
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# This script manually updates version/release less -Current symlinks
+# Needed by get-o-o https://github.com/openSUSE/get-o-o/issues/71
+# 
+# Please note that you should contact autobuild to
+# update release/respin number e.g. 4 in 15.3-4 in the obs publisher for 
+# https://build.opensuse.org/project/show/openSUSE:Leap:15.3:Update:Respin
+target_dir="/srv/ftp-stage/pub/opensuse/distribution/openSUSE-current/iso"
+
+for file in $target_dir/*; do
+       if [ -L "$file" ] && [[ "$file" != *"Current"* ]]; then
+               target=`basename $file`
+               version=`echo $target | sed "s/openSUSE-Leap-//" | awk -F - '{ print $1 }'` # 15.3
+               release=`echo $target | sed "s/openSUSE-Leap-//" | awk -F - '{ print $2 }'` # 3
+               # use fullpath $file for link_name
+               link_name=`echo $file | sed "s/$version-$release/$version/" | sed "s/-Media/-Current/"`
+               ln -s $target $link_name
+       fi
+done

from get-o-o.

lkocman avatar lkocman commented on August 18, 2024

Oky, so the workflow is following https://en.opensuse.org/openSUSE:LeapQuarterlyUpdates_howto

from get-o-o.

lkocman avatar lkocman commented on August 18, 2024

I suggest to close issue now

from get-o-o.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.