kaxil commented on a change in pull request #20962:
URL: https://github.com/apache/airflow/pull/20962#discussion_r807915602



##########
File path: dev/README_RELEASE_AIRFLOW.md
##########
@@ -205,6 +205,7 @@ The Release Candidate artifacts we vote upon should be the 
exact ones we vote ag
 - Add a commit that updates `CHANGELOG.md` to add changes from previous 
version if it has not already added.
 For now this is done manually, example run  `git log --oneline v2-2-test..HEAD 
--pretty='format:- %s'` and categorize them.
 - Add section for the release in `UPDATING.md`. If no new entries exist, put 
"No breaking changes" (e.g. `2.1.4`).
+- Update the `REVISION_HEADS_MAP` at airflow/utils/db.py to include the 
revision head of the release even if there are no migrations.

Review comment:
       How about something as simple as:
   
   ```python
   from airflow.utils.db import REVISION_HEADS_MAP
   from airflow.version import version as airflow_version
   from packaging.version import Version
   
   
   if not Version(airflow_version).is_prerelease and airflow_version not in 
REVISION_HEADS_MAP:
       raise Exception(f"Airflow version {airflow_version} is not in the 
revision map {REVISION_HEADS_MAP}")
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to