#1197 Fedora 39 Beta 1.1
Merged 9 months ago by kevin. Opened 9 months ago by humaton.
humaton/pungi-fedora f39_beta_rc  into  f39

file added
+1006
The added file is too large to be shown here, see it at: fedora-beta.conf
file modified
+58 -14
@@ -1,32 +1,76 @@ 

  #!/bin/sh

  export LC_ALL=C

- LABEL=$1

  # Remove the label from arguments. It gets special treatment. Other arguments

  # to the script are passed to pungi-koji directly.

+ LABEL=$1

  shift

  CONFIG="fedora-final.conf"

- TARGET_DIR="/mnt/koji/compose/26"

- #OLD_COMPOSES_DIR="--old-composes=/mnt/fedora_koji/compose/f23 --old-composes=$TARGET_DIR"

+ FEDORA_VERSION="${LABEL%%_*}"

+ TARGET_DIR="/mnt/koji/compose/${FEDORA_VERSION}"

+ #OLD_COMPOSES_DIR="--old-composes=/mnt/fedora_koji/compose/f23 --old-composes=${TARGET_DIR}"

  NIGHTLY=""

  SKIP_PHASES="--skip-phase=productimg"

  DEST=$(pwd)

  DATE=$(date "+%Y%m%d")

- COMPSFILE="comps-f26.xml"

- TMPDIR=`mktemp -d /tmp/fedoraRC.$DATE.XXXX`

- # uncomment and edit for resuming a failed compose

- #COMPOSE_ID="Fedora-23-20150530.n.0"

- pushd $TMPDIR

+ COMPSFILE="comps-f39.xml"

+ TMPDIR=$(mktemp -d /tmp/fedoraRC."${DATE}".XXXX)

+ RELEASE="f39"

+ SHORT="Fedora"

+ RSYNCPREFIX="sudo -u ftpsync"

+ RSYNCTARGET="/pub/alt/stage/${LABEL}"

+ # Uncomment and edit for resuming a failed compose, e.g. "COMPOSE_ID="Fedora-23-20150530.n.0"

+ # COMPOSE_ID="Fedora-23-20150530.n.0"

+ 

+ # Set up our fedora messaging function, using the releng repo definition

+ FEDMSG_MODNAME="compose"

+ FEDMSG_CERTPREFIX="releng"

+ . ./releng/scripts/fedora-messaging.sh

+ 

+ # Announce that we are starting, even though we don't know the compose_id yet..

+ fedora_message_json_start=$(printf '{"log": "start", "branch": "%s", "arch": "%s", "short": "%s"}' "$RELEASE" "$ARCH" "$SHORT")

+ send_fedora_message "${fedora_message_json_start}" ${RELEASE} start

+ 

+ # Public URL the synced compose will wind up at, we put them in fedora-messaging

+ LOCATION="https://dl.fedoraproject.org$RSYNCTARGET"

+ 

+ # Update fedora_message template

+ fedora_message_json_start=$(printf '{"log": "start", "branch": "%s", "arch": "%s", "short": "%s", "compose_id": "%s", "location"}' "$RELEASE" "$ARCH" "$SHORT" "$LOCATION")

+ fedora_message_json_done=$(printf '{"log": "done", "branch": "%s", "arch": "%s", "short": "%s", "location": "%s"}' "$RELEASE" "$ARCH" "$SHORT" "$LOCATION")

+ 

+ pushd "${TMPDIR}"

  git clone https://pagure.io/fedora-comps.git && {

      pushd fedora-comps

      make "${COMPSFILE}"

-     cp "${COMPSFILE}" $DEST/

+     cp "${COMPSFILE}" "${DEST}"/

      popd

  }

  popd

- CMD="pungi-koji --notification-script=/usr/bin/pungi-fedmsg-notification --notification-script=pungi-wait-for-signed-ostree-handler --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $NIGHTLY $SKIP_PHASES --label=$LABEL"

- if [ -z "$COMPOSE_ID" ]; then

-     CMD="$CMD --target-dir=$TARGET_DIR"

+ 

+ CMD="pungi-koji --notification-script=/usr/bin/pungi-fedmsg-notification \

+     --notification-script=pungi-wait-for-signed-ostree-handler \

+     --config=${CONFIG} --old-composes=${TARGET_DIR} ${OLD_COMPOSES_DIR} ${NIGHTLY} ${SKIP_PHASES} \

+     --label=${LABEL}"

+ 

+ if [ -z "${COMPOSE_ID}" ]; then

+     CMD="${CMD} --target-dir=${TARGET_DIR}"

  else

-     CMD="$CMD --debug-mode --compose-dir=$TARGET_DIR/$COMPOSE_ID"

+     CMD="${CMD} --debug-mode --compose-dir=${TARGET_DIR}/${COMPOSE_ID}"

+ fi

+ 

+ time "$CMD" "$@"

+ 

+ # Tell interested persons that the rsync is starting

+ send_fedora_message "${fedora_message_json_start}" ${RELEASE} rsync.start

+ 

+ if [ ! -d "${RSYNCTARGET}" ]; then

+     $(RSYNCPREFIX) mkdir -m 750 -p "${RSYNCTARGET}"

  fi

- time $CMD "$@"

+ 

+ # Note from documentation:

+ # If multiple composes are run like 1.2, 1.3, add multiple --link-dest arguments above with multiple composes

+ ${RSYNCPREFIX} sh -c 'for dir in Everything Cloud Container Kinoite Labs Modular Server Silverblue Spins Workstation Onyx Sericea metadata; do rsync -avhH ${TARGET_DIR}/${COMPOSE_ID}/compose/$dir/ ${RSYNCTARGET}/$dir/ --link-dest=/pub/fedora/linux/development/${FEDORA_VERSION}/Everything/ --link-dest=${RSYNCTARGET}/Everything/; done'

+ 

+ ${RSYNCPREFIX} chmod 755 "${RSYNCTARGET}"

+ 

+ # Let interested persons know the rsync is complete

+ send_fedora_message "${fedora_message_json_done}" ${RELEASE} rsync.complete

This includes one more commit from main that updates release-candidate.sh

two minor things:

  1. I see theres actually no f39 zchunk data yet... we may need to ask @jdieter if he can update that or show us how. I don't know if it will cause any issue if its not there.

  2. shouldn't template_branch be f39 instead of main?

Regarding the zchunk data, I'm assuming you mean the F39 zdicts are missing. I just checked the last nightly compose and it looks like the zchunk repodata is being generated properly.

The only issue with missing zdicts is that the compressed zchunk files are maybe 30-50% larger without them, which is obviously not ideal, but shouldn't break anything.

I've just generated zdicts for the latest F39 metadata, updated fedora-repo-zdicts, built it for all active EPEL/Fedora branches, and have submitted updates in bodhi. If you update fedora-repo-zdicts on whichever servers/containers are generating the repodata, the zchunk files will be compressed with the latest zdicts (and, as a result, be significantly smaller).

Finally, on the off chance that I get hit by a bus, the process for generating new zdicts is documented in the git repo in Pagure: https://pagure.io/fedora-repo-zdicts

1 new commit added

  • Update template_branch to correspond with current release
9 months ago

Good catch @kevin, fixed now.

Thanks for the link @jdieter

Thanks @jdieter! We would need a infra freeze break to update the composers, but I can put in for one.

I think this is all set to merge.

Pull-Request has been merged by kevin

9 months ago
Metadata