Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[develop] Replace manage_externals with Git submodules #1028

Draft
wants to merge 24 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0ec3962
Removal of manage_externals from the SRW App repo
MichaelLueken Jan 17, 2024
aa44493
Update .gitmodules file to point to required repositories for the SRW…
MichaelLueken Jan 17, 2024
6576ffb
Remove sorc from .gitignore file and add component directories to sorc
MichaelLueken Jan 17, 2024
edc55cb
Remove Externals.cfg and existing .gitmodules files
MichaelLueken Jan 17, 2024
9f220fc
Initial addition of Git Submodules
MichaelLueken Jan 17, 2024
875b370
Update hash for AQM-utils
MichaelLueken Jan 17, 2024
31d9431
Update hash for arl_nexus
MichaelLueken Jan 17, 2024
74e8203
Update hash for UFS_UTILS
MichaelLueken Jan 17, 2024
be7f7ec
Update hash for ufs-weather-model
MichaelLueken Jan 17, 2024
80643b7
Update hash for UPP
MichaelLueken Jan 17, 2024
7e75858
Add back sorc/*/ to .gitignore
MichaelLueken Jan 17, 2024
4ab59cc
Update ush/setup.py so that it now points to .gitmodules rather than …
MichaelLueken Jan 17, 2024
14570f1
Add branch to the .gitmodules file
MichaelLueken Jan 18, 2024
119533e
[feature/git_submodules] Remove branch entries
MichaelLueken Feb 14, 2024
22d4274
[feature/git_submodules] Add the branch entries back in
MichaelLueken Feb 14, 2024
8850faf
Merge branch 'ufs-community:develop' into feature/git_submodules
MichaelLueken Feb 15, 2024
29e62dd
[feature/git_submodules] Comment out submodule section in .readthedoc…
MichaelLueken Feb 15, 2024
a7fab1a
[feature/git_submodules] Removed the submodule section in .readthedoc…
MichaelLueken Feb 15, 2024
8ce2c2d
[feature/git_submodules] Replace manage_externals call to pull the uf…
MichaelLueken Feb 15, 2024
a698d09
[feature/git_submodules] Add sorc/ to ufs-weather-model, as ufs-weath…
MichaelLueken Feb 15, 2024
e10c3a6
[feature/git_submodules] Add ignore = dirty to the entries in the .gi…
MichaelLueken Feb 16, 2024
4914a9f
Update ufs-weather-model hash to 8518c2c59fd92ec8a5982997d66612992b57…
MichaelLueken Mar 7, 2024
2f2d51b
[feature/git_submodules] Reset example for Friday's presentation
MichaelLueken Mar 13, 2024
9de6b7b
Update weather model hash to 8518c2c
MichaelLueken Mar 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
cache-downloads: true
cache-environment: true

- name: Checkout externals
- name: Checkout ufs-weather-model
run: |
./manage_externals/checkout_externals ufs-weather-model
git submodule update --init --recursive sorc/ufs-weather-model

- name: Lint the python code
run: |
Expand Down
25 changes: 25 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[submodule "sorc/UFS_UTILS"]
path = sorc/UFS_UTILS
url = https://github.com/ufs-community/UFS_UTILS
branch = develop
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MichaelLueken, the branch line may not be necessary, but it would be good to add ignore = dirty instead to exclude any change in the submodules.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for the suggestion, @chan-hoo! I will try removing the branch line and adding ignore = dirty instead.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this helps: In the UFSWM we keep the branch field. It's useful to know in a PR what submodules are bringing in updates and what branch the developer has those updates in as it's important for developers to make branches different names than develop. Maybe not all submodules use a "develop" branch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @BrianCurtis-NOAA! You make a very good point, if users are applying changes to a component, it would be nice to see the fork and branch that they are using for those changes. There is no harm in keeping the branch line, so I will go ahead and keep it for now.

ignore = dirty
[submodule "sorc/ufs-weather-model"]
path = sorc/ufs-weather-model
url = https://github.com/ufs-community/ufs-weather-model
branch = develop
ignore = dirty
[submodule "sorc/UPP"]
path = sorc/UPP
url = https://github.com/NOAA-EMC/UPP
branch = develop
ignore = dirty
[submodule "sorc/arl_nexus"]
path = sorc/arl_nexus
url = https://github.com/noaa-oar-arl/NEXUS
branch = develop
ignore = dirty
[submodule "sorc/AQM-utils"]
path = sorc/AQM-utils
url = https://github.com/NOAA-EMC/AQM-utils
branch = develop
ignore = dirty
5 changes: 0 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ python:
install:
- requirements: docs/UsersGuide/requirements.txt

submodules:
include:
- hpc-stack-mod
recursive: true

47 changes: 0 additions & 47 deletions Externals.cfg

This file was deleted.

12 changes: 0 additions & 12 deletions manage_externals/.dir_locals.el

This file was deleted.

6 changes: 0 additions & 6 deletions manage_externals/.github/ISSUE_TEMPLATE.md

This file was deleted.

17 changes: 0 additions & 17 deletions manage_externals/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

17 changes: 0 additions & 17 deletions manage_externals/.gitignore

This file was deleted.

18 changes: 0 additions & 18 deletions manage_externals/.travis.yml

This file was deleted.

34 changes: 0 additions & 34 deletions manage_externals/LICENSE.txt

This file was deleted.

Loading