Compare commits

...
Sign in to create a new pull request.

9 commits

Author SHA1 Message Date
Peter Robinson
2a2719ba10 Update F-30 GA release location
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-08-28 10:16:56 +01:00
Peter Robinson
9cb7e4719d move F-30 to stable ostree branch
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-07-22 15:51:52 +01:00
Peter Robinson
d0215f0d88 add updates and override repos
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-07-10 19:07:32 +01:00
Peter Robinson
4ed473c175 update compose branches for F-30
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-07-10 18:34:50 +01:00
Peter Robinson
1106bac109 add inital script for release sync
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-06-25 18:45:22 +01:00
Peter Robinson
f498ab9efc don't sync out 2019-05-22 12:47:19 +01:00
Peter Robinson
27032caf8e IoT: images: allow armhfp to fail while things settle out
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-03-15 07:43:06 +00:00
Peter Robinson
f6ea136069 Enable armhfp image builds
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-03-01 15:47:54 +00:00
Peter Robinson
149293e717 IoT: setup for F-30 branched compose
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-02-25 09:35:04 +00:00
3 changed files with 92 additions and 27 deletions

View file

@ -38,7 +38,6 @@ pkgset_source = 'koji' # koji, repos
# pkgset_repos = {}
# PKGSET - KOJI
#pkgset_koji_tag = 'f30-atomic'
pkgset_koji_tag = 'f30-iot'
pkgset_koji_inherit = False
@ -205,7 +204,7 @@ translate_paths = [
]
# These will be inherited by live_media, live_images and image_build
global_ksurl = 'git+https://pagure.io/fedora-kickstarts.git?#HEAD'
global_ksurl = 'git+https://pagure.io/fedora-kickstarts.git?#origin/f30'
global_release = '!RELEASE_FROM_LABEL_DATE_TYPE_RESPIN'
global_version = '30'
# live_images ignores this in favor of live_target
@ -219,9 +218,10 @@ image_build = {
'kickstart': 'fedora-iot.ks',
'distro': 'Fedora-22',
'disk_size': 4,
'arches': ['aarch64', 'x86_64'],
'install_tree_from': "https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$arch/os/",
'arches': ['aarch64', 'armhfp', 'x86_64'],
'install_tree_from': "https://kojipkgs.fedoraproject.org/compose/30/latest-Fedora-30/compose/Everything/$arch/os/",
'subvariant': 'IoT',
'failable': ['armhfp'],
}
}
],
@ -232,10 +232,12 @@ ostree = [
"aarch64": {
"version": "!OSTREE_VERSION_FROM_LABEL_DATE_TYPE_RESPIN",
"treefile": "fedora-iot.json",
"config_url": "https://pagure.io/fedora-iot/atomic.git",
"config_branch": "master",
"config_url": "https://pagure.io/fedora-iot/ostree.git",
"config_branch": "f30",
"repo": [
"https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$basearch/os/"
"IoT",
"https://kojipkgs.fedoraproject.org/compose/30/latest-Fedora-30/compose/Everything/$basearch/os/",
"https://kojipkgs.fedoraproject.org/compose/updates/f30-updates/compose/Everything/$basearch/os/",
]
"tag_ref": False,
"ostree_repo": "/mnt/koji/compose/iot/repo/",
@ -245,10 +247,12 @@ ostree = [
"armhfp": {
"version": "!OSTREE_VERSION_FROM_LABEL_DATE_TYPE_RESPIN",
"treefile": "fedora-iot.json",
"config_url": "https://pagure.io/fedora-iot/atomic.git",
"config_branch": "master",
"config_url": "https://pagure.io/fedora-iot/ostree.git",
"config_branch": "f30",
"repo": [
"https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$basearch/os/"
"IoT",
"https://kojipkgs.fedoraproject.org/compose/30/latest-Fedora-30/compose/Everything/$basearch/os/",
"https://kojipkgs.fedoraproject.org/compose/updates/f30-updates/compose/Everything/$basearch/os/",
]
"tag_ref": False,
"ostree_repo": "/mnt/koji/compose/iot/repo/",
@ -258,10 +262,12 @@ ostree = [
"x86_64": {
"version": "!OSTREE_VERSION_FROM_LABEL_DATE_TYPE_RESPIN",
"treefile": "fedora-iot.json",
"config_url": "https://pagure.io/fedora-iot/atomic.git",
"config_branch": "master",
"config_url": "https://pagure.io/fedora-iot/ostree.git",
"config_branch": "f30",
"repo": [
"https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$basearch/os/"
"IoT",
"https://kojipkgs.fedoraproject.org/compose/30/latest-Fedora-30/compose/Everything/$basearch/os/",
"https://kojipkgs.fedoraproject.org/compose/updates/f30-updates/compose/Everything/$basearch/os/",
]
"tag_ref": False,
"ostree_repo": "/mnt/koji/compose/iot/repo/",
@ -275,7 +281,8 @@ ostree_installer = [
("^IoT$", {
"aarch64": {
"repo": [
"https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$arch/os/"
"IoT",
"https://kojipkgs.fedoraproject.org/compose/30/latest-Fedora-30/compose/Everything/$basearch/os/",
],
"release": None,
"rootfs_size": "4",
@ -287,15 +294,16 @@ ostree_installer = [
"ostree_osname=fedora-iot",
"ostree_oskey=fedora-iot-2019",
"ostree_contenturl=mirrorlist=https://ostree.fedoraproject.org/iot/mirrorlist",
"ostree_install_ref=fedora/devel/aarch64/iot",
"ostree_update_ref=fedora/devel/aarch64/iot",
"ostree_install_ref=fedora/stable/aarch64/iot",
"ostree_update_ref=fedora/stable/aarch64/iot",
],
'template_repo': 'https://pagure.io/fedora-lorax-templates.git',
'template_branch': 'master',
'template_branch': 'f30',
},
"armhfp": {
"repo": [
"https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$arch/os/"
"IoT",
"https://kojipkgs.fedoraproject.org/compose/30/latest-Fedora-30/compose/Everything/$basearch/os/",
],
"release": None,
"rootfs_size": "4",
@ -307,15 +315,16 @@ ostree_installer = [
"ostree_osname=fedora-iot",
"ostree_oskey=fedora-iot-2019",
"ostree_contenturl=mirrorlist=https://ostree.fedoraproject.org/iot/mirrorlist",
"ostree_install_ref=fedora/devel/armhfp/iot",
"ostree_update_ref=fedora/devel/armhfp/iot",
"ostree_install_ref=fedora/stable/armhfp/iot",
"ostree_update_ref=fedora/stable/armhfp/iot",
],
'template_repo': 'https://pagure.io/fedora-lorax-templates.git',
'template_branch': 'master',
'template_branch': 'f30',
},
"x86_64": {
"repo": [
"https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$arch/os/"
"IoT",
"https://kojipkgs.fedoraproject.org/compose/30/latest-Fedora-30/compose/Everything/$basearch/os/",
],
"release": None,
"rootfs_size": "4",
@ -327,11 +336,11 @@ ostree_installer = [
"ostree_osname=fedora-iot",
"ostree_oskey=fedora-iot-2019",
"ostree_contenturl=mirrorlist=https://ostree.fedoraproject.org/iot/mirrorlist",
"ostree_install_ref=fedora/devel/x86_64/iot",
"ostree_update_ref=fedora/devel/x86_64/iot",
"ostree_install_ref=fedora/stable/x86_64/iot",
"ostree_update_ref=fedora/stable/x86_64/iot",
],
'template_repo': 'https://pagure.io/fedora-lorax-templates.git',
'template_branch': 'master',
'template_branch': 'f30',
}
})
]

53
sync-release.sh Executable file
View file

@ -0,0 +1,53 @@
#!/bin/sh
set -x
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.
shift
CONFIG="fedora-iot.conf"
TARGET_DIR="/mnt/koji/compose/iot"
NIGHTLY=""
DEST=$(pwd)
DATE=$(date "+%Y%m%d")
# the Pungi 'shortname', which we will include in fedmsgs for disambiguation
SHORT="Fedora-IoT"
RELEASE="30"
RELEASE_TITLE="30"
COMPSFILE="comps-f30.xml"
TMPDIR=`mktemp -d /tmp/$RELEASE.$DATE.XXXX`
TOMAIL="iot@lists.fedoraproject.org"
FROM="Fedora IoT Report <branched@fedoraproject.org>"
RSYNCPREFIX="sudo -u ftpsync"
RSYNCTARGET="/pub/alt/iot/30/"
OLDCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-$RELEASE_TITLE/COMPOSE_ID)
NEWCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-$RELEASE_TITLE/COMPOSE_ID)
SHORTCOMPOSE_ID=$(echo $NEWCOMPOSE_ID|sed -e 's|Fedora-.*-||g')
DESTDIR=$TARGET_DIR/$NEWCOMPOSE_ID
# Public URL the synced compose will wind up at, we put it in fedmsgs
LOCATION="https://dl.fedoraproject.org$RSYNCTARGET"
# Update fedmsg template
#fedmsg_json_start=$(printf '{"log": "start", "branch": "%s", "arch": "%s", "short": "%s", "compose_id": "%s", "location": "%s"}' "$RELEASE" "$ARCH" "$SHORT" "$NEWCOMPOSE_ID", "$LOCATION")
#fedmsg_json_done=$(printf '{"log": "done", "branch": "%s", "arch": "%s", "short": "%s", "compose_id": "%s", "location": "%s"}' "$RELEASE" "$ARCH" "$SHORT" "$NEWCOMPOSE_ID" "$LOCATION")
$RSYNCPREFIX mkdir -p $DESTDIR
# Tell interested persons that the rsync is starting (zomg!)
#send_fedmsg "${fedmsg_json_start}" ${RELEASE} rsync.start
for dir in IoT metadata ;
do
$RSYNCPREFIX rsync -avhH --delete-after $DESTDIR/compose/$dir/ "$RSYNCTARGET/$dir/" ;
$RSYNCPREFIX ./releng/scripts/build_composeinfo "$RSYNCTARGET/" --name $NEWCOMPOSE_ID
done
# Tell interested persons that the rsync is done.
#send_fedmsg "${fedmsg_json_done}" ${RELEASE} rsync.complete
# Tell everyone by fedmsg about the compose
#send_fedmsg "${fedmsg_json_done}" ${RELEASE} complete
#SUBJECT='Fedora IoT'$RELEASE' compose report: '$SHORTCOMPOSE_ID' changes'
#for tomail in $TOMAIL ; do
# cat $DESTDIR/logs/*verbose $DESTDIR/logs/depcheck | \
# mutt -e "set from=\"$FROM\"" -e 'set envelope_from=yes' -s "$SUBJECT" $tomail
#done
#find $TARGET_DIR -xdev -depth -maxdepth 2 -mtime +14 -name Fedora-IoT-${RELEASE}\* -exec rm -rf {} \;

View file

@ -18,7 +18,7 @@ TMPDIR=`mktemp -d /tmp/$RELEASE.$DATE.XXXX`
TOMAIL="iot@lists.fedoraproject.org"
FROM="Fedora IoT Report <rawhide@fedoraproject.org>"
RSYNCPREFIX="sudo -u ftpsync"
RSYNCTARGET="/pub/alt/iot/rawhide/"
RSYNCTARGET="/pub/alt/iot/branched/"
OLDCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-$RELEASE_TITLE/COMPOSE_ID)
# assume a releng dir is a git checkout of the releng repo
@ -49,6 +49,9 @@ if [ "$?" != "0" ]; then
fi
ostree summary --update --repo=/mnt/koji/compose/iot/repo/
# Exit now we're post release
exit 1
NEWCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-$RELEASE_TITLE/COMPOSE_ID)
SHORTCOMPOSE_ID=$(echo $NEWCOMPOSE_ID|sed -e 's|Fedora-.*-||g')
@ -77,4 +80,4 @@ SUBJECT='Fedora '$RELEASE' compose report: '$SHORTCOMPOSE_ID' changes'
# mutt -e "set from=\"$FROM\"" -e 'set envelope_from=yes' -s "$SUBJECT" $tomail
#done
find $TARGET_DIR -xdev -depth -maxdepth 2 -mtime +14 -name Fedora-IoT-${RELEASE}\* -exec rm -rf {} \;
#find $TARGET_DIR -xdev -depth -maxdepth 2 -mtime +14 -name Fedora-IoT-${RELEASE}\* -exec rm -rf {} \;