Skip to content

Commit

Permalink
move instructions to create directory for data for new dev cycle on D…
Browse files Browse the repository at this point in the history
…TC web server to be done for the rc1 release instead of after the official release
  • Loading branch information
georgemccabe committed Dec 19, 2024
1 parent 7920b25 commit 9d40810
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 26 deletions.
1 change: 1 addition & 0 deletions docs/Release_Guide/metplus_development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ Create a new vX.Y.Z-betaN or vX.Y.Z-rcN development release from the develop bra
.. include:: release_steps/metplus/update_version_on_develop.rst
.. include:: release_steps/metplus/update_dtc_website.rst
.. include:: release_steps/finalize_release_on_github_development.rst
.. include:: release_steps/metplus/update_web_server_data.rst
.. include:: release_steps/release_acceptance_testing.rst
1 change: 0 additions & 1 deletion docs/Release_Guide/metplus_official.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ Create a new vX.Y.Z official release from the develop branch.
.. include:: release_steps/update_docs_official.rst
.. include:: release_steps/metplus/add_next_version_to_lookup.rst
.. include:: release_steps/metplus/coordinated_release_announcement.rst
.. include:: release_steps/metplus/update_web_server_data.rst
.. include:: release_steps/set_beta_deletion_reminder_official.rst
56 changes: 31 additions & 25 deletions docs/Release_Guide/release_steps/metplus/update_web_server_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,43 @@ Update DTC Web Server Data
Create Directory for Next Release
"""""""""""""""""""""""""""""""""

On the DTC web server where the sample input data for use cases is hosted,
run the setup_next_release_data.py script for the next upcoming release
to set up the data directory for the next major/minor version development.
The script can be found in the METplus repository in internal/tests/use_cases.
The file should be found in the home directory of the met_test user on
the DTC web server host. It is linked to the file in the METplus repository.
Pull the latest changes from the develop branch before running the script::
.. dropdown:: If creating a rc1 release

runas met_test
cd /home/met_test/METplus
git checkout develop
git pull
On the DTC web server where the sample input data for use cases is hosted,
run the setup_next_release_data.py script for the next upcoming release
to set up the data directory for the next major/minor version development.
The script can be found in the METplus repository in internal/tests/use_cases.
The file should be found in the home directory of the met_test user on
the DTC web server host. It is linked to the file in the METplus repository.
Pull the latest changes from the develop branch before running the script::

Now run the script passing in the version of the next release, i.e.
if creating the v4.1.0 release, pass in v5.0 as the argument::
runas met_test
cd /home/met_test/METplus
git checkout develop
git pull

new_version=v5.0
/home/met_test/setup_next_release_data.py ${new_version}
Now run the script passing in the version of the next release, i.e.
if creating the v6.0.0-rc1 release, pass in v6.1 as the argument::

See the comments in the script for more details.
Ensure that the script runs without error and that the newly created
directory contains links to all of the sample data tar files::
new_version=v6.1
/home/met_test/setup_next_release_data.py ${new_version}

ls -lh /home/met_test/METplus_Data/${new_version}
See the comments in the script for more details.
Ensure that the script runs without error and that the newly created
directory contains links to all of the sample data tar files::

Untar each of the sample data tarfiles so the model_applications and
met_test directories exist::
ls -lh /home/met_test/METplus_Data/${new_version}

cd /home/met_test/METplus_Data/${new_version}
for f in sample_data*; do echo tar xzf $f;tar xzf $f; done
Untar each of the sample data tarfiles so the model_applications and
met_test directories exist::

Check if the met_test and model_applications directories now exist::
cd /home/met_test/METplus_Data/${new_version}
for f in sample_data*; do echo tar xzf $f;tar xzf $f; done

ls -lh /home/met_test/METplus_Data/${new_version}
Check if the met_test and model_applications directories now exist::

ls -lh /home/met_test/METplus_Data/${new_version}

.. dropdown:: If creating a betaN or rc2+ release

Continue to the next instruction.

0 comments on commit 9d40810

Please sign in to comment.