-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Gitlab upgrade instructions (#3608) #3627
Conversation
b1e97e3
to
a818400
Compare
Codecov Report
@@ Coverage Diff @@
## develop #3627 +/- ##
===========================================
- Coverage 82.67% 82.67% -0.01%
===========================================
Files 120 120
Lines 15036 15039 +3
===========================================
+ Hits 12431 12433 +2
- Misses 2605 2606 +1
Continue to review full report at Codecov.
|
4a9c4c9
to
a01eef6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
OPERATOR.rst
Outdated
a snapshot of its EBS volume. Edit ``terraform/gitlab/gitlab.tf.json.template.py``, | ||
updating the versions of the docker images for ``gitlab-ce`` and | ||
``gitlab-runner``. Then run:: | ||
Operators must check for updates to the `GitLab Docker image`_ and the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A quicker way to check for this https://gitlab.dev.singlecell.gi.ucsc.edu/help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to reference the docker image release page that way it's explicit where to find the new image/what the new image is. IIRC the /help
endpoint just states that there is an update, but does not offer more insight.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevertheless, please incorporate this in as a way of short-circuiting. There is no point in comparing the docker page against the TF source if the help page indicates that Gitlab is up-to-date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So to confirm, you want the operators to check that the GitLab Instance can be updated using the /help
endpoint, and inspect if there are updates to the GitLab Runners by comparing the TF file to the docker release page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want them to check daily (since it's so easy) for updates using /help and if that indicates that updates are available, install the latest version of Gitlab and the latest compatible version of the runner.
a01eef6
to
8fc709e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8fc709e
to
cc86a03
Compare
OPERATOR.rst
Outdated
a snapshot of its EBS volume. Edit ``terraform/gitlab/gitlab.tf.json.template.py``, | ||
updating the versions of the docker images for ``gitlab-ce`` and | ||
``gitlab-runner``. Then run:: | ||
Operators must check for updates to the GitLab instances and the GitLab Runners |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operators must check for updates to the GitLab instances and the GitLab Runners | |
Operators must check for updates to GitLab |
OPERATOR.rst
Outdated
updating the versions of the docker images for ``gitlab-ce`` and | ||
``gitlab-runner``. Then run:: | ||
Operators must check for updates to the GitLab instances and the GitLab Runners | ||
on a daily basis. Updates to the Gitlab instance can be quickly checked at the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on a daily basis. Updates to the Gitlab instance can be quickly checked at the | |
on a daily basis. Updates to Gitlab can be quickly checked at the |
Using the word "instance" here is confusing. Primarily, we're looking for updates to the webapp and runner images, not the instance. We have to update the instance if either them are updated.
OPERATOR.rst
Outdated
Operators must check for updates to the GitLab instances and the GitLab Runners | ||
on a daily basis. Updates to the Gitlab instance can be quickly checked at the | ||
``/help`` endpoint for `GitLab dev`_ and `GitLab prod`_. If there are updates | ||
available, find the new release for the `GitLab Docker Image`_ and update the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
available, find the new release for the `GitLab Docker Image`_ and update the | |
available, find the new release for the `GitLab Docker image`_ and update the |
Google "proper noun"
OPERATOR.rst
Outdated
on a daily basis. Updates to the Gitlab instance can be quickly checked at the | ||
``/help`` endpoint for `GitLab dev`_ and `GitLab prod`_. If there are updates | ||
available, find the new release for the `GitLab Docker Image`_ and update the | ||
`Gitlab terraform`_ file. When updating the GitLab instance check if there are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`Gitlab terraform`_ file. When updating the GitLab instance check if there are | |
`Gitlab Terraform`_ file. When updating the GitLab instance check if there are |
OPERATOR.rst
Outdated
``/help`` endpoint for `GitLab dev`_ and `GitLab prod`_. If there are updates | ||
available, find the new release for the `GitLab Docker Image`_ and update the | ||
`Gitlab terraform`_ file. When updating the GitLab instance check if there are | ||
applicable updates to the `GitLab Runner image`_. Before starting the update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applicable updates to the `GitLab Runner image`_. Before starting the update | |
applicable updates to the `GitLab runner image`_. Before starting the update |
OPERATOR.rst
Outdated
available, find the new release for the `GitLab Docker Image`_ and update the | ||
`Gitlab terraform`_ file. When updating the GitLab instance check if there are | ||
applicable updates to the `GitLab Runner image`_. Before starting the update | ||
process check applicable `GitLab release notes`_ for any upgrading instructions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
process check applicable `GitLab release notes`_ for any upgrading instructions. | |
process, check the applicable `GitLab release notes`_ for any upgrading instructions. |
OPERATOR.rst
Outdated
`Gitlab terraform`_ file. When updating the GitLab instance check if there are | ||
applicable updates to the `GitLab Runner image`_. Before starting the update | ||
process check applicable `GitLab release notes`_ for any upgrading instructions. | ||
When upgrading across multiple Gitlab versions follow a supported GitLab |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When upgrading across multiple Gitlab versions follow a supported GitLab | |
When upgrading across multiple Gitlab versions, follow the prescribed GitLab |
OPERATOR.rst
Outdated
Before any changes are applied, have the lead check for any running | ||
``background migrations`` on the GitLab instances, if there are no migrations | ||
in progress, stop the instance (do not terminate) and create a snapshot of its | ||
EBS volume. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confusing. This sound like the only the snapshotting is conditional upon the existence of background migrations. In fact, the entire upgrade is. Structure this so that checking the conditions are the first steps in the a enumerated list and describe each branch in the decision tree. Think of this as a flow chart described in plain English.
cc86a03
to
0ec5c0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5ff62d8
to
c76606c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can locate the commits that address the comments, there must have been an issue with how the commits were squashed down.
Since the screenshot shows a reflog, it must have been you who squashed them down, right? Have you tried to figure out what that issue is you are alluding to? Since you still have the reflog, you can always go back to the starting point and try to redo what you did.
I am aware that this might come across as pedantic, but I think it's worth getting to the bottom of this, as it is not the first time we've had this problem, and I would like to prevent it from happening again. I might not always notice this problem.
c76606c
to
1de4e06
Compare
- [ ] Target branch is `develop` | ||
- [ ] Source branch matches `gitlab/yyyy-mm-dd` | ||
- [ ] PR title is `Update GitLab to X.Y.Z (#4014)` | ||
- [ ] Disconnected any other PRs currently connected to issue #4014 via ZenHub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [ ] Disconnected any other PRs currently connected to issue #4014 via ZenHub | |
- [ ] Disconnected any other PRs currently connected to #4014 via ZenHub |
|
||
### Operator (after pushing the merge commit) | ||
|
||
- [ ] Shortened the PR chain <sub>or this PR is not labeled `chain`</sub> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@achave11 FYI another mention of this label to rename to base
6bd168b
to
54851a5
Compare
#3608
Author
Fix:
for bugs) or there is a good reason why they're differentAuthor (reindex)
r
tag to commit title or this PR does not require reindexingreindex
label to PR or this PR does not require reindexingAuthor (freebies & chains)
chain
label to the blocking PR or this PR is not chained to another PRAuthor (upgrading)
u
tag to commit title or this PR does not require upgradingupgrade
label to PR or this PR does not require upgradingAuthor (requirements, before every review)
make requirements_update
or this PR does not touch requirements*.txt, common.mk, Makefile and DockerfileR
tag to commit title or this PR does not touch requirements*.txtreqs
label to PR or this PR does not touch requirements*.txtAuthor (before every review)
make integration_test
passes in personal deployment or this PR does not touch functionality that could break the ITdevelop
, squashed old fixupsPrimary reviewer (after approval)
no demo
no sandbox
Operator (before pushing merge the commit)
reindex
label andr
commit title tagno demo
sandbox
label or PR is labeledno sandbox
no sandbox
sandbox
or this PR does not require reindexingsandbox
sandbox
or this PR does not require reindexingsandbox
Operator (after pushing the merge commit)
N reviews
labelling is accurate or this PR is authored by leadOperator (reindex)
Operator