1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

95 lines
3.5 KiB
Markdown
Raw Normal View History

2020-03-05 17:23:56 -05:00
# Release Checklist
2020-03-05 17:23:56 -05:00
## Minor Version Bumps
### Update Requirements
Required Python packages are maintained in two files. `base_requirements.txt` contains a list of all the packages required by NetBox. Some of them may be pinned to a specific version of the package due to a known issue. For example:
```
# https://github.com/encode/django-rest-framework/issues/6053
djangorestframework==3.8.1
```
The other file is `requirements.txt`, which lists each of the required packages pinned to its current stable version. When NetBox is installed, the Python environment is configured to match this file. This helps ensure that a new release of a dependency doesn't break NetBox.
Every minor version release should refresh `requirements.txt` so that it lists the most recent stable release of each package. To do this:
1. Create a new virtual environment.
2020-11-18 10:07:39 -05:00
2. Install the latest version of all required packages `pip install -U -r base_requirements.txt`).
3. Run all tests and check that the UI and API function as expected.
2020-11-18 10:07:39 -05:00
4. Review each requirement's release notes for any breaking or otherwise noteworthy changes.
5. Update the package versions in `requirements.txt` as appropriate.
2020-03-05 17:23:56 -05:00
### Update Static Libraries
Update the following static libraries to their most recent stable release:
* Bootstrap 3
2020-11-18 10:07:39 -05:00
* Material Design Icons
2019-04-19 02:32:50 -04:00
* Select2
* jQuery
* jQuery UI
2020-11-18 10:07:39 -05:00
### Link to the Release Notes Page
2020-11-18 10:07:39 -05:00
Add the release notes (`/docs/release-notes/X.Y.md`) to the table of contents within `mkdocs.yml`, and point `index.md` to the new file.
2020-03-05 17:23:56 -05:00
### Manually Perform a New Install
2020-07-23 10:17:57 -04:00
Install `mkdocs` in your local environment, then start the documentation server:
```no-highlight
$ pip install -r docs/requirements.txt
$ mkdocs serve
```
Follow these instructions to perform a new installation of NetBox. This process must _not_ be automated: The goal of this step is to catch any errors or omissions in the documentation, and ensure that it is kept up-to-date for each release. Make any necessary changes to the documentation before proceeding with the release.
2020-03-05 17:23:56 -05:00
### Close the Release Milestone
2020-11-18 10:07:39 -05:00
Close the release milestone on GitHub after ensuring there are no remaining open issues associated with it.
### Merge the Release Branch
Submit a pull request to merge the release branch `develop-x.y` into the `develop` branch in preparation for its releases.
!!! warning
No further releases for the current major version can be published once this pull request is merged.
---
2020-03-05 17:23:56 -05:00
## All Releases
2020-03-05 17:23:56 -05:00
### Verify CI Build Status
Ensure that continuous integration testing on the `develop` branch is completing successfully.
2020-03-05 17:23:56 -05:00
### Update Version and Changelog
2020-11-18 10:07:39 -05:00
Update the `VERSION` constant in `settings.py` to the new release version and annotate the current data in the release notes for the new version. Commit these changes to the `develop` branch.
2020-03-05 17:23:56 -05:00
### Submit a Pull Request
2020-11-18 10:07:39 -05:00
Submit a pull request title **"Release vX.Y.Z"** to merge the `develop` branch into `master`. Copy the documented release notes into the pull request's body.
Once CI has completed on the PR, merge it.
2020-03-05 17:23:56 -05:00
### Create a New Release
Draft a [new release](https://github.com/netbox-community/netbox/releases/new) with the following parameters.
2020-11-18 10:07:39 -05:00
* **Tag:** Current version (e.g. `v2.9.9`)
* **Target:** `master`
2020-11-18 10:07:39 -05:00
* **Title:** Version and date (e.g. `v2.9.9 - 2020-11-09`)
2020-11-18 10:07:39 -05:00
Copy the description from the pull request to the release.
2020-03-05 17:23:56 -05:00
### Update the Development Version
2020-11-18 10:07:39 -05:00
On the `develop` branch, update `VERSION` in `settings.py` to point to the next release. For example, if you just released v2.9.9, set:
```
2020-11-18 10:07:39 -05:00
VERSION = 'v2.9.10-dev'
```