Update docs.voltha.org release version matrix.
howot/release/repositories/
o Document more caveats for releasing indivdiual repositories.
o repo:ci-management must be released twice:
- first to establish a branhc for pipeline jobs.
- second to update dependent versions after downstream repos have been released
Change-Id: I33d7f2442a1d4ea45a48caef0e49df92988cc2ce
diff --git a/howto/release/repositories/ci-management/misc.rst b/howto/release/repositories/ci-management/misc.rst
index 59b6247..e98dfbc 100644
--- a/howto/release/repositories/ci-management/misc.rst
+++ b/howto/release/repositories/ci-management/misc.rst
@@ -1,6 +1,15 @@
Misc Todo Items
===============
+NOTE
+====
+
+When modifying repo:ci-management be sure to modify ``*.yaml`` sources or JJB
+will not regenerate configs. Ugly faiure mode, release pipelines can
+behave like scripts are running from branch=master.
+
+----
+
- Baseline build
- Update copyright notices :ref:`Release Task Copyright`
@@ -46,6 +55,17 @@
return (br)
}
+## jb/software-upgrades.yaml
+
+- `jjb/software-upgrades.yaml <https://gerrit.opencord.org/plugins/gitiles/ci-management/+/refs/heads/master/jjb/software-upgrades.yaml>`_
+
+ - Update onos packages to released versions.
+ - Post release edits are needed in both branches:
+
+ - branch=master is updated with ``*-SNAPSHOT`` versions
+ - branch=voltha-2.12 receives the non-SNAPSHOT release versions.
+
+
## TODO
- Tools bbsim and voltctl are versioned for release.
diff --git a/howto/release/repositories/go_mod_update.rst b/howto/release/repositories/go_mod_update.rst
new file mode 100644
index 0000000..c2dc1b7
--- /dev/null
+++ b/howto/release/repositories/go_mod_update.rst
@@ -0,0 +1 @@
+golang_gofmt_syntax.rst
diff --git a/howto/release/repositories/voltha-docs/dependencies.rst b/howto/release/repositories/voltha-docs/dependencies.rst
index e1775f0..7bb7fce 100644
--- a/howto/release/repositories/voltha-docs/dependencies.rst
+++ b/howto/release/repositories/voltha-docs/dependencies.rst
@@ -2,3 +2,4 @@
====================
- :ref:`_Release Repository ci-management`
+- :ref:`_Release Repository voltha-protos`
diff --git a/howto/release/repositories/voltha-lib-go/dependencies.rst b/howto/release/repositories/voltha-lib-go/dependencies.rst
index e1775f0..7bb7fce 100644
--- a/howto/release/repositories/voltha-lib-go/dependencies.rst
+++ b/howto/release/repositories/voltha-lib-go/dependencies.rst
@@ -2,3 +2,4 @@
====================
- :ref:`_Release Repository ci-management`
+- :ref:`_Release Repository voltha-protos`
diff --git a/howto/release/repositories/voltha-lib-go/deps.rst b/howto/release/repositories/voltha-lib-go/deps.rst
deleted file mode 100644
index e1775f0..0000000
--- a/howto/release/repositories/voltha-lib-go/deps.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-Release Dependencies
-====================
-
-- :ref:`_Release Repository ci-management`
diff --git a/howto/release/repositories/voltha-lib-go/release.rst b/howto/release/repositories/voltha-lib-go/release.rst
index 83cf628..a51e50c 100644
--- a/howto/release/repositories/voltha-lib-go/release.rst
+++ b/howto/release/repositories/voltha-lib-go/release.rst
@@ -5,48 +5,39 @@
- Update .gitreview, set defaultbranch=voltha-2.12 for commits
- Update VERSION file to prevent future conflicts: {major}.{minor+1}.0
+## TODO: Replace with bttb.sh script usage
+ - git checkout -b voltha-2.12 tags/2.12.0
+ - Update .gitreview
+ - set defaultbranch=voltha-2.12 for commits
+
+- master branch
+
+ - Increment version file to prevent collision with release branch.
+ - Append a ``*-dev`` suffix to the version string
+ - {max}.{1+min}.0-dev
+
Release branching and tagging
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Releasing repository voltha-lib-go requires tag-then-release branching,
-first create a versioned tag 2.12.0-beta then create branch voltha-2.12-beta
+first create a versioned tag 2.12.0 then create branch voltha-2.12
from the release tag.
Repository tag names differ based on repository, golang repositories
use tags with the prefix vee v1.2.3, v2.45.0
-.. code-block:: shell-session
- :caption: First create a release tag
-
- # Determine repository tagname convention (with/with-out vee)
- git clone "ssh://gerrit.opencord.org:29418/${repo_name}.git"
- git tag --list-tags
-
- # ---------------------------
- # Step 1 create a release tag
- # ---------------------------
- local branch_name='voltha-2.12-beta'
- local tag_name='v2.12.0-beta'
-
- git tag -a "$tag_name" -m "${branch_name} release"
- git push origin "$tag_name"
.. code-block:: shell-session
- :caption: Create a release branch attached to the release tag
+ :caption: AUTOMATED: Release script bttb.sh
- # ------------------------------------------------------------
- # Step 2 - create a release branch attached to the release tag
- # ------------------------------------------------------------
- local branch_name='voltha-2.12-beta'
- local tag_name='v2.12.0-beta'
- local repo_name='voltha-lib-go'
-
- git clone "ssh://gerrit.opencord.org:29418/${repo_name}.git"
- git fetch --all --tags
-
- git checkout -b "$branch_name" "tags/tag_name"
- git push origin "$branch_name" "tags/$tag_name"
+ ## -----------------------------------------------------------
+ ## Use the bttb.sh (branch-tag_OR_tag-branch) script to branch/tag.
+ ## Script is aware of how to tag/branch VOLTHA repositories by name.
+ ## -----------------------------------------------------------
+ % git clone ssh://gerrit.opencord.org:29418/voltha-release.git
+ % cd voltha-release
+ % ./bttb.sh --sandbox sandbox --repo voltha-lib-go --version 2.12
See Also
--------
@@ -60,7 +51,7 @@
:caption: Create a release branch attached to the release tag
grep -v 'defaultbranch' .gitreview > .gitreview.tmp
- echo "defaultbranch=voltha-2.12-beta" >> .gitreview.tmp
+ echo "defaultbranch=voltha-2.12" >> .gitreview.tmp
mv -f .gitreview.tmp .gitreview
diff --git a/howto/release/repositories/voltha-onos/dependencies.rst b/howto/release/repositories/voltha-onos/dependencies.rst
index b6365c3..f925856 100644
--- a/howto/release/repositories/voltha-onos/dependencies.rst
+++ b/howto/release/repositories/voltha-onos/dependencies.rst
@@ -1,3 +1,3 @@
Dependencies: voltha-onos
-================================
+=========================
diff --git a/howto/release/repositories/voltha-onos/resources.rst b/howto/release/repositories/voltha-onos/resources.rst
index 0e0ca93..d651e83 100644
--- a/howto/release/repositories/voltha-onos/resources.rst
+++ b/howto/release/repositories/voltha-onos/resources.rst
@@ -4,5 +4,6 @@
https://repo.maven.apache.org/maven2/org/onosproject/onos/
- repo:voltha-onos
+
- consumed by Dockerfile.voltha-onos
- version too low, dockefile loads much higher