This file explains how to update the requirements_lock.txt
file, and how to test those updates. (We
need to refresh it periodically.)
Run this command:
bazel run //:requirements.update -- --upgrade
The main thing the requirements file affects is the documentation website. We mainly pay attention
to changes in the desired packages, listed in requirements.in
; keeping track of changes in
automatically pulled dependencies would be overwhelming and untenable.
- Look at the diff for
requirements_lock.txt
to get the old and new version number for every package listed inrequirements.in
. - Read the release notes for every release that occurred since the previous version.
- Look out for breaking changes, and figure out how to test any that you see.
- Run
au-docs-serve
to generate the latest version of the doc website; load it in a new window. - In another tab, open https://aurora-opensource.github.io/au/main/.
- Tab back and forth to look for any changes. - Page down once on each page, and repeat. - At the end of the page, click the link to the next page, and repeat.
- Keep track of whatever changes you see.
You don't need to go through the entire website, but visit enough pages to be satisfied that it's representative.
mike
is how we generate our versioned documentation.
First, visit the source code for the version of mike
in the new release. (You can find this on
their releases page; click the tag link on the left
side to browse the code.) Double check the functions that we monkey patch in mike_bin.py
, to make
sure their interfaces and/or implementations are still up to date.
Next, make sure that our monkey patched version of mike works. Here's a suggested sequence.
# Create a new version of the docs, named "temp-test".
#
# NOTE: this will not deploy anything remotely.
bazel run //:mike -- deploy temp-test
# View the list of versions: make sure "temp-test" is in the list.
bazel run //:mike -- list
# Serve the documentation website. (Open it in a browser; play around.)
bazel run //:mike -- serve
# Delete the testing version.
bazel run //:mike -- delete temp-test
# Nitpicky cleanup: don't want this in our public git history.
git branch -f gh-pages origin/gh-pages