utkarsharma2 commented on code in PR #31917:
URL: https://github.com/apache/airflow/pull/31917#discussion_r1230540152


##########
dev/README_RELEASE_AIRFLOW.md:
##########
@@ -564,6 +565,85 @@ Checking 
apache_airflow-2.0.2rc4-py2.py3-none-any.whl.sha512
 Checking apache-airflow-2.0.2rc4-source.tar.gz.sha512
 ```
 
+## Source code check
+
+You should check if the sources in the packages produced are the same as 
coming from the tag in git.
+
+In checked out sources of Airflow:
+
+```bash
+git checkout X.Y.Zrc1
+export SOURCE_DIR=$(pwd)
+```
+
+Change to the directory where you have the packages from svn:
+
+Check if sources are the same as in the tag:
+
+```bash
+cd X.Y.Zrc1
+tar -xvzf *-source.tar.gz
+pushd apache-airflow-X.Y.Zrc1
+diff -r airflow "${SOURCE_DIR}"
+popd && rm -rf apache-airflow-X.Y.Zrc1
+```
+
+The output should only miss some files - but they should not show any 
differences in the files:
+
+```
+⌂6.50 [jarek:~/asf-dist/dev/airflow/2.6.2rc2/a] * 1 ‡ diff -r airflow 
~/code/airflow/
+Only in /Users/jarek/code/airflow: .DS_Store
+Only in /Users/jarek/code/airflow: .asf.yaml
+Only in /Users/jarek/code/airflow: .bash_aliases
+Only in /Users/jarek/code/airflow: .bash_completion
+Only in /Users/jarek/code/airflow: .bash_history
+...
+```
+
+
+Check if .whl is the same as in tag:
+
+```
+unzip -d a *-.whl
+pushd a
+diff -r airflow "${SOURCE_DIR}"
+popd && rm -rf a
+```
+
+The output should only miss some files - but they should not show any 
differences in the files:

Review Comment:
   Just confirming, missing files are not shipped in within .whl, right? Or is 
it something else?



-- 
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