Skip to content

Commit 58aadea

Browse files
authored
Merge pull request #184 from github/sync-with-public-repo
Sync with public repo for 2.22 release
2 parents e59058e + a2ad32a commit 58aadea

File tree

8 files changed

+27
-7
lines changed

8 files changed

+27
-7
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Lint Code Base
22

33
on:
4-
push:
4+
pull_request:
55
branches-ignore:
66
- 'master'
77

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Test and build
22

3-
on: [push]
3+
on: [pull_request]
44

55
jobs:
66
build:
@@ -10,12 +10,11 @@ jobs:
1010
# os: ['ubuntu-20.04', 'ubuntu-18.04', 'ubuntu-16.04', 'macos-latest']
1111
fail-fast: false
1212
runs-on: ${{ matrix.os }}
13-
13+
1414
steps:
1515
- name: Install Dependencies (Linux)
1616
run: |
1717
sudo apt-get update -y
18-
sudo apt-get purge parallel
1918
sudo apt-get install -y devscripts debhelper moreutils fakeroot jq pigz
2019
wget "https://github.com/koalaman/shellcheck/releases/download/v0.7.0/shellcheck-v0.7.0.linux.x86_64.tar.xz"
2120
tar --xz -xvf "shellcheck-v0.7.0.linux.x86_64.tar.xz"

RELEASING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ There is no need to align Backup Utilities patch releases with GitHub Enterprise
88

99
When making a `.0` release, you will need to specify the minimum supported version of GitHub Enterprise Server that that release supports.
1010

11+
Only repo administrator is allowed to run the release script, otherwise it will fail.
12+
1113
## Pre-release Actions
1214

1315
Prior to making a release,

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ fi
113113

114114
# backup-utils 2.13 onwards limits support to the current and previous two releases
115115
# of GitHub Enterprise Server.
116-
supported_minimum_version="2.18.0"
116+
supported_minimum_version="2.19.0"
117117

118118
if [ "$(version $version)" -ge "$(version $supported_minimum_version)" ]; then
119119
supported=1

bin/ghe-restore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ if is_external_database_snapshot && ! $instance_configured && ! $FORCE; then
195195
fi
196196

197197
# Log restore start message locally and in /var/log/syslog on remote instance
198+
START_TIME=$(date +%s)
199+
echo 'Start time:' $START_TIME
198200
echo "Starting restore of $GHE_HOSTNAME with backup-utils v$BACKUP_UTILS_VERSION from snapshot $GHE_RESTORE_SNAPSHOT"
199201
ghe_remote_logger "Starting restore from $(hostname) with backup-utils v$BACKUP_UTILS_VERSION / snapshot $GHE_RESTORE_SNAPSHOT ..."
200202

@@ -448,8 +450,13 @@ else
448450
ghe-ssh "$GHE_HOSTNAME" -- /bin/sh 1>&3
449451
fi
450452

453+
END_TIME=$(date +%s)
454+
echo 'End time:' $END_TIME
455+
echo 'Runtime:' $(($END_TIME - $START_TIME)) 'seconds'
456+
451457
echo "Restore of $GHE_HOSTNAME from snapshot $GHE_RESTORE_SNAPSHOT finished."
452458

453459
if ! $instance_configured; then
454460
echo "To complete the restore process, please visit https://$hostname/setup/settings to review and save the appliance configuration."
455461
fi
462+

debian/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
github-backup-utils (2.21.0) UNRELEASED; urgency=medium
2+
3+
* Introduce option to skip restoring of audit logs #596
4+
* Beta: Execute ghe-backup tasks in parallel #597
5+
* Beta: Execute ghe-restore tasks in parallel #601
6+
* Run repositories restore in parallel #603
7+
* Fix mismatched `bm_start` and `bm_end` commands #607
8+
* remove rsync restore method used by GHES versions prior to 2.13 #608
9+
* Output MySQL backup strategy for clarity during backup and restore #610
10+
11+
-- Hao Jiang <[email protected]> Tue, 09 Jun 2020 17:59:06 +0000
12+
113
github-backup-utils (2.19.5) UNRELEASED; urgency=medium
214

315
* In legacy mode we should use ghe-import-mysql #581

share/github-backup-utils/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.20.2
1+
2.21.0

test/testlib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export GHE_BACKUP_CONFIG GHE_DATA_DIR GHE_REMOTE_DATA_DIR GHE_REMOTE_ROOT_DIR
4242

4343
# The default remote appliance version. This may be set in the environment prior
4444
# to invoking tests to emulate a different remote vm version.
45-
: ${GHE_TEST_REMOTE_VERSION:=2.20.0}
45+
: ${GHE_TEST_REMOTE_VERSION:=2.21.0}
4646
export GHE_TEST_REMOTE_VERSION
4747

4848
# Source in the backup config and set GHE_REMOTE_XXX variables based on the

0 commit comments

Comments
 (0)