Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2021-01-22 15:06:20 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-02-03 14:29:04 +0300
commit22ab6f1623ff40ec12bb010b1da35116aa107291 (patch)
tree82c3bd9cc8e070adf6caa9960414cdd6c77b8317 /_support
parentabee54a8216e132645fc0aea5a9b0e37afa74385 (diff)
Integration test to verify backwards compatibility
With multistage deployments we have both old and a new versions of the praefect service running and sharing the same database. We must be sure the changes done to the database schema doesn't affect the old version of the praefect functionality and it operates without issues. The new job was added to the pipeline to verify compatibility of the previous release and latest changes done to schema migration. The pipeline runs only if a new migration was added/modified. Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/3338
Diffstat (limited to '_support')
-rwxr-xr-x_support/get-previous-minor-release6
1 files changed, 6 insertions, 0 deletions
diff --git a/_support/get-previous-minor-release b/_support/get-previous-minor-release
new file mode 100755
index 000000000..eaea20d7e
--- /dev/null
+++ b/_support/get-previous-minor-release
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+
+File.open("VERSION").read.scan(/(\d+)\.(\d+).\d+.*/) { |major_str, minor_str|
+ major, minor = major_str.to_i, minor_str.to_i
+ puts minor - 1 >= 0 ? "v#{major}.#{minor-1}.0" : "v#{major-1}.10.0"
+}